/* Solu — global styles. Marca: solu, painel pessoal de homeschooling. */

:root {
  /* ============================================
     Paleta Sol — tokens de marca primários
     ============================================ */
  --solu-honey:      #E8A95C;  /* mel — CTA, marca principal */
  --solu-moss:       #7A8B5C;  /* musgo — secundária, "terrestre" */
  --solu-terracotta: #C97B5A;  /* terracota — acentos quentes */
  --solu-cream:      #F5EDE0;  /* creme — fundo principal */
  --solu-bark:       #2B2620;  /* marrom escuro — texto */
  --solu-sky:        #A8C8D8;  /* azul desbotado — aéreo / planejado */
  --solu-water:      #5C7A8B;  /* azul-aço — aquático */
  --solu-sand:       #E8D9B8;  /* areia — fundos secundários */

  /* Aliases legados — apontam para a paleta Sol.
     O JS troca esses ao mudar a paleta no painel Tweaks. */
  --bg:           var(--solu-cream);
  --bg-deep:      var(--solu-sand);
  --paper:        #FBF5E7;
  --ink:          var(--solu-bark);
  --ink-soft:     #6B5B48;
  --musgo:        var(--solu-moss);
  --musgo-claro:  #a8c084;
  --terra:        var(--solu-terracotta);
  --terra-claro:  #e8c3b0;
  --ceu:          var(--solu-water);
  --ceu-claro:    var(--solu-sky);
  --mel:          var(--solu-honey);
  --mel-claro:    #F3D9A6;
  --linha:        rgba(43, 38, 32, 0.18);
  --linha-forte:  rgba(43, 38, 32, 0.35);

  --display: 'Fredoka', 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --corpo:   'Nunito', 'Quicksand', system-ui, sans-serif;

  /* Sistema de elevação — sombras quentes em níveis (sofisticação: card flutua > borda grossa) */
  --elev-1: 0 1px 2px rgba(61, 52, 42, 0.05), 0 1px 3px rgba(61, 52, 42, 0.04);
  --elev-2: 0 2px 5px rgba(61, 52, 42, 0.05), 0 6px 16px rgba(61, 52, 42, 0.07);
  --elev-3: 0 4px 10px rgba(61, 52, 42, 0.06), 0 14px 34px rgba(61, 52, 42, 0.13);
  --borda-sutil: 1px solid rgba(43, 38, 32, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--corpo);
  font-size: 16px;
  min-height: 100vh;
}

body {
  /* Aguadas de aquarela: blooms suaves nas cores da marca, espalhados como tinta no papel */
  background-image:
    radial-gradient(ellipse 62% 52% at 16% 6%, rgba(232, 169, 92, 0.17), transparent 60%),
    radial-gradient(ellipse 55% 48% at 90% 18%, rgba(201, 123, 90, 0.12), transparent 60%),
    radial-gradient(ellipse 72% 58% at 94% 84%, rgba(122, 139, 92, 0.15), transparent 62%),
    radial-gradient(ellipse 52% 46% at 6% 74%, rgba(168, 200, 216, 0.13), transparent 60%);
  background-attachment: fixed;
  position: relative;
}
/* Aguada de baixa frequência (papel molhado) — bem sutil, em soft-light pra não sujar */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc2MDAnIGhlaWdodD0nNjAwJz48ZmlsdGVyIGlkPSdiJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC4wMTMnIG51bU9jdGF2ZXM9JzInIHNlZWQ9JzQnIHN0aXRjaFRpbGVzPSdzdGl0Y2gnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMC44MSAgMCAwIDAgMCAwLjU1ICAwIDAgMCAwIDAuMzcgIDAgMCAwIDAuNyAwJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzYwMCcgaGVpZ2h0PSc2MDAnIGZpbHRlcj0ndXJsKCUyM2IpJy8+PC9zdmc+");
  background-size: 480px 480px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0MDAnIGhlaWdodD0nNDAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwLjE3ICAwIDAgMCAwIDAuMTUgIDAgMCAwIDAgMC4xMiAgMCAwIDAgMC41IDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nNDAwJyBoZWlnaHQ9JzQwMCcgZmlsdGVyPSd1cmwoJTIzbiknIG9wYWNpdHk9JzAuMzUnLz48L3N2Zz4=");
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 1;
}

#root { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

button {
  font-family: var(--corpo);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   App shell
   ============================================ */
.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
}
/* Divisor abaixo do mês: linha sólida fina, recuada 5% de cada lado (não toca as bordas) */
.header::after {
  content: "";
  position: absolute;
  left: 5%; right: 5%; bottom: 0;
  height: 1px;
  background: var(--linha);
}

