:root {
  --rose: #f6b7c9;
  --rose-strong: #e77f9e;
  --leaf: #b9d9bf;
  --leaf-strong: #4f9465;
  --cream: #fff6e8;
  --warm: #fffaf2;
  --honey: #f9d9a7;
  --ink: #332b25;
  --muted: #796f66;
  --line: rgba(82, 67, 54, 0.14);
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 42px rgba(90, 67, 54, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(246, 183, 201, 0.42), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(185, 217, 191, 0.46), transparent 26rem),
    linear-gradient(145deg, var(--warm), #fff);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 0.9rem;
  color: var(--ink);
}
textarea { min-height: 8rem; padding: 0.85rem 0.9rem; resize: vertical; }
label { display: grid; gap: .35rem; color: var(--muted); font-weight: 700; font-size: .86rem; }
ul, ol { padding-left: 1.2rem; line-height: 1.7; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 17rem minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 1.35rem 1rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .75rem; padding: .35rem .5rem 1.2rem; }
.brand.compact { padding: 0 0 1rem; }
.brand-mark {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 1rem; background: linear-gradient(145deg, var(--rose), var(--honey));
  box-shadow: 0 12px 26px rgba(231, 127, 158, .25); font-size: 1.55rem;
}
.brand strong { display: block; font-size: 1.08rem; }
.brand small { color: var(--muted); }
.nav-list { display: grid; gap: .35rem; }
.nav-item {
  min-height: 3rem; border-radius: 1.1rem; display: flex; align-items: center; gap: .75rem;
  padding: 0 .85rem; color: var(--muted); border: 0; background: transparent;
}
.nav-item.active { color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.nav-icon {
  width: 2rem; height: 2rem; border-radius: .8rem; display: grid; place-items: center;
  background: rgba(246, 183, 201, .28);
}
.main { min-width: 0; padding: 1.25rem 1.4rem 5.8rem; }
.topbar {
  max-width: 78rem; margin: 0 auto 1.2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.topbar h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.06; }
.topbar p, .muted { color: var(--muted); }
.profile-pill {
  display: flex; align-items: center; gap: .65rem; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, .78); padding: .45rem .8rem .45rem .45rem;
  min-width: max-content;
}
.avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf); font-weight: 800;
}
.page { max-width: 78rem; margin: 0 auto; display: grid; gap: 1rem; }
.hero, .detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: 1rem; }
.detail-hero { grid-template-columns: 16rem minmax(0, 1fr); align-items: stretch; }
.hero-panel, .panel, .recipe-card, .setup-card {
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.hero-panel { border-radius: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); overflow: hidden; }
.hero-panel h2 { margin: 0; max-width: 44rem; font-size: clamp(1.65rem, 4vw, 3.25rem); line-height: 1.05; }
.hero-panel p, .panel p, .recipe-body p { color: var(--muted); line-height: 1.6; }
.quick-actions, .row-actions, .meta, .tags, .filters { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.btn {
  min-height: 2.75rem; border: 0; border-radius: 1rem; padding: 0 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: #fff; color: var(--ink); box-shadow: 0 10px 22px rgba(90, 67, 54, .09);
}
.btn.primary { background: linear-gradient(135deg, var(--rose-strong), #f3a5ba); color: #fff; }
.btn.leaf { background: var(--leaf-strong); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn.small { min-height: 2.1rem; font-size: .82rem; }
.stats { display: grid; gap: .85rem; }
.stat-card, .panel { border-radius: 1.35rem; padding: 1rem; }
.stat-card { min-height: 6rem; background: rgba(255, 255, 255, .74); border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: 1.8rem; }
.stat-card span, .chip { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: .5rem; }
.section-title h2, .panel h2, .panel h3 { margin: 0; }
.recipe-card { border-radius: 1.25rem; overflow: hidden; display: grid; }
.recipe-art {
  min-height: 8.5rem; display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(135deg, rgba(246, 183, 201, .5), rgba(185, 217, 191, .55));
}
.recipe-photo { width: 100%; height: 8.5rem; object-fit: cover; display: block; font-size: 0; }
.recipe-art.big { min-height: 100%; border-radius: 1.25rem; font-size: 5rem; }
.recipe-photo.big { height: 100%; min-height: 16rem; }
.recipe-body { padding: 1rem; display: grid; gap: .65rem; }
.recipe-body h3 { margin: 0; font-size: 1.05rem; }
.chip {
  min-height: 1.8rem; border-radius: 999px; padding: .25rem .65rem; display: inline-flex; align-items: center;
  border: 1px solid rgba(82, 67, 54, .12); background: rgba(255, 255, 255, .74); font-size: .82rem;
}
.filter-chip {
  min-height: 2.2rem; border-radius: 999px; padding: .45rem .75rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .78); color: var(--muted);
}
.filter-chip.active { background: var(--leaf-strong); color: #fff; border-color: transparent; }
.icon-btn {
  width: 2.45rem; height: 2.45rem; border-radius: .9rem; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .84); display: grid; place-items: center;
}
.icon-btn.active { background: rgba(246, 183, 201, .34); color: #b53458; }
.inline-form { display: inline-flex; margin: 0; }
.toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(9rem, 12rem)) auto;
  gap: .65rem; align-items: end;
}
.compact-toolbar { grid-template-columns: minmax(0, 1fr) 12rem auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.form-grid.wide .full { grid-column: 1 / -1; }
.planner { overflow-x: auto; border-radius: 1.25rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.planner-grid { min-width: 58rem; display: grid; grid-template-columns: 8rem repeat(4, minmax(10rem, 1fr)); }
.planner-cell {
  min-height: 5.2rem; padding: .65rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; gap: .45rem; align-content: start;
}
.planner-cell.header, .planner-cell.day { background: rgba(255, 246, 232, .88); font-weight: 800; }
.meal-pill { border-radius: .9rem; padding: .55rem; background: rgba(185, 217, 191, .38); border: 1px solid rgba(79, 148, 101, .22); }
.draggable-meal { cursor: grab; }
.draggable-meal.dragging { opacity: .55; cursor: grabbing; }
.planner-dropzone.over {
  outline: 3px solid rgba(231, 127, 158, .45);
  outline-offset: -5px;
  background: rgba(246, 183, 201, .16);
}
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.list-row.done span { text-decoration: line-through; color: var(--muted); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.switch { width: 3.25rem; height: 1.8rem; border: 0; border-radius: 999px; background: rgba(82, 67, 54, .18); padding: .2rem; box-shadow: none; }
.switch::before { content: ""; display: block; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch.on { background: var(--leaf-strong); }
.switch.on::before { transform: translateX(1.45rem); }
.book-cover { min-height: 9rem; border-radius: 1rem; display: grid; align-content: end; padding: 1rem; color: #fff; background: linear-gradient(145deg, #e77f9e, #4f9465); }
.empty { border: 1px dashed rgba(82, 67, 54, .22); border-radius: 1.2rem; padding: 1.25rem; color: var(--muted); background: rgba(255, 255, 255, .56); }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; padding: 1rem 0; }
.page-link {
  min-width: 2.35rem; min-height: 2.35rem; border-radius: .8rem; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .78); color: var(--muted); padding: 0 .65rem;
}
.page-link.active { background: var(--leaf-strong); color: #fff; border-color: transparent; }
.bottom-nav { display: none; }
.setup-body { display: grid; place-items: center; padding: 1rem; }
.setup-card { width: min(42rem, 100%); border-radius: 1.5rem; padding: 1.25rem; }
.alert { border-radius: 1rem; padding: .85rem 1rem; margin: .8rem 0; }
.alert.success { background: rgba(185, 217, 191, .45); }
.alert.error { background: rgba(231, 127, 158, .18); color: #8f2946; }
.menu-grid { margin-top: 1rem; }
.admin-app { display: grid; gap: 1rem; }
.admin-hero {
  border-radius: 1.35rem;
  padding: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(51, 43, 37, .96), rgba(79, 148, 101, .88));
  color: #fff;
  box-shadow: var(--shadow);
}
.admin-hero h2 { margin: .45rem 0 .35rem; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.admin-hero p { margin: 0; color: rgba(255,255,255,.82); }
.admin-hero .chip { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); }
.admin-hero .btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
}
.admin-hero .inline-form { display: inline-flex; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.metric-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(90,67,54,.08);
  display: grid;
  gap: .2rem;
}
.metric-card strong { font-size: 2rem; line-height: 1; }
.metric-card span { color: var(--muted); }
.metric-card.danger strong { color: #b83b56; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.admin-tile {
  min-height: 8rem;
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(90,67,54,.08);
  display: grid;
  align-content: start;
  gap: .35rem;
}
.admin-tile span {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .8rem;
  display: grid;
  place-items: center;
  background: rgba(246,183,201,.28);
  color: #9d2f49;
  font-size: .8rem;
  font-weight: 900;
}
.admin-tile small { color: var(--muted); line-height: 1.35; }
.admin-table { display: grid; gap: .65rem; }
.admin-app > .admin-table { order: 2; }
.users-create-grid { order: 3; }
.admin-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.admin-thumb { width: 4.5rem; height: 4.5rem; min-height: 4.5rem; border-radius: 1rem; font-size: 1.6rem; overflow: hidden; }
img.admin-thumb { object-fit: cover; display: block; }
.user-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--leaf));
  font-size: 1.5rem;
  font-weight: 800;
}
.success-chip { color: #247447; background: rgba(185,217,191,.45); }
.danger-chip { color: #9d2f49; background: rgba(246,183,201,.35); }
.recipe-form { display: grid; gap: 1rem; }
.recipe-form label:has(input[name="min_age"]) {
  display: none;
}
.age-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: .6rem;
}
.age-unit-field small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}
.login-panel { max-width: 48rem; }

@media (max-width: 960px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 1rem .9rem 6.3rem; }
  .profile-pill span:last-child { display: none; }
  .hero, .detail-hero, .grid.two, .grid.three, .form-grid { grid-template-columns: 1fr; }
  .toolbar, .compact-toolbar { grid-template-columns: 1fr; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-metrics, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: 1fr; }
  .recipe-art.big { min-height: 12rem; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    min-height: calc(4.7rem + env(safe-area-inset-bottom));
    padding: .45rem .55rem calc(.45rem + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem;
    border-top: 1px solid var(--line); background: rgba(255, 250, 242, .92); backdrop-filter: blur(18px);
  }
  .bottom-nav .nav-item {
    min-height: 3.7rem; flex-direction: column; gap: .15rem; justify-content: center;
    padding: .25rem; font-size: .72rem; border-radius: 1rem; text-align: center;
  }
  .bottom-nav .nav-icon { width: 1.8rem; height: 1.8rem; }
}

@media (max-width: 520px) {
  .admin-metrics, .admin-grid { grid-template-columns: 1fr; }
}

body.page-home,
body.page-receitas,
body.page-recipe,
body.page-perfil {
  background: #f8f4ec;
}

body.page-home .app-shell,
body.page-receitas .app-shell,
body.page-recipe .app-shell,
body.page-perfil .app-shell {
  display: block;
  min-height: 100vh;
}

body.page-home .sidebar,
body.page-receitas .sidebar,
body.page-recipe .sidebar,
body.page-perfil .sidebar,
body.page-home .topbar,
body.page-receitas .topbar,
body.page-recipe .topbar,
body.page-perfil .topbar {
  display: none;
}

body.page-home .main,
body.page-receitas .main,
body.page-recipe .main,
body.page-perfil .main {
  min-height: 100vh;
  padding: 1rem 1rem 6.8rem;
}

body.page-home .page,
body.page-receitas .page,
body.page-recipe .page,
body.page-perfil .page {
  width: min(390px, 100%);
  min-height: 820px;
  margin: 0 auto;
  padding: 1rem;
  gap: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 248, 219, .9), transparent 12rem),
    linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 24px 70px rgba(64, 45, 28, .14);
  overflow: hidden;
}