.header-title { display: flex; flex-direction: column; gap: 4px; }
.header-title .kicker {
  font-family: var(--corpo);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  /* Degradê de cinzas quentes (shades of grey) — nunca preto puro */
  color: #6e655c; /* fallback p/ browsers sem background-clip */
  background: linear-gradient(100deg, #4f4943 0%, #978e84 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Solu wordmark / logo (apenas letras)
   ============================================ */
.solu-logo {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  color: var(--solu-bark);
  font-size: 56px;
  letter-spacing: -0.025em;
  line-height: 0.95;
  user-select: none;
}
.solu-logo.mini { font-size: 22px; }

/* ============================================
   Filhas — avatares no header
   ============================================ */
.filhas-strip {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filha-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--paper);
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(43, 38, 32, 0.05);
}
.filha-pill image-slot {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
.filha-pill-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.filha-pill-nome {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--solu-bark);
}
.filha-pill-idade {
  font-family: var(--corpo);
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}
.header-title h1 { font-size: 44px; line-height: 1; }
.header-title h1 .acento { color: var(--terra); font-style: italic; }
.header-title .solu-logo { font-size: 52px; }
.header-mes {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink-soft);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-mes .grande { font-size: 30px; color: var(--musgo); display: block; }

/* Setinhas de navegação entre meses */
.mes-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mes-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Largura fixa generosa: cabe "Setembro 2030 🌻" sem quebrar linha.
     Mantém as setas paradas independente do mês. */
  width: 280px;
  text-align: center;
}
.mes-label > .grande {
  white-space: nowrap;
}
.mes-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--linha);
  color: var(--terra);
  font-size: 28px;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 rgba(61, 52, 42, 0.08);
  padding-bottom: 4px;
}
.mes-arrow:hover:not(:disabled) {
  background: var(--terra);
  color: var(--paper);
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(61, 52, 42, 0.12);
}
.mes-arrow:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(61, 52, 42, 0.08);
}
.mes-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

/* ============================================
   Calendário grande
   ============================================ */
.calendario-wrap {
  background: var(--paper);
  border: 1.5px solid var(--linha);
  border-radius: 28px 24px 26px 22px / 24px 28px 22px 26px;
  padding: 26px 28px 32px;
  box-shadow: 0 4px 0 rgba(61, 52, 42, 0.06), 0 8px 24px rgba(61, 52, 42, 0.06);
}

.calendario-instrucao {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  margin-bottom: 18px;
}

.cal-grid-big {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.cal-grid-big.com-fds { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell-big.fds-dia.vazio { background: var(--bg-deep); opacity: 0.75; }

/* Toggle de fins de semana (estado só da sessão) */
.fds-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.fds-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--musgo);
  cursor: pointer;
}

.cal-dow-big {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 0 8px;
}

.cal-cell-big {
  aspect-ratio: 1 / 1.05;
  background: rgba(251, 245, 231, 0.5);
  border: var(--borda-sutil);
  border-radius: 18px 14px 18px 14px / 14px 18px 14px 18px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: var(--corpo);
}

.cal-cell-big.outside {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.cal-cell-big:not(.outside):hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
  border-color: rgba(201, 123, 90, 0.5);
  z-index: 2;
}

.cal-cell-big .cal-dia-num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  align-self: flex-start;
  padding-left: 2px;
}

.cal-cell-big.vazio .cal-plus {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 300;
  color: rgba(43, 38, 32, 0.2);
  margin: auto 0;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cal-cell-big.vazio:hover .cal-plus {
  color: var(--terra);
  transform: scale(1.15);
}

/* Dias com aula: fill suave (wash) + elevação leve, sem borda grossa nem anel duplo */
.cal-cell-big.preenchido {
  box-shadow: var(--elev-1);
}
.cal-cell-big.preenchido .cal-dia-num { color: var(--ink); }

/* Planejada (lavada de céu) vs concluída (lavada de mel) */
.cal-cell-big.planejado {
  background: rgba(168, 200, 216, 0.32);
  border: 1px solid rgba(168, 200, 216, 0.55);
}
.cal-cell-big.planejado:hover {
  background: rgba(168, 200, 216, 0.45);
  border-color: rgba(201, 123, 90, 0.5);
}
.cal-cell-big.planejado .cal-badge {
  background: var(--ceu);
  color: var(--paper);
}
.cal-cell-big.concluida {
  background: rgba(232, 169, 92, 0.22);
  border: 1px solid rgba(232, 169, 92, 0.5);
}
.cal-cell-big.concluida:hover {
  background: rgba(232, 169, 92, 0.32);
  border-color: rgba(201, 123, 90, 0.5);
}
.cal-cell-big.concluida .cal-badge {
  background: var(--musgo);
  color: var(--paper);
}

.cal-cell-big .cal-emoji {
  font-size: 33px;
  line-height: 1;
  margin: 4px 0 2px;
}
.cal-cell-big .cal-assunto {
  font-family: var(--display);
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 2px;
}
.cal-cell-big .cal-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--musgo);
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.88;
}

/* ============================================
   Modal
   ============================================ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(61, 52, 42, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--paper);
  border: var(--borda-sutil);
  border-radius: 32px 28px 30px 26px / 28px 32px 26px 30px;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 32px 28px;
  position: relative;
  box-shadow: 0 8px 20px rgba(61, 52, 42, 0.12), 0 28px 60px rgba(61, 52, 42, 0.2);
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-close:hover { background: var(--terra); color: var(--paper); }

.modal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.modal-hero .emoji-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--terra-claro);
  border: 3px solid var(--terra);
  flex-shrink: 0;
}
.modal-hero h2 { font-size: 28px; margin-bottom: 2px; }
.modal-hero .subtipo {
  font-family: var(--display);
  font-size: 13px;
  color: var(--musgo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.conceito {
  background: var(--mel-claro);
  border: 2px dashed var(--mel);
  border-radius: 22px;
  padding: 16px 22px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.35;
}

.secao-titulo {
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Campos do form */
.campo {
  margin-bottom: 18px;
}
.campo label {
  display: block;
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.campo input[type="text"],
.campo textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--corpo);
  font-size: 15px;
  color: var(--ink);
}
.campo textarea {
  min-height: 80px;
  resize: vertical;
}
.campo input[type="text"]:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(201, 123, 94, 0.18);
}