.phone-status {
  width: min(390px, 100%);
  height: 1.7rem;
  margin: 0 auto -.1rem;
  padding: 0 1.35rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  color: #0d2330;
  font-size: .78rem;
  line-height: 1;
}

body.page-home .phone-status,
body.page-receitas .phone-status,
body.page-recipe .phone-status,
body.page-perfil .phone-status {
  display: flex;
}

body.page-home .bottom-nav,
body.page-receitas .bottom-nav,
body.page-recipe .bottom-nav,
body.page-perfil .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 1.05rem;
  z-index: 60;
  width: min(390px, calc(100% - 2rem));
  min-height: 4.7rem;
  transform: translateX(-50%);
  padding: .45rem .65rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  border: 1px solid rgba(31, 46, 55, .06);
  border-radius: 0 0 2rem 2rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -10px 32px rgba(61, 43, 26, .08);
  backdrop-filter: blur(18px);
}

body.page-home .bottom-nav .nav-item,
body.page-receitas .bottom-nav .nav-item,
body.page-recipe .bottom-nav .nav-item,
body.page-perfil .bottom-nav .nav-item {
  min-height: 3.55rem;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .2rem;
  border-radius: 1rem;
  color: #596069;
  font-size: .66rem;
  box-shadow: none;
  background: transparent;
}

body.page-home .bottom-nav .nav-icon,
body.page-receitas .bottom-nav .nav-icon,
body.page-recipe .bottom-nav .nav-icon,
body.page-perfil .bottom-nav .nav-icon {
  width: 1.45rem;
  height: 1.45rem;
  background: transparent;
  border-radius: 999px;
  color: inherit;
  font-size: 1.22rem;
}

body.page-home .bottom-nav .nav-item.active,
body.page-receitas .bottom-nav .nav-item.active,
body.page-recipe .bottom-nav .nav-item.active,
body.page-perfil .bottom-nav .nav-item.active {
  color: #55b83e;
}

body.page-home .bottom-nav .nav-item:nth-child(3) .nav-icon,
body.page-receitas .bottom-nav .nav-item:nth-child(3) .nav-icon,
body.page-recipe .bottom-nav .nav-item:nth-child(3) .nav-icon,
body.page-perfil .bottom-nav .nav-item:nth-child(3) .nav-icon {
  width: 3.05rem;
  height: 3.05rem;
  margin-top: -.95rem;
  background: linear-gradient(145deg, #70c64b, #38a934);
  color: #fff;
  box-shadow: 0 12px 24px rgba(68, 177, 50, .34);
  font-size: 2rem;
}

body.page-home .bottom-nav .nav-item:nth-child(3) span:last-child,
body.page-receitas .bottom-nav .nav-item:nth-child(3) span:last-child,
body.page-recipe .bottom-nav .nav-item:nth-child(3) span:last-child,
body.page-perfil .bottom-nav .nav-item:nth-child(3) span:last-child {
  display: none;
}

.app-home-screen,
.app-list-screen,
.app-detail-screen,
.profile-app-screen {
  display: grid;
  gap: 1.05rem;
  color: #0d2b3a;
}

.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .35rem;
}

.app-greeting h2 {
  margin: 0 0 .3rem;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.app-greeting p,
.app-section-head a,
.app-row-copy small,
.app-mini-copy small,
.rating-row span,
.detail-content p,
.profile-hero p,
.profile-stats small {
  color: #5d6970;
}

.app-greeting p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
}

.app-bell,
.app-heart,
.app-filter,
.detail-top-actions a,
.profile-gear {
  border: 0;
  display: grid;
  place-items: center;
  color: #0d2b3a;
  background: #fff;
  box-shadow: 0 10px 22px rgba(40, 32, 20, .1);
}

.app-bell {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  font-size: 1.35rem;
}

.app-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.15rem;
  gap: .7rem;
  align-items: center;
}

.app-search.compact {
  grid-template-columns: 1fr;
}

.app-search label {
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 .9rem;
  border: 0;
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(44, 37, 25, .08);
}

.app-search input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-filter {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #6cc84b, #39aa34);
  color: #fff;
  font-size: 1.35rem;
}

.app-filter.mini {
  width: 2.65rem;
  height: 2.65rem;
  font-size: 1rem;
}

.baby-banner {
  min-height: 7.2rem;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  padding: .75rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(120deg, rgba(233, 247, 229, .95), rgba(255, 245, 231, .96));
  overflow: hidden;
}

.baby-portrait {
  height: 5.7rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, #ffe2c5 0 1.9rem, transparent 2rem),
    linear-gradient(145deg, #f7dbc6, #eaf5e8);
  font-size: 3.2rem;
}

.baby-banner p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}

.age-grid a {
  min-height: 4.85rem;
  display: grid;
  place-items: center;
  gap: .25rem;
  padding: .55rem .25rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(44, 37, 25, .08);
  text-align: center;
  font-size: .72rem;
}