.atividades-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.atividade-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atividade-row .atividade-bullet {
  font-family: var(--display);
  font-size: 24px;
  color: var(--musgo);
  width: 14px;
  flex-shrink: 0;
  text-align: center;
}
.atividade-row input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--corpo);
  font-size: 15px;
  color: var(--ink);
}
.atividade-row input:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
}
.btn-remover {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-remover:hover { background: var(--terra); color: var(--paper); }

.btn-adicionar {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px dashed var(--musgo);
  border-radius: 12px;
  color: var(--musgo);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.btn-adicionar:hover { background: rgba(107, 138, 90, 0.12); }

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--bg);
  border-radius: 14px;
  border: 1.5px solid var(--linha);
}
.emoji-opt {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.emoji-opt:hover { background: var(--paper); }
.emoji-opt.sel {
  background: var(--paper);
  border-color: var(--terra);
  transform: scale(1.1);
}

/* Checklist (modo ver) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.check-item:hover { border-color: var(--musgo); background: #efe6ce; }
.check-item.checked {
  background: #e3ecd5;
  border-color: var(--musgo);
  text-decoration: line-through;
  text-decoration-color: var(--musgo);
  color: var(--ink-soft);
}
.checkbox {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2.5px solid var(--ink-soft);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.check-item.checked .checkbox {
  background: var(--musgo);
  border-color: var(--musgo);
  color: var(--paper);
}
.check-item .label { font-size: 15px; }

/* Alça de arrastar para reordenar atividades */
.drag-alca {
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px 6px 8px 12px;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
  opacity: 0.55;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.drag-alca:active { cursor: grabbing; }
.check-item.arrastando {
  position: relative;
  z-index: 5;
  transition: none;
  background: #efe6ce;
  border-color: var(--mel);
  box-shadow: 0 8px 20px rgba(43, 38, 32, 0.18);
}

.materiais {
  background: var(--ceu-claro);
  border: 1.5px solid var(--ceu);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.materiais h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Botões */
.btn-concluir {
  width: 100%;
  background: var(--musgo);
  color: var(--paper);
  padding: 16px 24px;
  border-radius: 18px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 4px 0 #5a7449;
  transition: all 0.15s ease;
}
.btn-concluir:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #5a7449; }
.btn-concluir:active { transform: translateY(2px); box-shadow: 0 2px 0 #5a7449; }

.btn-secundario {
  padding: 14px 22px;
  background: var(--bg-deep);
  color: var(--ink);
  border-radius: 18px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  min-width: 60px;
}
.btn-secundario:hover { background: var(--terra); color: var(--paper); }
.btn-cancelar {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: italic;
  text-transform: lowercase;
  padding: 10px;
}
.btn-cancelar:hover { background: transparent; color: var(--terra); }

/* ============================================
   Celebração
   ============================================ */
.confete-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}
.confete-piece {
  position: absolute;
  font-size: 28px;
  animation: confeteFall 2.2s ease-out forwards;
}
@keyframes confeteFall {
  0% { transform: translateY(-20vh) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.estrela-grande {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  z-index: 201;
  pointer-events: none;
  animation: estrelaPulo 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes estrelaPulo {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.3) rotate(10deg); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.2) rotate(0); opacity: 0; }
}



/* ============================================
   Nav (abas)
   ============================================ */
.nav {
  display: flex;
  gap: 6px;
  margin: 0 auto 24px;
  padding: 6px;
  /* vidro fosco */
  background: rgba(251, 245, 231, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 22px;
  box-shadow: inset 0 2px 6px rgba(61, 52, 42, 0.08);
  border: 1.5px solid var(--linha);
  width: fit-content;
}
.nav-ic { display: inline-flex; align-items: center; }
.nav-ic svg { width: 25px; height: 25px; display: block; }
.nav-pilula { display: none; } /* só aparece no mobile (barra de rodapé) */
.nav-criar { display: none; } /* FAB central: só no mobile (barra de rodapé fixa) */
.nav button {
  padding: 12px 22px;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.nav button:hover { background: rgba(201, 123, 94, 0.12); color: var(--ink); }
.nav button.active {
  background: var(--terra);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(201, 123, 94, 0.35);
}
.nav button .nav-emoji { font-size: 20px; }

/* ============================================
   Memórias — feed de fotos do mês
   ============================================ */
.memorias-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
}
.memoria-card {
  background: var(--paper);
  border: var(--borda-sutil);
  border-radius: 22px 20px 21px 19px;
  padding: 14px;
  box-shadow: var(--elev-2);
}
.memoria-titulo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 2px 4px 10px;
  cursor: pointer;
}
.memoria-emoji { font-size: 20px; align-self: center; }
.memoria-assunto {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.memoria-data {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.memoria-carrossel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 16px;
  background: var(--bg-deep); /* placeholder quente enquanto a foto carrega (blur-up) */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.memoria-carrossel::-webkit-scrollbar { display: none; }
.memoria-carrossel img {
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  border-radius: 16px;
  cursor: zoom-in;
}

/* Blur-up: a foto entra com fade + desfoque que foca quando carrega (mascara o load; placeholder quente atrás) */
.foto-blur { opacity: 0; filter: blur(12px); transition: opacity 0.5s ease, filter 0.55s ease; }
.foto-blur.carregada { opacity: 1; filter: blur(0); }
.memoria-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
}
.memoria-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(43, 38, 32, 0.18);
  transition: all 0.15s ease;
}
.memoria-dot.on { background: var(--terra); transform: scale(1.35); }
.memoria-legenda {
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 8px 2px;
}
.memoria-compartilhar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 12px auto 2px;
}
.memoria-compartilhar .ic-aviao { flex-shrink: 0; }
.memoria-compartilhar:disabled { opacity: 0.6; cursor: wait; }

.memorias-vazio {
  background: var(--paper);
  border: 1.5px dashed var(--linha);
  border-radius: 22px 20px 21px 19px;
  box-shadow: var(--elev-1);
  padding: 36px 24px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 15px;
}

/* ============================================
   Foto tag no calendário
   ============================================ */
/* ✓ discreto pra dia concluído (a cor mel já indica; o ✓ confirma sem texto) */
.cal-cell-big .cal-feito {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--musgo);
  line-height: 1;
}
/* Indicador de foto no estilo minimalista dos ícones do nav */
.cal-cell-big .cal-foto-tag {
  position: absolute;
  bottom: 6px;
  right: 7px;
  line-height: 0;
  color: var(--terra);
  opacity: 0.7;
}
.cal-cell-big .cal-foto-tag svg { width: 13px; height: 13px; display: block; }

/* ============================================
   Fotos (dentro do DiaModal)
   ============================================ */
.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.foto-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--linha);
  background: var(--bg);
  box-shadow: 0 3px 8px rgba(61, 52, 42, 0.1);
}
.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foto-legenda-mini {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(61, 52, 42, 0.85));
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  padding: 14px 8px 6px;
  font-family: var(--display);
  text-align: left;
  line-height: 1.15;
}
.foto-remover {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(61, 52, 42, 0.7);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.foto-thumb:hover .foto-remover,
.foto-pendente:hover .foto-remover { opacity: 1; }
.foto-remover:hover { background: var(--terra); }

.fotos-vazio {
  background: var(--bg);
  border: 1.5px dashed var(--linha-forte);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 14px;
}

.btn-foto {
  width: 100%;
  background: var(--mel);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 0 #b88547;
  transition: all 0.15s ease;
}
.btn-foto:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #b88547; }
.btn-foto:active { transform: translateY(2px); box-shadow: 0 2px 0 #b88547; }

/* ============================================
   FotoModal
   ============================================ */
.modal-foto { max-width: 720px; }

.dropzone {
  background: var(--bg);
  border: 2.5px dashed var(--musgo);
  border-radius: 22px;
  padding: 32px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover {
  background: #efe6ce;
  border-color: var(--terra);
}
.dropzone.drag-over {
  background: #e3ecd5;
  border-color: var(--musgo);
  transform: scale(1.01);
}
.dropzone-emoji { font-size: 48px; margin-bottom: 6px; }
.dropzone-titulo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.dropzone-sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

.legenda-comum {
  display: flex;
  gap: 8px;
  align-items: center;
}
.legenda-comum input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--corpo);
  font-size: 14px;
  color: var(--ink);
}
.legenda-comum input:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
}
.legenda-comum .btn-adicionar {
  margin: 0;
  padding: 10px 16px;
}