.age-grid span {
  font-size: 1.8rem;
}

.app-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .2rem;
}

.app-section-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.app-section-head a {
  font-size: .78rem;
}

.featured-recipe {
  min-height: 7.7rem;
  display: grid;
  grid-template-columns: 8.9rem minmax(0, 1fr) 2.35rem;
  gap: .75rem;
  align-items: center;
  padding-right: .65rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
  overflow: hidden;
}

.featured-media,
.featured-photo,
.featured-photo.recipe-photo {
  width: 100%;
  height: 7.7rem;
}

.featured-photo,
.app-photo,
.app-mini-photo,
.detail-photo {
  display: grid;
  place-items: center;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 48%, #f7a538 0 2.15rem, transparent 2.2rem),
    radial-gradient(circle at 62% 58%, #ec7f28 0 1.4rem, transparent 1.45rem),
    linear-gradient(145deg, #dff0db, #fff2df);
  color: transparent;
  font-size: 0;
}

.featured-photo::before,
.app-photo::before,
.app-mini-photo::before,
.detail-photo::before {
  content: "";
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #ffb038 0 42%, #ef7d22 43% 62%, transparent 63%),
    #eef5e4;
  box-shadow: inset 0 0 0 .55rem rgba(255,255,255,.55), 0 12px 20px rgba(160, 95, 30, .18);
}

img.featured-photo,
img.app-photo,
img.app-mini-photo,
img.detail-photo {
  color: initial;
  font-size: initial;
}

img.featured-photo::before,
img.app-photo::before,
img.app-mini-photo::before,
img.detail-photo::before {
  content: none;
}

.featured-copy,
.app-row-copy,
.app-mini-copy {
  min-width: 0;
  display: grid;
  gap: .45rem;
}

.featured-copy strong,
.app-row-copy strong,
.app-mini-copy strong {
  color: #0d2b3a;
  font-size: .88rem;
  line-height: 1.3;
}

.featured-copy small,
.app-row-copy small,
.app-mini-copy small {
  font-size: .74rem;
}

.featured-next {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7e6;
  color: #45ae38;
  font-size: 1.2rem;
}

.app-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.app-mini-card {
  position: relative;
  min-width: 0;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 37, 25, .08);
  overflow: hidden;
}

.app-mini-photo,
.app-mini-photo.recipe-photo {
  width: 100%;
  height: 5.55rem;
}

.app-float-heart {
  position: absolute;
  top: .38rem;
  right: .38rem;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: #8d989d;
}

.app-heart.active,
.app-float-heart.active {
  color: #55b83e;
}

.app-mini-copy {
  padding: .55rem;
}

.app-page-title {
  display: grid;
  grid-template-columns: 2.65rem 1fr 2.65rem;
  align-items: center;
  text-align: center;
}

.app-page-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

.app-page-title > a:first-child {
  font-size: 1.9rem;
  text-align: left;
}

.age-tabs {
  display: flex;
  gap: .48rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: none;
}

.age-tabs a {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 .75rem;
  border-radius: 999px;
  background: #eee9df;
  color: #0d2b3a;
  font-size: .76rem;
  font-weight: 800;
}

.age-tabs a.active {
  background: #59b93f;
  color: #fff;
}

.app-recipe-list {
  display: grid;
  gap: .75rem;
}

.app-recipe-row {
  min-height: 5.8rem;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 2.3rem;
  gap: .75rem;
  align-items: center;
  padding: .55rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 37, 25, .08);
}

.app-row-media,
.app-photo,
.app-photo.recipe-photo {
  width: 6.5rem;
  height: 4.85rem;
  border-radius: .85rem;
  overflow: hidden;
}

.app-heart {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: #9aa2a6;
  box-shadow: none;
  font-size: 1.1rem;
}

.app-detail-screen {
  gap: 0;
}

.detail-top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -2.7rem;
  padding: .45rem .55rem;
}

.detail-top-actions > a,
.detail-top-actions button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 1.35rem;
}

.detail-top-actions div {
  display: flex;
  gap: .45rem;
}

.detail-photo-wrap {
  position: relative;
  height: 13rem;
  margin: -1rem -1rem 0;
  overflow: hidden;
  border-radius: 0 0 1.3rem 1.3rem;
}

.detail-photo,
.detail-photo.recipe-photo {
  width: 100%;
  height: 100%;
}

.detail-photo-wrap span {
  position: absolute;
  left: 1.1rem;
  bottom: .65rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: #eaf7e6;
  color: #58b83e;
  font-size: .72rem;
  font-weight: 800;
}

.detail-content {
  display: grid;
  gap: .75rem;
  padding: 1rem 0 1rem;
}

.detail-content h2 {
  margin: 0;
  max-width: 18rem;
  font-size: 1.48rem;
  line-height: 1.12;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
}

.rating-row strong {
  color: #ffb321;
  letter-spacing: .03em;
}

.live-rating {
  align-items: center;
  flex-wrap: wrap;
}

.rating-form {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: .08rem;
  margin: 0;
}

.rating-form button {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d3d1ca;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0;
  box-shadow: none;
}

.rating-form button:hover,
.rating-form button:hover ~ button,
.rating-form button.active {
  color: #ffb321;
}

.rating-saved {
  width: max-content;
  max-width: 100%;
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #eef8ea;
  color: #3f9f36;
  font-size: .72rem;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
}

.detail-metrics span {
  min-height: 3.7rem;
  display: grid;
  place-items: center;
  gap: .15rem;
  padding: .45rem .25rem;
  border-radius: .75rem;
  background: #f1f8ee;
  text-align: center;
}