.foto-pendente {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--mel);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-pendente img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.foto-legenda-input {
  background: var(--bg);
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--corpo);
  font-size: 12px;
  color: var(--ink);
  width: 100%;
}
.foto-legenda-input:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
}

/* Fotos já salvas com legenda editável (mesma estrutura das pendentes, borda calma) */
.foto-pendente.foto-salva { border-color: var(--linha); }
.foto-pendente.foto-salva img,
.foto-thumb img { cursor: zoom-in; }

/* ============================================
   FotoViewer — foto em tela cheia
   ============================================ */
.foto-viewer-bg {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(32, 27, 21, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  animation: fotoViewerIn 0.18s ease;
}
@keyframes fotoViewerIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.foto-viewer-img {
  max-width: min(960px, 100%);
  max-height: 78vh;
  border-radius: 18px 16px 17px 19px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.foto-viewer-legenda {
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  max-width: min(640px, 92%);
  line-height: 1.3;
}
.foto-viewer-fechar {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 237, 224, 0.18);
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-viewer-fechar:hover { background: var(--terra); }

/* ============================================
   Materiais do Mês
   ============================================ */
.materiais-wrap {
  background: var(--paper);
  border: 1.5px solid var(--linha);
  border-radius: 28px 24px 26px 22px / 24px 28px 22px 26px;
  padding: 28px 30px 32px;
  box-shadow: 0 4px 0 rgba(61, 52, 42, 0.06), 0 8px 24px rgba(61, 52, 42, 0.06);
}

.materiais-vazio {
  text-align: center;
  padding: 60px 20px;
}

.materiais-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--linha);
}
.materiais-titulo {
  font-size: 28px;
  margin-bottom: 6px;
}

.materiais-acoes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.btn-pequeno {
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.btn-pequeno:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }

.progresso-bar-wrap {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--linha);
  margin-bottom: 18px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.progresso-bar-wrap:hover { border-color: var(--terra); }
.progresso-bar-wrap.filtro-ativo {
  border-color: var(--terra);
  background: rgba(201, 123, 90, 0.07);
}
.progresso-bar-wrap.filtro-ativo .progresso-label { color: var(--terra); }
.progresso-bar {
  height: 10px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progresso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--musgo), var(--musgo-claro));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.progresso-label {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.materiais-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.material-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper);
  border: var(--borda-sutil);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--elev-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.material-card:hover { transform: translateY(-1px); box-shadow: var(--elev-2); }
.material-card.checked {
  background: rgba(122, 139, 92, 0.13);
  border-color: rgba(122, 139, 92, 0.4);
  box-shadow: none;
}
.material-card.checked .material-nome {
  text-decoration: line-through;
  text-decoration-color: var(--musgo);
  color: var(--ink-soft);
}
.material-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.material-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.material-nome {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  word-break: break-word;
}
.material-uso {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.material-dias {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.dia-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid rgba(43, 38, 32, 0.1);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dia-chip:hover {
  background: var(--terra);
  color: var(--paper);
  border-color: var(--terra);
  transform: translateY(-2px);
}

/* Banner de "concluída" no modo ver */
.concluida-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e3ecd5;
  border: 2px solid var(--musgo);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

/* ============================================
   Print
   ============================================ */
@media print {
  body { background: white; }
  body::before { display: none; }
  .header, .nav, .materiais-acoes, .progresso-bar-wrap, .stat-pill,
  .materiais-stats, [class*="tweaks"], [class*="om-edit"] { display: none !important; }
  .app { padding: 0; max-width: 100%; }
  .materiais-wrap { box-shadow: none; border: none; padding: 0; }
  .materiais-head { border-bottom: 1.5px solid #999; padding-bottom: 12px; }
  .material-card { break-inside: avoid; page-break-inside: avoid; }
  .dia-chip { background: white; }
}

/* ============================================
   Filhos — avatar dinâmico (substitui image-slot)
   ============================================ */
.filha-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: var(--bg-deep);
}
.filha-avatar-vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  background: var(--musgo);
}
.filha-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1.5px dashed var(--linha);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--corpo);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: center;
}
.filha-add:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(201, 123, 90, 0.06);
}

/* ============================================
   Modal de filhos
   ============================================ */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.filhos-titulo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--solu-bark);
}
.filhos-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.filhos-vazio {
  font-family: var(--corpo);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
}
.filho-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--bg-deep);
  border-radius: 16px 14px 15px 13px;
}
.filho-foto-btn {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.filho-foto-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 12px;
  background: var(--paper);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.filho-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
  flex: 1;
}
.filho-item-acoes {
  display: flex;
  gap: 6px;
}
.btn-mini {
  border: none;
  background: var(--paper);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-mini:hover { background: var(--ceu); }

.filho-form {
  border-top: 1.5px solid var(--linha);
  padding-top: 18px;
}
.filho-form-titulo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--solu-bark);
  margin-bottom: 10px;
}
.filho-form-campos {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filho-input {
  flex: 1;
  min-width: 140px;
  padding: 11px 14px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  font-family: var(--corpo);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.filho-input:focus {
  outline: none;
  border-color: var(--musgo);
}
.filho-input-idade { flex: 0 0 160px; }
.filho-form-botoes {
  display: flex;
  gap: 10px;
  align-items: center;
}
.filho-dica {
  font-family: var(--corpo);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ============================================
   Aniversário dos filhos
   ============================================ */
.filha-aniv-msg {
  font-family: var(--corpo);
  font-style: italic;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.filha-aniv-hoje {
  color: var(--terra);
  font-weight: 700;
  font-style: normal;
}
.filha-aniv-semana { color: var(--terra); }
.filha-aniv-mes { color: var(--musgo); opacity: 0.85; }

.filha-pill-aniv {
  box-shadow: 0 0 0 2px var(--mel), 0 4px 14px rgba(232, 169, 92, 0.25);
  animation: piscaAniv 2.8s ease-in-out infinite;
}
@keyframes piscaAniv {
  0%, 100% { box-shadow: 0 0 0 2px var(--mel), 0 4px 14px rgba(232, 169, 92, 0.25); }
  50%      { box-shadow: 0 0 0 3px var(--mel), 0 6px 22px rgba(232, 169, 92, 0.45); }
}
.filha-aniv-cake {
  margin-left: 6px;
  font-size: 0.9em;
  vertical-align: middle;
}

/* dentro do modal de filhos */
.filho-aniv-mini {
  font-family: var(--corpo);
  font-style: italic;
  font-size: 12px;
  color: var(--terra);
  margin-top: 2px;
}

/* Preview da idade calculada no form */
.filho-form-preview {
  font-family: var(--corpo);
  font-size: 13px;
  font-style: italic;
  color: var(--musgo);
  margin: -4px 0 12px;
  padding-left: 4px;
}

/* Campo de data — mesmo visual do input de texto */
.filho-input-data {
  flex: 0 0 180px;
  color-scheme: light;
}

/* ============================================
   Duplicar aula (DiaModal, modo ver)
   ============================================ */
.btn-duplicar {
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1.5px dashed var(--linha-forte);
  border-radius: 14px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-duplicar:hover { border-color: var(--mel); color: var(--ink); background: rgba(232, 169, 92, 0.08); }
.duplicar-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--mel);
  border-radius: 14px;
}
.duplicar-box label {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.duplicar-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.duplicar-row input[type="date"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--corpo);
  font-size: 14px;
  color: var(--ink);
  color-scheme: light;
}
.duplicar-ok { flex-shrink: 0; }
.duplicar-row .btn-remover {
  position: static;
  opacity: 1;
  flex-shrink: 0;
}

/* ============================================
   Boas-vindas (onboarding de conta nova)
   ============================================ */
.boasvindas-card {
  position: relative;
  background: var(--paper);
  border: 2px dashed var(--mel);
  border-radius: 22px 20px 21px 19px;
  padding: 22px 22px 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(61, 52, 42, 0.07);
}
.boasvindas-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boasvindas-fechar:hover { background: var(--terra); color: var(--paper); }
.boasvindas-titulo {
  font-size: 24px;
  margin-bottom: 4px;
}
.boasvindas-sub {
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.boasvindas-passos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.boasvindas-passos li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  padding: 10px 14px;
}
.boasvindas-emoji { font-size: 24px; flex-shrink: 0; }
.boasvindas-texto { flex: 1; min-width: 0; }
.boasvindas-texto strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
}
.boasvindas-texto small {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================
   Auth — splash, login e cadastro (marca Solu)
   ============================================ */
.auth-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-splash .solu-logo { font-size: 48px; }
.auth-splash-msg { color: var(--ink-soft); font-style: italic; font-size: 14px; }

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 2px solid var(--linha);
  border-radius: 26px 22px 24px 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 12px 34px rgba(61, 52, 42, 0.12);
}
.auth-marca {
  text-align: center;
  margin-bottom: 20px;
}
.auth-marca .solu-logo { font-size: 44px; }
.auth-tagline {
  font-family: var(--corpo);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
  /* Mesmo degradê de cinzas quentes do header */
  color: #6e655c;
  background: linear-gradient(100deg, #4f4943 0%, #978e84 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px 8px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  background: transparent;
  transition: all 0.15s ease;
}
.auth-tabs button.on {
  background: var(--terra);
  color: var(--paper);
  box-shadow: 0 3px 9px rgba(201, 123, 90, 0.32);
}
.auth-convite-aviso {
  background: #e3ecd5;
  border: 1.5px solid var(--musgo);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.35;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-campo { display: flex; flex-direction: column; gap: 5px; }
.auth-campo > span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.auth-campo input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--corpo);
  font-size: 15px;
  color: var(--ink);
  color-scheme: light;
}
.auth-campo input:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--paper);
}
.auth-token {
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.auth-erro {
  background: #f6e0da;
  border: 1.5px solid var(--terra);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13.5px;
  color: #9d5a44;
  font-weight: 600;
}
.auth-enviar {
  margin-top: 4px;
  width: 100%;
  padding: 13px;
  background: var(--mel);
  color: var(--ink);
  border-radius: 14px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 0 #b88547;
  transition: all 0.15s ease;
}
.auth-enviar:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #b88547; }
.auth-enviar:disabled { opacity: 0.65; cursor: default; }
.auth-ou {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
}
.auth-ou::before, .auth-ou::after {
  content: '';
  flex: 1;
  border-top: 1.5px solid var(--linha);
}
.auth-ou span { padding: 0 12px; }
.auth-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  background: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}
.auth-google:disabled { opacity: 0.7; cursor: default; }
.auth-google-g {
  font-weight: 800;
  color: var(--terra);
  font-size: 17px;
}
.auth-breve {
  position: absolute;
  right: 12px;
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.7;
}
.auth-rodape {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-rodape button {
  background: transparent;
  color: var(--terra);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
}
.auth-titulo {
  font-size: 22px;
  text-align: center;
  margin: 6px 0 14px;
}
.auth-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 4px;
  line-height: 1.45;
}
.auth-esqueci {
  text-align: center;
  margin-top: 12px;
}
.auth-esqueci button {
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
}
.auth-esqueci button:hover { color: var(--terra); }