.detail-metrics small {
  color: #47605c;
  font-size: .62rem;
}

.detail-metrics strong {
  font-size: .78rem;
}

.detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e2dfd7;
  text-align: center;
  color: #243642;
  font-size: .83rem;
}

.detail-tabs button {
  padding: .7rem .2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #243642;
  font-weight: 600;
}

.detail-tabs button.active {
  color: #55b83e;
  border-bottom: 2px solid #55b83e;
}

.recipe-tab-panel {
  display: none;
}

.recipe-tab-panel.active {
  display: block;
}

.ingredient-list,
.prep-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li,
.prep-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .84rem;
  line-height: 1.35;
}

.ingredient-list li::before,
.prep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #55b83e;
}

.detail-cta {
  min-height: 3.05rem;
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .3rem;
  border-radius: .75rem;
  background: linear-gradient(145deg, #6ac84a, #3cad35);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(68, 177, 50, .26);
}

.profile-app-screen {
  gap: 0;
  margin: -1rem;
}

.profile-hero {
  position: relative;
  min-height: 11.2rem;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .85rem;
  padding: 2.3rem 1.2rem 3.2rem;
  background: linear-gradient(135deg, #84ddcf, #52b977);
  color: #fff;
}

.profile-hero h2,
.profile-hero p {
  margin: 0;
}

.profile-hero h2 {
  font-size: 1.1rem;
}

.profile-hero p {
  color: rgba(255,255,255,.86);
  font-size: .82rem;
}

.profile-avatar {
  width: 4.1rem;
  height: 4.1rem;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.86);
  border-radius: 50%;
  background: #fff2df;
  font-size: 2.2rem;
}

.profile-gear {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.profile-like {
  font-size: 1.8rem;
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -2rem .95rem 1rem;
  padding: .95rem .35rem;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .1);
  text-align: center;
}

.profile-stats span {
  display: grid;
  gap: .18rem;
  border-right: 1px solid #ece8df;
}

.profile-stats span:last-child {
  border-right: 0;
}

.profile-stats strong {
  font-size: 1.08rem;
}

.profile-stats small {
  font-size: .68rem;
}

.profile-menu {
  display: grid;
  gap: .15rem;
  margin: 0 .95rem 1rem;
  padding: .55rem;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.profile-menu a {
  min-height: 3rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .55rem;
  border-bottom: 1px solid #eee9df;
  color: #0d2b3a;
  font-size: .83rem;
}

.profile-menu a:last-child {
  border-bottom: 0;
}

.profile-menu span {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  color: #0d2b3a;
}

.profile-menu em {
  color: #a8b0b5;
  font-style: normal;
  font-size: 1.35rem;
}

@media (max-width: 520px) {
  body.page-home .main,
  body.page-receitas .main,
  body.page-recipe .main,
  body.page-perfil .main {
    padding: 0 0 calc(5.6rem + env(safe-area-inset-bottom));
  }

  body.page-home .page,
  body.page-receitas .page,
  body.page-recipe .page,
  body.page-perfil .page {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-home .bottom-nav,
  body.page-receitas .bottom-nav,
  body.page-recipe .bottom-nav,
  body.page-perfil .bottom-nav {
    bottom: 0;
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .phone-status {
    padding-top: .55rem;
    height: 2.1rem;
  }
}

.ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -.18em;
}

.ui-icon.tiny {
  width: .78rem;
  height: .78rem;
  stroke-width: 2.3;
  vertical-align: -.12em;
}

.nav-icon .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bottom-nav .nav-item:nth-child(3) .ui-icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2.4;
}

.app-search label > span {
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  color: #6f7b80;
}

.app-bell .ui-icon,
.app-heart .ui-icon,
.app-float-heart .ui-icon,
.featured-next .ui-icon,
.detail-top-actions a .ui-icon,
.profile-gear .ui-icon,
.profile-like .ui-icon {
  width: 1.22rem;
  height: 1.22rem;
}

.app-filter .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.age-grid .age-icon {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.9;
  color: #53b83e;
}

.age-grid a:nth-child(2) .age-icon { color: #61b850; }
.age-grid a:nth-child(3) .age-icon { color: #f18a24; }
.age-grid a:nth-child(4) .age-icon { color: #247184; }

.profile-baby-icon {
  width: 2.45rem;
  height: 2.45rem;
  color: #0d2b3a;
}

.profile-menu em {
  display: grid;
  place-items: center;
}

.profile-menu em .ui-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
}

body.page-ebooks,
body.page-livros {
  background: #f8f4ec;
}

body.page-ebooks .app-shell,
body.page-livros .app-shell {
  display: block;
  min-height: 100vh;
}

body.page-ebooks .sidebar,
body.page-livros .sidebar,
body.page-ebooks .topbar,
body.page-livros .topbar {
  display: none;
}

body.page-ebooks .main,
body.page-livros .main {
  min-height: 100vh;
  padding: 1rem 1rem 6.8rem;
}

body.page-ebooks .page,
body.page-livros .page {
  width: min(390px, 100%);
  min-height: 820px;
  margin: 0 auto;
  padding: 1rem;
  gap: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(232, 246, 229, .92), transparent 12rem),
    linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 24px 70px rgba(64, 45, 28, .14);
  overflow: hidden;
}

body.page-ebooks .phone-status,
body.page-livros .phone-status {
  display: flex;
}

body.page-ebooks .bottom-nav,
body.page-livros .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 1.05rem;
  z-index: 60;
  width: min(390px, calc(100% - 2rem));
  min-height: 4.7rem;
  transform: translateX(-50%);
  padding: .45rem .65rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  border: 1px solid rgba(31, 46, 55, .06);
  border-radius: 0 0 2rem 2rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -10px 32px rgba(61, 43, 26, .08);
  backdrop-filter: blur(18px);
}

body.page-ebooks .bottom-nav .nav-item,
body.page-livros .bottom-nav .nav-item {
  min-height: 3.55rem;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .2rem;
  border-radius: 1rem;
  color: #596069;
  font-size: .66rem;
  box-shadow: none;
  background: transparent;
}

body.page-ebooks .bottom-nav .nav-icon,
body.page-livros .bottom-nav .nav-icon {
  width: 1.45rem;
  height: 1.45rem;
  background: transparent;
}

body.page-ebooks .bottom-nav .nav-item.active,
body.page-livros .bottom-nav .nav-item.active {
  color: #55b83e;
}

body.page-ebooks .bottom-nav .nav-item:nth-child(3) .nav-icon,
body.page-livros .bottom-nav .nav-item:nth-child(3) .nav-icon {
  width: 3.05rem;
  height: 3.05rem;
  margin-top: -.95rem;
  background: linear-gradient(145deg, #70c64b, #38a934);
  color: #fff;
  box-shadow: 0 12px 24px rgba(68, 177, 50, .34);
}

body.page-ebooks .bottom-nav .nav-item:nth-child(3) span:last-child,
body.page-livros .bottom-nav .nav-item:nth-child(3) span:last-child {
  display: none;
}

.ebooks-screen {
  display: grid;
  gap: 1rem;
  color: #0d2b3a;
}

.ebooks-hero {
  min-height: 9.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #dff4df, #fff3df);
  overflow: hidden;
}

.ebooks-hero h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.ebooks-hero p {
  margin: 0;
  color: #5d6970;
  font-size: .86rem;
  line-height: 1.45;
}

.ebooks-hero strong {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: #fff;
  color: #4db23b;
  font-size: 1.45rem;
  box-shadow: 0 12px 24px rgba(44, 37, 25, .08);
}

.ebooks-hero-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: #4db23b;
}

.ebooks-list {
  display: grid;
  gap: .8rem;
}

.ebook-card {
  display: grid;
  grid-template-columns: 6.7rem minmax(0, 1fr);
  gap: .8rem;
  padding: .65rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.ebook-cover {
  min-height: 8.7rem;
  display: grid;
  align-content: end;
  gap: .35rem;
  padding: .7rem;
  border-radius: .85rem;
  color: #fff;
  overflow: hidden;
}

.ebook-cover-1 { background: linear-gradient(145deg, #61c786, #2e9e71); }
.ebook-cover-2 { background: linear-gradient(145deg, #72d5c8, #4cad91); }
.ebook-cover-3 { background: linear-gradient(145deg, #ffb46a, #eb7f43); }
.ebook-cover-4 { background: linear-gradient(145deg, #8ab6f7, #5f80d6); }
.ebook-cover-5 { background: linear-gradient(145deg, #ff9db4, #d95f82); }

.ebook-cover-icon {
  width: 2rem;
  height: 2rem;
}

.ebook-cover strong {
  font-size: .82rem;
  line-height: 1.1;
}

.ebook-cover small {
  color: rgba(255,255,255,.86);
  font-size: .7rem;
}

.ebook-info {
  display: grid;
  gap: .65rem;
}

.ebook-info h3 {
  margin: 0 0 .25rem;
  font-size: .95rem;
  line-height: 1.2;
}

.ebook-info p {
  margin: 0;
  color: #5d6970;
  font-size: .76rem;
  line-height: 1.35;
}

.ebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}

.ebook-tags span {
  min-height: 1.55rem;
  display: inline-flex;
  align-items: center;
  padding: 0 .5rem;
  border-radius: 999px;
  background: #eef8ea;
  color: #45a739;
  font-size: .68rem;
  font-weight: 800;
}

.ebook-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}

.ebook-actions .btn {
  min-height: 2.25rem;
  border-radius: .7rem;
  padding: 0 .55rem;
  font-size: .72rem;
}

.ebook-home-card {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 1.6rem;
  grid-template-areas:
    "icon title arrow"
    "icon text arrow";
  align-items: center;
  gap: .15rem .75rem;
  padding: .85rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.ebook-home-card > span {
  grid-area: icon;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: .9rem;
  background: #eef8ea;
  color: #49ad3b;
}

.ebook-home-card strong {
  grid-area: title;
  font-size: .9rem;
}

.ebook-home-card small {
  grid-area: text;
  color: #5d6970;
  font-size: .74rem;
}

.ebook-home-card em {
  grid-area: arrow;
  color: #49ad3b;
  font-style: normal;
}

.ebook-home-icon {
  width: 1.65rem;
  height: 1.65rem;
}

@media (max-width: 520px) {
  body.page-ebooks .main,
  body.page-livros .main {
    padding: 0 0 calc(5.6rem + env(safe-area-inset-bottom));
  }

  body.page-ebooks .page,
  body.page-livros .page {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-ebooks .bottom-nav,
  body.page-livros .bottom-nav {
    bottom: 0;
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
  }
}

body.page-planner {
  background: #f8f4ec;
}

body.page-planner .app-shell {
  display: block;
  min-height: 100vh;
}

body.page-planner .sidebar,
body.page-planner .topbar {
  display: none;
}

body.page-planner .main {
  min-height: 100vh;
  padding: 1rem 1rem 6.8rem;
}

body.page-planner .page {
  width: min(390px, 100%);
  min-height: 820px;
  margin: 0 auto;
  padding: 1rem;
  gap: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(232, 246, 229, .95), transparent 12rem),
    linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 24px 70px rgba(64, 45, 28, .14);
  overflow: hidden;
}

body.page-planner .phone-status {
  display: flex;
}

body.page-planner .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 1.05rem;
  z-index: 60;
  width: min(390px, calc(100% - 2rem));
  min-height: 4.7rem;
  transform: translateX(-50%);
  padding: .45rem .65rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  border: 1px solid rgba(31, 46, 55, .06);
  border-radius: 0 0 2rem 2rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -10px 32px rgba(61, 43, 26, .08);
  backdrop-filter: blur(18px);
}

body.page-planner .bottom-nav .nav-item {
  min-height: 3.55rem;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .2rem;
  border-radius: 1rem;
  color: #596069;
  font-size: .66rem;
  box-shadow: none;
  background: transparent;
}

body.page-planner .bottom-nav .nav-icon {
  width: 1.45rem;
  height: 1.45rem;
  background: transparent;
}

body.page-planner .bottom-nav .nav-item.active {
  color: #55b83e;
}

body.page-planner .bottom-nav .nav-item:nth-child(3) .nav-icon {
  width: 3.05rem;
  height: 3.05rem;
  margin-top: -.95rem;
  background: linear-gradient(145deg, #70c64b, #38a934);
  color: #fff;
  box-shadow: 0 12px 24px rgba(68, 177, 50, .34);
}

body.page-planner .bottom-nav .nav-item:nth-child(3) span:last-child {
  display: none;
}

.meal-plan-screen {
  display: grid;
  gap: 1rem;
  color: #0d2b3a;
}

.meal-plan-hero {
  min-height: 9.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #dff4df, #fff3df);
  overflow: hidden;
}

.meal-plan-hero h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.meal-plan-hero p {
  margin: 0;
  color: #5d6970;
  font-size: .84rem;
  line-height: 1.45;
}

.meal-plan-hero strong {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: #fff;
  color: #4db23b;
  font-size: 1.05rem;
  box-shadow: 0 12px 24px rgba(44, 37, 25, .08);
}

.meal-plan-hero-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: #4db23b;
}

.meal-plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.meal-plan-actions .inline-form:first-child {
  grid-column: 1 / -1;
}

.meal-plan-actions .inline-form {
  display: block;
}

.meal-plan-actions .btn {
  width: 100%;
  min-height: 2.65rem;
  border-radius: .85rem;
  padding: 0 .6rem;
  font-size: .76rem;
}

.meal-plan-created {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border-radius: .85rem;
  background: #eef8ea;
  color: #3f9f36;
  font-size: .8rem;
  font-weight: 900;
}

.meal-calendar-summary {
  display: grid;
  gap: .55rem;
  padding: .75rem;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 37, 25, .07);
}

.meal-calendar-summary div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.meal-calendar-summary span {
  color: #667278;
  font-size: .72rem;
  font-weight: 800;
}

.meal-calendar-summary strong {
  color: #0d2b3a;
  font-size: .82rem;
}

.meal-progress {
  height: .55rem;
  border-radius: 999px;
  background: #eef1ec;
  overflow: hidden;
}

.meal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72c94f, #38a934);
}

.day-chip-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .05rem 0 .2rem;
  scrollbar-width: none;
}

.day-chip-row a {
  min-width: 3.2rem;
  min-height: 3.75rem;
  display: grid;
  align-content: center;
  place-items: center;
  gap: .18rem;
  border-radius: 999px;
  background: #fff;
  color: #526167;
  box-shadow: 0 8px 18px rgba(44, 37, 25, .06);
}

.day-chip-row small {
  font-size: .66rem;
  font-weight: 800;
}

.day-chip-row strong {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0d2b3a;
  font-size: .85rem;
  font-weight: 900;
}

.day-chip-row a.today {
  background: #eef8ea;
  color: #45a739;
}

.day-chip-row a.today strong {
  background: #55b83e;
  color: #fff;
}

.meal-plan-days {
  display: grid;
  gap: .85rem;
}

.meal-day-card {
  padding: .75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.meal-day-card.today {
  outline: 2px solid rgba(85, 184, 62, .22);
  background: linear-gradient(180deg, #fff, #fbfff8);
}

.meal-day-head {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .75rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #eee9df;
}

.meal-day-date {
  width: 3.05rem;
  height: 3.05rem;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: .9rem;
  background: #eef8ea;
  color: #45a739;
}

.meal-day-date strong {
  font-size: 1rem;
  line-height: 1;
}

.meal-day-date span {
  margin-top: .18rem;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meal-day-head h3,
.meal-day-head p {
  margin: 0;
}

.meal-day-head h3 {
  font-size: 1rem;
}

.meal-day-head p {
  margin-top: .15rem;
  color: #6c777d;
  font-size: .72rem;
}

.meal-day-head .icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  box-shadow: none;
  color: #9aa2a6;
}

.meal-day-head .icon-btn .ui-icon {
  width: 1rem;
  height: 1rem;
}

.meal-slots {
  display: grid;
  gap: .65rem;
  padding-top: .75rem;
}

.meal-slot {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .65rem;
  padding: .65rem;
  border-radius: .9rem;
  background: #f8faf5;
}

.meal-slot.filled {
  background: #eef8ea;
}

.meal-slot-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  background: #fff;
  color: #4db23b;
}

.meal-slot-main {
  min-width: 0;
  display: grid;
  gap: .3rem;
}

.meal-slot-main strong {
  font-size: .82rem;
}

.meal-slot-main a {
  min-width: 0;
  color: #0d2b3a;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.25;
}

.meal-slot-main span,
.meal-slot-main small {
  color: #667278;
  font-size: .72rem;
}

.meal-slot-form select {
  min-height: 2.25rem;
  border-radius: .75rem;
  background: #fff;
  font-size: .76rem;
}

@media (max-width: 520px) {
  body.page-planner .main {
    padding: 0 0 calc(5.6rem + env(safe-area-inset-bottom));
  }

  body.page-planner .page {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-planner .bottom-nav {
    bottom: 0;
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
  }
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) {
  background: #f8f4ec;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .app-shell {
  display: block;
  min-height: 100vh;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .sidebar,
body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .topbar {
  display: none;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .main {
  min-height: 100vh;
  padding: 1rem 1rem 6.8rem;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .page {
  width: min(390px, 100%);
  min-height: 820px;
  margin: 0 auto;
  padding: 1rem;
  gap: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(232, 246, 229, .92), transparent 12rem),
    linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 24px 70px rgba(64, 45, 28, .14);
  overflow: hidden;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .phone-status {
  display: flex;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 1.05rem;
  z-index: 60;
  width: min(390px, calc(100% - 2rem));
  min-height: 4.7rem;
  transform: translateX(-50%);
  padding: .45rem .65rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  border: 1px solid rgba(31, 46, 55, .06);
  border-radius: 0 0 2rem 2rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 -10px 32px rgba(61, 43, 26, .08);
  backdrop-filter: blur(18px);
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav .nav-item {
  min-height: 3.55rem;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  padding: .2rem;
  border-radius: 1rem;
  color: #596069;
  font-size: .66rem;
  box-shadow: none;
  background: transparent;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav .nav-icon {
  width: 1.45rem;
  height: 1.45rem;
  background: transparent;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav .nav-item.active {
  color: #55b83e;
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav .nav-item:nth-child(3) .nav-icon {
  width: 3.05rem;
  height: 3.05rem;
  margin-top: -.95rem;
  background: linear-gradient(145deg, #70c64b, #38a934);
  color: #fff;
  box-shadow: 0 12px 24px rgba(68, 177, 50, .34);
}

body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav .nav-item:nth-child(3) span:last-child {
  display: none;
}

.collection-screen,
.shopping-screen,
.baby-profile-screen,
.notifications-screen {
  display: grid;
  gap: 1rem;
  color: #0d2b3a;
}

.collection-hero,
.shopping-hero,
.baby-profile-hero {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #eef8ea, #fff3df);
}

.shopping-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shopping-hero > div {
  display: grid;
  gap: .3rem;
}

.collection-hero > span,
.shopping-hero span,
.baby-profile-hero .profile-avatar {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: #fff;
  color: #4db23b;
  box-shadow: 0 10px 22px rgba(44, 37, 25, .07);
}

.collection-hero strong,
.shopping-hero h3,
.baby-profile-hero h3 {
  margin: 0;
  font-size: 1.12rem;
}

.collection-hero p,
.shopping-hero p,
.baby-profile-hero p {
  margin: .2rem 0 0;
  color: #667278;
  font-size: .78rem;
  line-height: 1.35;
}

.collection-hero-icon,
.shopping-hero-icon {
  width: 1.7rem;
  height: 1.7rem;
}

.app-empty-state {
  min-height: 12rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #fff;
  color: #667278;
  text-align: center;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.app-empty-state .ui-icon {
  width: 2.1rem;
  height: 2.1rem;
  color: #55b83e;
}

.app-empty-state strong {
  color: #0d2b3a;
}

.shopping-add-card,
.app-form-card {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.shopping-add-card {
  grid-template-columns: minmax(0, 1fr);
}

.shopping-add-card input,
.shopping-add-card select,
.app-form-card input,
.app-form-card select {
  min-height: 2.65rem;
  border-radius: .85rem;
  background: #f8faf5;
}

.shopping-categories,
.notification-list {
  display: grid;
  gap: .8rem;
}

.shopping-category-card,
.notification-row {
  padding: .75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 37, 25, .08);
}

.shopping-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .55rem;
  border-bottom: 1px solid #eee9df;
}

.shopping-category-head h3 {
  margin: 0;
  font-size: .95rem;
}

.shopping-category-head span {
  min-width: 1.8rem;
  min-height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef8ea;
  color: #45a739;
  font-size: .72rem;
  font-weight: 900;
}

.shopping-row,
.notification-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: .55rem;
  min-height: 3rem;
  border-bottom: 1px solid #f0ece4;
}

.notification-row {
  grid-template-columns: minmax(0, 1fr) 3.4rem;
  border-bottom: 0;
}

.shopping-row:last-child {
  border-bottom: 0;
}

.shopping-row.done span {
  color: #98a1a5;
  text-decoration: line-through;
}

.shopping-row .icon-btn,
.notification-row .icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  box-shadow: none;
}

.shopping-row .icon-btn .ui-icon {
  width: 1rem;
  height: 1rem;
}

.shopping-row .icon-btn.danger {
  color: #c05b68;
}

.shopping-empty,
.app-note {
  color: #667278;
  font-size: .78rem;
}

.shopping-empty {
  padding-top: .65rem;
}

.notification-row strong,
.notification-row span {
  display: block;
}

.notification-row strong {
  font-size: .9rem;
}

.notification-row span {
  margin-top: .18rem;
  color: #667278;
  font-size: .72rem;
}

@media (max-width: 520px) {
  body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .main {
    padding: 0 0 calc(5.6rem + env(safe-area-inset-bottom));
  }

  body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .page {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  body:is(.page-favoritos, .page-historico, .page-lista, .page-bebe, .page-notificacoes) .bottom-nav {
    bottom: 0;
    width: 100%;
    border-radius: 1.2rem 1.2rem 0 0;
  }
}