/* ============================================
   Botão de conta (header) + modal Conta
   ============================================ */
.kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Desktop: foto da conta fixa no canto superior direito do header (padrão de "conta") */
.conta-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--musgo);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  box-shadow: 0 3px 10px rgba(43, 38, 32, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.conta-btn:hover { transform: scale(1.06); box-shadow: 0 5px 16px rgba(122, 139, 92, 0.4); }
.conta-btn-foto {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.modal-conta { max-width: 440px; }
.conta-cabecalho {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--linha);
}
.conta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--musgo);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.conta-avatar-btn {
  position: relative;
  cursor: pointer;
  overflow: visible;
  padding: 0;
  border: none;
}
.conta-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.conta-avatar-cam {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--linha);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(61, 52, 42, 0.2);
}
.conta-avatar-btn:hover { transform: scale(1.04); }
.conta-remover-foto {
  display: block;
  margin-top: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: underline;
}
.conta-remover-foto:hover { color: var(--terra); }
.conta-nome { font-size: 22px; margin: 0; }
.conta-email { font-size: 13px; color: var(--ink-soft); margin-top: 2px; word-break: break-all; }
.conta-papel {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
}
.papel-founder { background: var(--mel-claro); border: 1.5px solid var(--mel); color: #9a6a23; }
.papel-admin { background: var(--ceu-claro); border: 1.5px solid var(--ceu); color: var(--agua); }

.conta-secao { margin-bottom: 18px; }
.conta-sub { font-size: 14px; color: var(--ink-soft); margin: 4px 0 12px; }
.conta-gerar { width: 100%; }
.conta-erro {
  background: #f6e0da; border: 1.5px solid var(--terra); border-radius: 12px;
  padding: 9px 13px; font-size: 13.5px; color: #9d5a44; font-weight: 600; margin-top: 10px;
}
.conta-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.convite-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  padding: 10px 12px;
}
.convite-token {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.convite-share {
  flex-shrink: 0;
  background: var(--mel);
  color: var(--ink);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
}
.convite-share:hover { background: var(--honey, var(--mel)); transform: translateY(-1px); }
.conta-usados { margin-top: 12px; font-size: 13px; color: var(--musgo); font-weight: 600; font-style: italic; }
.conta-vazio { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); font-style: italic; }
.conta-ver-mais {
  align-self: flex-start; margin-top: 2px; background: transparent;
  color: var(--terra); font-family: var(--display); font-weight: 600; font-size: 13px; padding: 4px 2px;
}
.conta-ver-mais:hover { text-decoration: underline; }
.conta-entraram { margin-top: 16px; }
.conta-entraram-titulo { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--musgo); margin-bottom: 8px; }
.conta-entraram-nomes { display: flex; flex-wrap: wrap; gap: 6px; }
.conta-entrou-chip {
  background: rgba(122, 139, 92, 0.16); color: var(--ink); border-radius: 999px;
  padding: 4px 12px; font-family: var(--display); font-weight: 600; font-size: 13px;
}
.conta-sair { width: 100%; }

/* ============================================
   Home / Início (vibe emocional, álbum)
   ============================================ */
.home-wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}
.home-saud h2 {
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}
.home-saud p {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}
.home-aniv {
  background: var(--mel-claro);
  border: 1.5px solid var(--mel);
  border-radius: 18px 16px 17px 19px;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.home-aniv-hoje { animation: piscaAniv 2.8s ease-in-out infinite; }

.home-hoje {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: var(--borda-sutil);
  border-radius: 20px 18px 19px 17px;
  padding: 16px;
  box-shadow: var(--elev-2);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-hoje:hover { transform: translateY(-2px); box-shadow: var(--elev-3); }
.home-hoje-vazio { border: 1.5px dashed var(--linha-forte); background: transparent; box-shadow: none; }
.home-hoje-emoji { font-size: 30px; flex-shrink: 0; }
.home-hoje-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.home-hoje-txt small {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--musgo);
}
.home-hoje-txt strong { font-family: var(--display); font-size: 16px; color: var(--ink); }
.home-seta { font-size: 26px; color: var(--ink-soft); flex-shrink: 0; }

/* Hero: última memória */
.home-hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 22px 20px 21px 19px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--elev-3);
  background: var(--bg-deep);
  aspect-ratio: 4 / 5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(251, 245, 231, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--elev-1);
}
.home-hero-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(43, 38, 32, 0.78));
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.home-hero-titulo { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--paper); }
.home-hero-sub { font-size: 13px; color: rgba(245, 237, 224, 0.85); font-style: italic; }
.home-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(61,52,42,0.1), 0 22px 52px rgba(61,52,42,0.2); }

.home-hero-vazio, .home-vazio {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--paper); border: 2px dashed var(--linha-forte);
  border-radius: 22px 20px 21px 19px; padding: 28px 22px;
  color: var(--ink-soft); font-family: var(--display); font-size: 15px; cursor: pointer;
}
.home-vazio { cursor: default; }
.home-vazio strong { font-size: 20px; color: var(--ink); }
.home-vazio p { margin: 0; font-size: 14px; line-height: 1.45; }
.home-vazio .btn-concluir { margin-top: 6px; }

.home-numeros {
  text-align: center; font-family: var(--display); font-size: 14.5px; color: var(--ink-soft); padding: 2px;
}
.home-numeros b { color: var(--terra); }


/* Seletor de idioma — bandeirinhas (ativa colorida, inativas esmaecidas) */
.seletor-idioma { display: flex; gap: 3px; align-items: center; }
.flag-btn {
  font-size: 19px; line-height: 1; padding: 3px 5px; border-radius: 9px;
  background: transparent; opacity: 0.4; filter: grayscale(0.5) saturate(0.8);
  transition: opacity 0.16s ease, filter 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.flag-btn.on { opacity: 1; filter: none; background: rgba(201, 123, 90, 0.14); }
.flag-btn:active { transform: scale(0.88); }
.seletor-auth { justify-content: center; margin-bottom: 10px; }
.seletor-conta { justify-content: center; margin-bottom: 12px; }


/* ============================================
   Camada de movimento (jun/2026) — gentil, ar de app nativo.
   Tudo com prefers-reduced-motion no fim do bloco (acessibilidade).
   ============================================ */

/* Entrada das telas: cada aba monta fresca → a animação toca a cada troca (= transição entre abas) */
@keyframes telaEntra {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.calendario-wrap, .materiais-wrap, .memorias-feed {
  animation: telaEntra 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* Home: cascata escalonada nos cards (a tela emocional ganha o tratamento premium) */
.home-wrap > * { animation: telaEntra 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.home-wrap > *:nth-child(1) { animation-delay: 0.02s; }
.home-wrap > *:nth-child(2) { animation-delay: 0.09s; }
.home-wrap > *:nth-child(3) { animation-delay: 0.16s; }
.home-wrap > *:nth-child(4) { animation-delay: 0.23s; }
.home-wrap > *:nth-child(5) { animation-delay: 0.30s; }

/* Press states: afunda de leve ao toque. Declarados DEPOIS do :hover pra vencer no desktop;
   no mobile (sem hover) o :active é o que sente o dedo. */
.cal-cell-big:active { transform: scale(0.96); }
.home-hoje:active { transform: scale(0.975); }
.home-hero:active { transform: scale(0.985); }
.home-hero-vazio:active { transform: scale(0.97); }
.nav button:active { transform: scale(0.93); }

/* Ken Burns: zoom lento e contínuo na foto-herói da Home (vai-e-volta suave, sem corte seco) */
@keyframes kenBurns {
  from { transform: scale(1.005) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.2%, -1.8%); }
}
.home-hero img { animation: kenBurns 20s ease-in-out infinite alternate; will-change: transform; }

/* Acessibilidade: quem pede menos movimento recebe tudo estático */
@media (prefers-reduced-motion: reduce) {
  .calendario-wrap, .materiais-wrap, .memorias-feed,
  .home-wrap > *, .home-hero img { animation: none !important; }
  .cal-cell-big:active, .home-hoje:active, .home-hero:active,
  .home-hero-vazio:active, .nav button:active,
  .nav button.nav-criar:active .nav-criar-ic { transform: none !important; }
  .foto-blur { opacity: 1 !important; filter: none !important; transition: none !important; }
}


/* Splash de carregamento: o CSS dele é INLINE no <head> dos HTMLs (crítico, à prova de FOUC/cache) */

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 720px) {
  .app { padding: 20px 14px calc(110px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }  /* libera barra fixa + FAB elevado + notch */

  /* Nav: 3 colunas iguais que encolhem de verdade (minmax(0,1fr) — bug histórico #2) */
  /* Mobile: barra de navegação FIXA no rodapé (estilo app nativo), respeitando o notch/home indicator */
  .nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 4 abas + FAB central */
    gap: 0;
    margin: 0;
    /* +respiro embaixo (cantos não colam no fundo) e nas laterais (Início/Memórias) */
    padding: 7px 6px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 245, 231, 0.82);
    -webkit-backdrop-filter: saturate(1.5) blur(18px);
    backdrop-filter: saturate(1.5) blur(18px);
    border: none;
    border-top: 1px solid rgba(43, 38, 32, 0.08);
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(61, 52, 42, 0.07);
  }
  .nav button {
    position: relative; z-index: 1;
    flex-direction: column; justify-content: center; gap: 4px;
    padding: 4px 2px; font-size: 11px; white-space: nowrap; min-width: 0;
    border-radius: 0; background: transparent; color: var(--ink-soft);
  }
  .nav button .nav-ic { padding: 4px 18px; border-radius: 999px; }
  .nav button.active { background: transparent; color: var(--terra); box-shadow: none; }
  .nav-ic svg { width: 26px; height: 26px; }
  .nav-do-mes { display: none; }

  /* FAB central "Criar" — círculo grande, ABSOLUTO (sai do fluxo → não estica a barra e sobe acima dela) */
  .nav button.nav-criar { position: relative; padding: 0; }
  .nav-criar-ic {
    position: absolute;
    left: 0; right: 0; margin: 0 auto; /* centra sem transform (pra não brigar com o press) */
    top: -24px;                        /* extrapola pra cima do rodapé */
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--mel), var(--terra));
    color: var(--paper);
    font-size: 34px; line-height: 1; padding-bottom: 2px; font-weight: 400;
    box-shadow: 0 8px 20px rgba(201, 123, 90, 0.5), 0 2px 5px rgba(61, 52, 42, 0.28);
    border: 3.5px solid var(--paper);
    transition: transform 0.15s ease;
  }
  .nav button.nav-criar:active { transform: none; }
  .nav button.nav-criar:active .nav-criar-ic { transform: scale(0.9); }

  /* A pílula deslizante: SÓ atrás do ícone, escorrega pra coluna ativa (Material You/WhatsApp) */
  .nav-pilula {
    display: block;
    position: absolute;
    top: 11px;
    left: 0;
    width: 20%; /* 5 colunas: cada uma 20% (pill pula a do meio via --i 0,1,3,4) */
    height: 34px;
    transform: translateX(calc(var(--i, 0) * 100%));
    transition: transform 0.34s cubic-bezier(0.34, 1.25, 0.5, 1);
    pointer-events: none;
    z-index: 0;
  }
  .nav-pilula::before {
    content: '';
    display: block;
    width: 56px;
    height: 100%;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(201, 123, 90, 0.16);
  }

  .calendario-wrap { padding: 18px 10px 24px; min-width: 0; }

  /* Header compacto: logo menor, pills dos filhos em 1 linha, mês enxuto */
  .header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; padding-bottom: 14px; }
  /* Mobile: foto volta pro fluxo do kicker-row (canto direito da linha), menor */
  .conta-btn { position: static; width: 34px; height: 34px; font-size: 15px; border-width: 1.5px; }
  .flag-btn { font-size: 17px; padding: 2px 4px; }
  .header-title { gap: 2px; }
  .header-title .kicker { font-size: 11px; letter-spacing: 0.14em; }
  .header-title h1 { font-size: 30px; }
  .header-title .solu-logo { font-size: 30px; }
  .filhas-strip { gap: 8px; margin-top: 8px; }
  .filha-pill { gap: 7px; padding: 4px 10px 4px 4px; }
  .filha-pill image-slot { width: 30px; height: 30px; }
  .filha-avatar { width: 30px; height: 30px; }
  .filha-avatar-vazio { font-size: 13px; }
  .filha-pill-nome { font-size: 13.5px; }
  .filha-pill-idade { font-size: 10.5px; }
  .filha-aniv-msg { font-size: 10.5px; max-width: 150px; }
  .filha-add { padding: 6px 10px; font-size: 12px; }
  .header-mes { text-align: left; width: 100%; }
  .header-mes .grande { font-size: 24px; }
  .mes-arrow { width: 38px; height: 38px; font-size: 24px; }
  .mes-nav { width: 100%; justify-content: space-between; }
  .mes-label { width: auto; flex: 1; }
  .cal-grid-big { gap: 6px; }
  .cal-cell-big { padding: 6px 4px 4px; }
  .cal-cell-big .cal-dia-num { font-size: 16px; }
  .cal-cell-big .cal-emoji { font-size: 24px; margin: 2px 0 0; }
  .cal-cell-big .cal-assunto { font-size: 9.5px; }
  .cal-cell-big .cal-badge { display: none; }
  .cal-dow-big { font-size: 11px; padding: 2px 0 6px; }
  .modal { padding: 22px; }
  .modal-hero h2 { font-size: 22px; }
  .emoji-opt { width: 36px; height: 36px; font-size: 20px; }
  .materiais-head { flex-direction: column; gap: 14px; }
  .materiais-titulo { font-size: 21px; }
  .material-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}
