:root{
  --bg:#f4f8fb;
  --surface:#ffffff;
  --text:#243240;
  --muted:#71808d;
  --line:#dfe9ef;
  --primary:#3f8fb8;
  --primary-soft:#e9f5fb;
  --green:#39a981;
  --green-soft:#e8f8f1;
  --blue:#4aa7df;
  --blue-soft:#eaf6fd;
  --amber:#e9a13a;
  --amber-soft:#fff4df;
  --rose:#d8718d;
  --rose-soft:#fff0f5;
  --coral:#f08a67;
  --coral-soft:#fff1eb;
  --shadow:0 14px 34px rgba(53,78,94,.09);
  --radius:22px;
}
body[data-theme="boy"]{
  --bg:#f2f8fc;
  --primary:#3187b8;
  --primary-soft:#e4f3fb;
  --line:#dceaf2;
  --rose:#2f9d8a;
  --rose-soft:#e6f6f2;
  --coral:#3c9fbe;
  --coral-soft:#e9f6fb;
}
body[data-theme="girl"]{
  --bg:#fff6f9;
  --primary:#d9688b;
  --primary-soft:#fdebf1;
  --line:#f1dfe6;
}
body[data-theme="neutral"]{
  --bg:#f4f8fb;
  --primary:#3f8fb8;
  --primary-soft:#e9f5fb;
  --line:#dfe9ef;
}
body[data-theme="ocean"]{
  --bg:#f2f8fc;
  --primary:#3187b8;
  --primary-soft:#e4f3fb;
  --line:#dceaf2;
}
body[data-theme="mint"]{
  --bg:#f3fbf7;
  --primary:#3b9b79;
  --primary-soft:#e7f7ef;
  --line:#dceee5;
}
body[data-theme="rose"]{
  --bg:#fff6f9;
  --primary:#d9688b;
  --primary-soft:#fdebf1;
  --line:#f1dfe6;
}
body[data-theme="lavender"]{
  --bg:#f8f6ff;
  --primary:#7869c9;
  --primary-soft:#efebff;
  --line:#e5e0f4;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 34%),
    radial-gradient(circle at top right, rgba(75,167,223,.08), transparent 32%),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{
  width:min(100%,720px);
  margin:0 auto;
  padding:calc(18px + env(safe-area-inset-top)) 18px calc(96px + env(safe-area-inset-bottom));
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.eyebrow,.section-kicker{
  margin:0 0 5px;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.topbar h1,.section-heading h2{
  margin:0;
  letter-spacing:-.03em;
}
.topbar h1{font-size:30px}
.baby-switch{
  border:0;
  background:transparent;
  color:var(--primary);
  font-size:21px;
  padding:0 3px;
}
.dev-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:7px;
  padding:4px 7px;
  border-radius:999px;
  background:#fff3cd;
  color:#9a6700;
  font-size:10px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:none;
  vertical-align:middle;
}
.work-icon{
  font-size:12px;
  line-height:1;
}
.avatar-button{
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),#58b99a);
  color:#fff;
  font-weight:800;
  box-shadow:0 8px 18px rgba(63,143,184,.20);
}
.status-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid rgba(240,230,223,.92);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-heading h2{font-size:21px}
.section-heading.compact{margin-bottom:14px}
.live-dot{
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}
.live-dot span{
  display:inline-block;
  width:7px;
  height:7px;
  background:#38b98a;
  border-radius:50%;
  margin-right:5px;
  box-shadow:0 0 0 4px rgba(56,185,138,.11);
}
.status-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.mini-status{
  min-width:0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.74);
}
.mini-status p{
  margin:0 0 4px;
  color:var(--muted);
  font-size:11px;
}
.mini-status strong{
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mini-icon{
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:11px;
  display:grid;
  place-items:center;
  font-weight:900;
}
.mini-icon.bottle{background:var(--blue-soft);color:var(--blue)}
.mini-icon.diaper{background:var(--amber-soft);color:var(--amber)}
.mini-icon.sleep{background:var(--primary-soft);color:var(--primary)}
.mini-icon.med{background:var(--rose-soft);color:var(--rose)}
.mini-icon.agenda{background:var(--green-soft);color:var(--green)}
.quick-section,.timeline-section{margin-top:26px}
.quick-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.quick-action{
  min-height:94px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:19px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  font-weight:750;
  text-align:left;
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;
  box-shadow:0 8px 18px rgba(96,69,50,.05);
}
.quick-action:active{transform:scale(.98);filter:brightness(.98)}
.quick-action.feed{background:linear-gradient(145deg,#eaf7ff,#dff2ff);color:#2474a6}
.quick-action.sleep{background:linear-gradient(145deg,#f1efff,#e9e4ff);color:#6553d9}
.quick-action.diaper{background:linear-gradient(145deg,#fff4df,#ffebc4);color:#a36a12}
.quick-action.medicine{background:linear-gradient(145deg,#fff0f5,#ffe3ec);color:#c95678}
.quick-icon{
  width:35px;
  height:35px;
  background:rgba(255,255,255,.82);
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:19px;
  box-shadow:0 4px 10px rgba(68,57,49,.06);
}
.text-button{
  border:0;
  background:transparent;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  padding:7px;
}
.timeline{
  position:relative;
  display:flex;
  flex-direction:column;
}
.timeline-item{
  display:grid;
  grid-template-columns:52px 30px 1fr;
  gap:7px;
  min-height:68px;
}
.timeline-time{
  padding-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.timeline-marker{
  position:relative;
  display:flex;
  justify-content:center;
}
.timeline-marker::after{
  content:"";
  position:absolute;
  top:27px;
  bottom:-2px;
  width:1px;
  background:var(--line);
}
.timeline-item:last-child .timeline-marker::after{display:none}
.marker-dot{
  width:28px;
  height:28px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:14px;
}
.marker-feed{background:var(--blue-soft);color:var(--blue)}
.marker-sleep{background:var(--primary-soft);color:var(--primary)}
.marker-diaper{background:var(--amber-soft);color:var(--amber)}
.marker-medicine{background:var(--rose-soft);color:var(--rose)}
.timeline-content{padding:2px 0 17px}
.timeline-content strong{display:block;font-size:14px;margin-bottom:4px}
.timeline-content p{margin:0;color:var(--muted);font-size:12px}
.empty-state{
  text-align:center;
  padding:34px 18px;
  color:var(--muted);
}
.empty-state[hidden]{display:none}
.empty-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  background:linear-gradient(145deg,#f2efff,#fff0f5);
  color:var(--primary);
  font-size:22px;
}
.empty-state strong{display:block;color:var(--text);margin-bottom:6px}
.empty-state p{margin:0;font-size:13px}
.bottom-nav{
  position:fixed;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(calc(100% - 24px),520px);
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  border:1px solid rgba(223,233,239,.96);
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 30px rgba(53,78,94,.14);
  backdrop-filter:blur(16px);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  z-index:20;
}
.nav-item{
  border:0;
  border-radius:14px;
  background:transparent;
  color:#8f9aa3;
  font-size:10px;
  font-weight:700;
  padding:6px 4px 5px;
  min-height:48px;
}
.nav-item span{
  display:block;
  font-size:20px;
  line-height:22px;
  margin-bottom:2px;
}
.nav-item.active{
  color:var(--primary);
  background:var(--primary-soft);
}
.sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(28,24,44,.34);
  z-index:30;
}
.bottom-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,720px);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:26px 26px 0 0;
  padding:8px 20px calc(22px + env(safe-area-inset-bottom));
  z-index:31;
  box-shadow:0 -18px 50px rgba(68,48,82,.18);
}
.sheet-handle{
  width:42px;height:4px;border-radius:999px;background:#e6deda;margin:2px auto 15px;
}
.sheet-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:18px;
}
.sheet-header h2{margin:0;font-size:24px}
.close-button{
  width:36px;height:36px;border:0;border-radius:50%;background:#fff1eb;color:#b45c42;font-size:25px;line-height:1;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
label{
  display:block;
  color:#646879;
  font-size:12px;
  font-weight:700;
  margin-bottom:13px;
}
label span{font-weight:500;color:#a4a6b0}
input,select,textarea{
  width:100%;
  margin-top:7px;
  padding:13px 12px;
  border:1px solid #eadfd8;
  border-radius:13px;
  background:#fffdfa;
  color:var(--text);
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:#9b8ff6;
  box-shadow:0 0 0 3px rgba(124,108,242,.12)
}
textarea{resize:none}
.choice-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
  margin:7px 0 15px;
}
.choice{
  position:relative;
}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice label{
  margin:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:13px;
  color:#676b7a;
  text-align:center;
  background:#fff;
}
.choice input:checked + label{
  border-color:#9b8ff6;
  background:var(--primary-soft);
  color:#6553d9;
}
.primary-button{
  width:100%;
  border:0;
  border-radius:15px;
  padding:15px 16px;
  background:linear-gradient(135deg,var(--primary),#9a7df7);
  color:white;
  font-weight:800;
  margin-top:4px;
  box-shadow:0 10px 22px rgba(124,108,242,.22);
}
.toast{
  position:fixed;
  left:50%;
  bottom:96px;
  transform:translate(-50%,14px);
  opacity:0;
  pointer-events:none;
  z-index:50;
  background:#3a334b;
  color:#fff;
  border-radius:12px;
  padding:11px 14px;
  font-size:12px;
  font-weight:700;
  transition:.2s ease;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (min-width:560px){
  .quick-grid{grid-template-columns:repeat(4,1fr)}
  .quick-action{min-height:104px}
}
@media (max-width:360px){
  .app-shell{padding-left:14px;padding-right:14px}
  .status-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}


[hidden]{display:none!important}

.auth-view,.onboarding-view{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
}
.auth-card,.onboarding-card{
  width:min(100%,460px);
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:28px;
  padding:30px 24px;
  box-shadow:var(--shadow);
}
.brand-mark{
  width:54px;height:54px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary-soft),var(--green-soft));
  color:var(--primary);font-size:28px;font-weight:800;
  margin:0 auto 18px;
}
.auth-kicker{
  margin:0 0 8px;color:var(--primary);font-weight:800;font-size:13px;letter-spacing:.05em;text-transform:uppercase;
}
.auth-card h1,.onboarding-card h1{margin:0 0 10px;font-size:30px;line-height:1.05;letter-spacing:-.04em}
.auth-subtitle,.onboarding-copy{margin:0 0 24px;color:var(--muted);line-height:1.55;font-size:14px}
.auth-form label,.onboarding-card label{margin-bottom:14px}
.auth-divider{
  display:flex;align-items:center;gap:12px;margin:18px 0;color:#98a3ad;font-size:12px;
}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}
.google-button{
  width:100%;border:1px solid var(--line);border-radius:15px;padding:14px 16px;
  background:#fff;color:var(--text);font-weight:750;display:flex;align-items:center;justify-content:center;gap:10px;
}
.google-g{
  width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;
}
.google-g svg{width:18px;height:18px;display:block}
.auth-link,.secondary-link{
  width:100%;border:0;background:transparent;color:var(--primary);font-weight:750;padding:14px 8px 0;
}
.form-message{min-height:20px;margin:10px 0 0;text-align:center;color:#b25050;font-size:12px;line-height:1.4}
.form-message.success{color:var(--green)}
.step-pill{
  display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--primary-soft);
  color:var(--primary);font-size:11px;font-weight:800;margin-bottom:14px;
}
.sex-fieldset{border:0;padding:0;margin:0 0 14px}
.sex-fieldset legend{font-size:12px;font-weight:700;color:#646879;margin-bottom:8px}
.sex-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sex-option{position:relative;margin:0!important}
.sex-option:last-child{grid-column:1/-1}
.sex-option input{position:absolute;opacity:0;pointer-events:none}
.sex-option span{
  display:block;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:center;color:#65717d;font-size:12px;
}
.sex-option input:checked + span{
  background:var(--primary-soft);border-color:var(--primary);color:var(--primary);font-weight:800;
}
.profile-menu{
  position:fixed;right:18px;top:72px;z-index:45;width:min(280px,calc(100vw - 36px));
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow);
}
.profile-menu p{margin:0 0 10px;color:var(--muted);font-size:12px;word-break:break-all}
.profile-menu button{width:100%;border:0;border-radius:11px;padding:10px;background:#f2f6f8;color:#43525f;font-weight:700}
.loading-button{opacity:.65;pointer-events:none}
body[data-theme="boy"] .quick-action.sleep{background:linear-gradient(145deg,#e9f4ff,#dfefff);color:#3f6fa8}
body[data-theme="girl"] .quick-action.sleep{background:linear-gradient(145deg,#f9edf5,#f5e4ef);color:#b85578}
body[data-theme="girl"] .quick-action.medicine{background:linear-gradient(145deg,#fff0f5,#ffe6ed);color:#b85578}
@media (max-width:480px){
  .auth-card,.onboarding-card{padding:26px 20px;border-radius:24px}
  .auth-card h1,.onboarding-card h1{font-size:27px}
}

body[data-theme="boy"] .quick-action.medicine{
  background:linear-gradient(145deg,#e8f7f3,#dff2ed);
  color:#277f70;
}
body[data-theme="boy"] .empty-icon{
  background:linear-gradient(145deg,#e7f4fb,#e6f6f2);
}
body[data-theme="boy"] .close-button{
  background:#e9f5fb;
  color:#31779c;
}
body[data-theme="boy"] .primary-button{
  background:linear-gradient(135deg,#3187b8,#39a981);
  box-shadow:0 10px 22px rgba(49,135,184,.20);
}
body[data-theme="boy"] input:focus,
body[data-theme="boy"] select:focus,
body[data-theme="boy"] textarea:focus{
  border-color:#5ca6cb;
  box-shadow:0 0 0 3px rgba(49,135,184,.12);
}
body[data-theme="boy"] .choice input:checked + label{
  border-color:#5ca6cb;
  color:#31779c;
}

.status-grid-home{grid-template-columns:1fr 1fr}
.agenda-card{
  width:100%;
  text-align:left;
  cursor:pointer;
  color:inherit;
}
.agenda-card:active{transform:scale(.99)}
.status-chevron{
  margin-left:auto;
  color:var(--muted);
  font-size:24px;
  line-height:1;
}

.agenda-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,720px);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:26px 26px 0 0;
  padding:8px 18px calc(22px + env(safe-area-inset-bottom));
  z-index:31;
  box-shadow:0 -18px 50px rgba(36,50,64,.18);
}
.calendar-toolbar{
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.calendar-toolbar strong{text-align:center;font-size:16px}
.calendar-toolbar button{
  width:38px;height:38px;border:0;border-radius:12px;
  background:var(--primary-soft);color:var(--primary);font-size:24px;
}
.calendar-weekdays,.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.calendar-weekdays{
  margin-bottom:6px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
}
.calendar-day{
  aspect-ratio:1/1;
  border:1px solid transparent;
  border-radius:12px;
  background:#f8fbfd;
  color:var(--text);
  font-size:12px;
  position:relative;
}
.calendar-day.other-month{opacity:.35}
.calendar-day.today{border-color:var(--primary)}
.calendar-day.selected{
  background:var(--primary);
  color:#fff;
  font-weight:800;
}
.calendar-day.has-event::after{
  content:"";
  position:absolute;
  bottom:5px;left:50%;
  width:5px;height:5px;border-radius:50%;
  transform:translateX(-50%);
  background:var(--green);
}
.calendar-day.selected.has-event::after{background:#fff}
.agenda-day-panel{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.agenda-day-heading h3{margin:2px 0 12px;font-size:18px}
.appointment-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.appointment-item{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfdff;
}
.appointment-time{font-weight:800;color:var(--primary);font-size:12px}
.appointment-copy strong{display:block;font-size:13px;margin-bottom:3px}
.appointment-copy p{margin:0;color:var(--muted);font-size:11px}
.appointment-delete{
  border:0;background:transparent;color:#9aa5af;font-size:18px;padding:4px 6px;
}
.appointment-empty{
  padding:12px 0 4px;
  color:var(--muted);
  font-size:12px;
}
.appointment-form{
  padding-top:14px;
  border-top:1px solid var(--line);
}
body[data-theme="boy"] .calendar-day.has-event::after{background:#2f9d8a}
body[data-theme="boy"] .calendar-day.selected.has-event::after{background:#fff}

.profile-menu button + button{margin-top:8px}
.baby-details-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,720px);
  background:#fff;
  border-radius:26px 26px 0 0;
  padding:8px 20px calc(24px + env(safe-area-inset-bottom));
  z-index:31;
  box-shadow:0 -18px 50px rgba(36,50,64,.18);
}
.baby-details-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.baby-details-grid>div{
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fbfdff;
}
.baby-details-grid .full{grid-column:1/-1}
.baby-details-grid span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:5px;
}
.baby-details-grid strong{
  display:block;
  font-size:14px;
}
@media(max-width:420px){
  .baby-details-grid{grid-template-columns:1fr}
  .baby-details-grid .full{grid-column:auto}
}

.password-field{
  position:relative;
}
.password-field input{
  padding-right:48px;
}
.password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  margin-top:3px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:18px;
}
.password-toggle:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}

.auth-view{
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 26%),
    linear-gradient(180deg,#f8fbfd 0%,var(--bg) 100%);
}
.auth-card{
  width:min(100%,420px);
  padding:34px 26px 28px;
  border-radius:26px;
  box-shadow:0 18px 46px rgba(53,78,94,.10);
}
.auth-heading{
  text-align:center;
  margin-bottom:22px;
}
.auth-heading h1{
  max-width:320px;
  margin:0 auto 10px;
  font-size:29px;
  line-height:1.08;
}
.auth-heading .auth-subtitle{
  max-width:340px;
  margin:0 auto;
  font-size:13.5px;
  line-height:1.55;
}
.auth-form{
  margin-top:4px;
}
.auth-form label{
  color:#5f6c78;
}
.auth-form input{
  background:#fff;
  border-color:#dfe7ec;
}
.auth-form input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent);
}
.auth-form .primary-button{
  margin-top:8px;
  min-height:48px;
  border-radius:14px;
  box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 22%,transparent);
}
.google-button{
  min-height:48px;
  background:#fff;
  border-color:#dde5ea;
  box-shadow:0 4px 12px rgba(53,78,94,.04);
}
.auth-divider{
  margin:20px 0 16px;
}
.auth-link{
  padding-top:16px;
  font-size:13px;
}
.auth-footer-note{
  margin:18px 0 0;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:#8c98a3;
  text-align:center;
  font-size:11px;
  line-height:1.45;
}
.brand-mark{
  box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 14%,transparent);
}
@media(max-width:480px){
  .auth-view{padding-left:16px;padding-right:16px}
  .auth-card{padding:30px 20px 24px;border-radius:22px}
  .auth-heading h1{font-size:27px}
}

.status-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-card{
  width:100%;
  text-align:left;
  color:inherit;
  cursor:pointer;
}
.home-card:active{transform:scale(.99)}
.mini-icon.prescription{
  background:var(--blue-soft);
  color:var(--blue);
}
.prescriptions-card{grid-column:1/-1}

.feature-page{
  position:fixed;
  inset:0;
  z-index:60;
  overflow:auto;
  background:var(--bg);
}
.feature-page-inner{
  width:min(100%,720px);
  min-height:100vh;
  margin:0 auto;
  padding:calc(16px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
}
.feature-page-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.feature-page-header h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.03em;
}
.back-button{
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--primary);
  font-size:28px;
  line-height:1;
}
.feature-intro{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}
.feature-intro-icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--rose-soft);
  color:var(--rose);
  font-size:24px;
  font-weight:800;
}
body[data-theme="boy"] .feature-intro-icon{
  background:#e6f6f2;
  color:#2f9d8a;
}
.feature-intro-icon.prescription-icon{
  background:var(--blue-soft);
  color:var(--blue);
}
.feature-intro strong{display:block;font-size:14px;margin-bottom:4px}
.feature-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.notification-permission-button{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 14px;
  background:#fff;
  color:var(--primary);
  font-weight:800;
}
.notification-permission-button:disabled{opacity:.6;cursor:default}
.notification-note{
  margin:8px 2px 18px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.schedule-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}
.schedule-item{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.schedule-time{
  min-width:52px;
  font-size:15px;
  font-weight:850;
  color:var(--primary);
}
.prescription-date{
  min-width:72px;
  font-size:11px;
  font-weight:800;
  color:var(--primary);
}
.schedule-copy{min-width:0}
.schedule-copy strong{
  display:block;
  margin-bottom:3px;
  font-size:13px;
}
.schedule-copy p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
}
.schedule-delete{
  border:0;
  background:transparent;
  color:#9aa5af;
  font-size:20px;
  padding:6px;
}
.feature-empty{
  padding:18px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:15px;
  color:var(--muted);
  font-size:12px;
}
.feature-form{
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow);
}
.feature-form h3{
  margin:0 0 16px;
  font-size:17px;
}
.feature-warning{
  margin:14px 4px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
@media(max-width:420px){
  .status-grid-home{grid-template-columns:1fr}
  .prescriptions-card{grid-column:auto}
}

.prescription-scan{
  margin-bottom:18px;
  padding:14px;
  border:1px dashed var(--line);
  border-radius:17px;
  background:#f9fcfe;
}
.prescription-file-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.prescription-upload-button{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  cursor:pointer;
}
.prescription-upload-icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:19px;
}
.prescription-upload-button strong{
  display:block;
  font-size:13px;
  margin-bottom:3px;
}
.prescription-upload-button small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
}
.prescription-image-preview-wrap{
  margin-top:12px;
}
.prescription-image-preview{
  display:block;
  width:100%;
  max-height:260px;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.prescription-remove-image{
  width:100%;
  margin-top:8px;
  border:0;
  background:transparent;
  color:#7a8791;
  font-size:11px;
  font-weight:700;
  padding:8px;
}
.prescription-read-button{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:14px;
  padding:13px 14px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
}
.prescription-read-button:disabled{
  opacity:.48;
  cursor:default;
}
.prescription-ocr-status{
  min-height:17px;
  margin-top:9px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.prescription-privacy-note{
  margin:7px 0 0;
  color:#8b98a2;
  font-size:10px;
  line-height:1.4;
}

.prescription-description{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--line);
  color:#5f6c78;
  font-size:11px;
  line-height:1.65;
}
#prescriptionNote{
  min-height:180px;
  line-height:1.6;
}


/* Visual refresh baseado no conceito aprovado no Canva */
:root{
  --bg:#f5f8fa;
  --surface:#ffffff;
  --text:#20303c;
  --muted:#788894;
  --line:#e4edf2;
  --primary:#2f86b5;
  --primary-soft:#e8f4fa;
  --green:#31957f;
  --green-soft:#e8f6f2;
  --blue:#3b96c8;
  --blue-soft:#eaf5fb;
  --amber:#d9942f;
  --amber-soft:#fff4df;
  --shadow:0 10px 28px rgba(39,67,83,.065);
  --radius:20px;
}

body[data-theme="boy"]{
  --bg:#f4f9fc;
  --primary:#2f86b5;
  --primary-soft:#e6f3f9;
  --line:#dfebf1;
  --rose:#31957f;
  --rose-soft:#e8f6f2;
  --coral:#3b96c8;
  --coral-soft:#eaf5fb;
}

body{
  background:
    radial-gradient(circle at 12% -8%, color-mix(in srgb,var(--primary) 8%,transparent), transparent 32%),
    radial-gradient(circle at 92% 4%, color-mix(in srgb,var(--green) 7%,transparent), transparent 28%),
    var(--bg);
}

.app-shell{
  width:min(100%,680px);
  padding:calc(22px + env(safe-area-inset-top)) 18px calc(108px + env(safe-area-inset-bottom));
}

.topbar{
  margin-bottom:24px;
  padding:2px 2px 0;
}
.topbar h1{
  font-size:32px;
  line-height:1.05;
  font-weight:780;
  letter-spacing:-.045em;
}
.eyebrow{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:7px;
  font-size:11px;
  letter-spacing:.055em;
}
.dev-badge{
  margin-left:0;
  padding:4px 8px;
  border:1px solid #f2dda3;
  background:#fff8df;
  color:#916515;
  box-shadow:none;
}
.avatar-button{
  width:46px;
  height:46px;
  flex:0 0 46px;
  background:linear-gradient(145deg,var(--primary),var(--green));
  border:3px solid rgba(255,255,255,.92);
  box-shadow:0 7px 18px rgba(42,108,139,.16);
  font-size:13px;
}

.status-card{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.status-grid-home{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
.mini-status{
  min-height:92px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.93);
  box-shadow:0 7px 20px rgba(39,67,83,.045);
  gap:11px;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.mini-status:hover{
  border-color:color-mix(in srgb,var(--primary) 23%,var(--line));
  box-shadow:0 10px 25px rgba(39,67,83,.075);
}
.mini-status:active{transform:scale(.985)}
.mini-status>div{min-width:0}
.mini-status p{
  margin-bottom:5px;
  font-size:10.5px;
  font-weight:650;
  letter-spacing:.01em;
}
.mini-status strong{
  font-size:13.5px;
  font-weight:760;
}
.mini-icon{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:13px;
  font-size:17px;
}
.status-chevron{
  font-size:21px;
  opacity:.55;
}
.prescriptions-card{
  grid-column:1/-1;
  min-height:78px;
}

.quick-section,.timeline-section{margin-top:30px}
.section-heading.compact{margin-bottom:15px}
.section-kicker{
  margin-bottom:6px;
  font-size:10px;
  font-weight:750;
  letter-spacing:.08em;
}
.section-heading h2{
  font-size:20px;
  font-weight:770;
  letter-spacing:-.035em;
}

.quick-grid{
  gap:11px;
}
.quick-action{
  min-height:98px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow:none;
  font-size:13px;
  background:#fff!important;
}
.quick-action:hover{
  box-shadow:0 8px 22px rgba(39,67,83,.06);
  border-color:color-mix(in srgb,currentColor 16%,var(--line));
}
.quick-action.feed{color:#287ca9}
.quick-action.sleep{color:#557da1}
.quick-action.diaper{color:#a36f21}
.quick-action.medicine{color:#2f8d79}
body[data-theme="boy"] .quick-action.sleep,
body[data-theme="boy"] .quick-action.medicine{
  background:#fff!important;
}
.quick-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  box-shadow:none;
}
.quick-action.feed .quick-icon{background:#eaf6fc}
.quick-action.sleep .quick-icon{background:#edf4fa}
.quick-action.diaper .quick-icon{background:#fff5e2}
.quick-action.medicine .quick-icon{background:#eaf6f2}

.timeline-section{
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.91);
  box-shadow:0 7px 22px rgba(39,67,83,.04);
}
.timeline-item{
  min-height:72px;
  grid-template-columns:50px 28px 1fr;
  gap:8px;
}
.timeline-time{
  font-size:11px;
  padding-top:5px;
}
.timeline-copy{
  padding:1px 0 16px;
}
.timeline-copy strong{
  font-size:13px;
}
.timeline-copy p{
  line-height:1.45;
}
.empty-state{
  padding:24px 12px 10px;
}
.empty-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  margin-bottom:12px;
}

.bottom-nav{
  width:min(calc(100% - 20px),660px);
  bottom:10px;
  border:1px solid rgba(222,234,240,.95);
  border-radius:20px;
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(39,67,83,.10);
}
.nav-item{
  min-height:48px;
  border-radius:14px;
  color:#8a98a2;
  font-size:9.5px;
  transition:.15s ease;
}
.nav-item span{
  font-size:19px;
  line-height:21px;
}
.nav-item.active{
  background:var(--primary-soft);
  color:var(--primary);
}

input,select,textarea{
  border-color:#dfe9ee;
  border-radius:12px;
  background:#fff;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent);
}
.primary-button{
  border-radius:13px;
  background:var(--primary);
  box-shadow:0 8px 18px color-mix(in srgb,var(--primary) 18%,transparent);
}
body[data-theme="boy"] .primary-button{
  background:linear-gradient(135deg,var(--primary),var(--green));
}

.feature-page-inner{
  width:min(100%,680px);
}
.feature-intro,.feature-form,.schedule-item,
.baby-details-grid>div,.appointment-item{
  box-shadow:none;
}
.feature-form,.feature-intro,.schedule-item{
  border-color:var(--line);
}
.feature-form{
  border-radius:18px;
}
.profile-menu{
  border-color:var(--line);
  border-radius:18px;
  box-shadow:0 14px 34px rgba(39,67,83,.12);
}

@media (min-width:720px){
  .app-shell{
    padding-left:24px;
    padding-right:24px;
  }
  .status-grid-home{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .prescriptions-card{
    grid-column:auto;
  }
  .mini-status{
    min-height:105px;
  }
}

@media (max-width:420px){
  .app-shell{
    padding-left:15px;
    padding-right:15px;
    padding-top:calc(18px + env(safe-area-inset-top));
  }
  .topbar{
    margin-bottom:20px;
  }
  .topbar h1{
    font-size:29px;
  }
  .status-grid-home{
    grid-template-columns:1fr;
  }
  .prescriptions-card{
    grid-column:auto;
  }
  .mini-status{
    min-height:76px;
    padding:13px 14px;
  }
  .quick-section,.timeline-section{
    margin-top:24px;
  }
  .timeline-section{
    padding:17px 14px;
  }
  .bottom-nav{
    width:calc(100% - 16px);
    bottom:8px;
  }
}


.prescription-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.prescription-edit{
  width:30px;
  height:30px;
  border:0;
  border-radius:9px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:15px;
  line-height:1;
  display:grid;
  place-items:center;
  padding:0;
}
.prescription-edit:active{transform:scale(.96)}


.medicine-prescription-picker{
  margin-bottom:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--primary-soft);
}
.medicine-prescription-picker label:last-child{margin-bottom:0}
.medicine-generated-times{
  margin:-2px 0 14px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fbfd;
}
.medicine-generated-times span{
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.medicine-generated-times strong{
  display:block;
  color:var(--primary);
  font-size:13px;
  line-height:1.5;
}


/* Figma UI system — revisão global 2026-09 */
:root{
  --app-max:680px;
  --tap:44px;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:20px;
  --radius-xl:26px;
  --shadow-soft:0 8px 24px rgba(35,64,82,.055);
  --shadow-float:0 16px 42px rgba(35,64,82,.14);
}

html{
  color-scheme:light;
  -webkit-text-size-adjust:100%;
}
body{
  min-width:320px;
  line-height:1.45;
}
button{
  -webkit-tap-highlight-color:transparent;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid color-mix(in srgb,var(--primary) 22%,transparent);
  outline-offset:2px;
}
button:disabled,
select:disabled,
input:disabled,
textarea:disabled{
  cursor:not-allowed;
}

/* Login e onboarding */
.auth-view,
.onboarding-view{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px 16px;
}
.auth-card,
.onboarding-card{
  width:min(100%,430px);
  border:1px solid color-mix(in srgb,var(--line) 86%,#fff);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  box-shadow:var(--shadow-soft);
}
.auth-card{
  padding:32px 24px 26px;
}
.onboarding-card{
  padding:26px 22px 24px;
  border-radius:var(--radius-xl);
}
.brand-mark{
  width:54px;
  height:54px;
  margin:0 auto 20px;
  border-radius:18px;
  background:var(--primary-soft);
  color:var(--primary);
  display:grid;
  place-items:center;
  font-size:30px;
}
.auth-heading h1,
.onboarding-card h1{
  color:var(--text);
  letter-spacing:-.04em;
}
.onboarding-card h1{
  margin:10px 0 8px;
  font-size:27px;
  line-height:1.08;
}
.onboarding-copy{
  margin-bottom:22px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.step-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.sex-fieldset{
  border:0;
  margin:3px 0 17px;
  padding:0;
}
.sex-fieldset legend{
  margin-bottom:8px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.sex-options{
  gap:8px;
}
.sex-option{
  min-height:44px;
  border-color:var(--line);
  border-radius:13px;
  background:#fff;
}

/* Campos e ações compartilhados */
label{
  color:#5f6e79;
  font-size:11px;
  font-weight:700;
}
label span{
  color:#99a5ad;
  font-weight:600;
}
input,
select,
textarea{
  min-height:46px;
  margin-top:7px;
  padding:11px 12px;
  border:1px solid #dce7ed;
  color:var(--text);
  font-size:14px;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
textarea{
  min-height:auto;
  resize:vertical;
}
input::placeholder,
textarea::placeholder{
  color:#a6b1b8;
}
.primary-button,
.google-button,
.notification-permission-button,
.prescription-read-button{
  min-height:48px;
  border-radius:14px;
  font-size:13px;
}
.primary-button{
  font-weight:800;
  letter-spacing:-.01em;
}
.primary-button:active,
.google-button:active,
.notification-permission-button:active,
.prescription-read-button:active{
  transform:scale(.99);
}
.form-row{
  gap:10px;
}
.form-message{
  min-height:16px;
  font-size:11px;
}

/* Shell principal */
.app-shell,
.feature-page-inner{
  width:min(100%,var(--app-max));
}
.app-shell{
  min-height:100dvh;
}
.topbar{
  align-items:flex-start;
}
.eyebrow{
  color:var(--muted);
  font-weight:750;
}
.topbar h1{
  max-width:440px;
  overflow-wrap:anywhere;
}
.avatar-button{
  min-width:46px;
  min-height:46px;
}
.dev-badge{
  min-height:23px;
}
.work-icon{
  font-size:11px;
}

/* Cards da home */
.status-grid-home{
  align-items:stretch;
}
.mini-status{
  position:relative;
  overflow:hidden;
  min-width:0;
}
.mini-status::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 56%);
}
.mini-status > *{
  position:relative;
  z-index:1;
}
.mini-status p{
  color:var(--muted);
}
.mini-status strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.35;
}
.medicine-card .mini-icon{
  background:var(--green-soft);
  color:var(--green);
}
.agenda-card .mini-icon{
  background:var(--primary-soft);
  color:var(--primary);
}
.prescriptions-card .mini-icon{
  background:var(--blue-soft);
  color:var(--blue);
}

/* Timeline */
.timeline-section{
  margin-bottom:12px;
}
.section-heading.compact{
  align-items:flex-end;
}
.text-button{
  min-height:40px;
  padding:8px 2px 8px 12px;
  color:var(--muted);
  font-size:11px;
}
.timeline-item{
  align-items:flex-start;
}
.timeline-content strong{
  font-size:13px;
  line-height:1.35;
}
.timeline-content p{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.empty-state p{
  max-width:300px;
  margin:5px auto 0;
}

/* Navegação */
.bottom-nav{
  isolation:isolate;
}
.nav-item{
  min-width:0;
  min-height:50px;
  font-weight:650;
}
.nav-item span{
  margin-bottom:2px;
}
.nav-item:active{
  transform:scale(.97);
}

/* Páginas internas */
.feature-page{
  background:
    radial-gradient(circle at 15% -10%,color-mix(in srgb,var(--primary) 7%,transparent),transparent 30%),
    var(--bg);
}
.feature-page-inner{
  padding-top:calc(18px + env(safe-area-inset-top));
}
.feature-page-header{
  position:sticky;
  top:0;
  z-index:4;
  margin:calc(-18px - env(safe-area-inset-top)) -2px 18px;
  padding:calc(16px + env(safe-area-inset-top)) 2px 12px;
  background:linear-gradient(180deg,var(--bg) 74%,color-mix(in srgb,var(--bg) 0%,transparent));
}
.back-button,
.close-button{
  min-width:var(--tap);
  min-height:var(--tap);
}
.back-button{
  display:grid;
  place-items:center;
  box-shadow:0 4px 14px rgba(35,64,82,.035);
}
.feature-intro{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}
.feature-form{
  padding:18px 16px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}
.feature-form h3{
  font-size:18px;
  letter-spacing:-.02em;
}
.feature-warning{
  padding:0 3px 8px;
  font-size:10.5px;
}

/* Medicamentos e receitas */
.schedule-list{
  gap:9px;
}
.schedule-item{
  min-height:66px;
  border-radius:var(--radius-md);
  box-shadow:0 5px 16px rgba(35,64,82,.03);
}
.schedule-delete,
.prescription-edit{
  min-width:36px;
  min-height:36px;
}
.schedule-delete{
  display:grid;
  place-items:center;
  border-radius:10px;
}
.schedule-delete:active{
  background:#f2f6f8;
}
.prescription-actions{
  gap:6px;
}
.prescription-edit{
  border:1px solid color-mix(in srgb,var(--primary) 8%,var(--line));
}
.prescription-description{
  line-height:1.55;
}
.medicine-prescription-picker{
  padding:15px;
  border-radius:var(--radius-md);
  background:linear-gradient(180deg,var(--primary-soft),color-mix(in srgb,var(--primary-soft) 60%,#fff));
}
.medicine-generated-times{
  margin-top:0;
  border-radius:var(--radius-sm);
  background:var(--green-soft);
  border-color:color-mix(in srgb,var(--green) 18%,var(--line));
}
.medicine-generated-times strong{
  color:var(--green);
}
.prescription-scan{
  padding:15px;
  border-radius:var(--radius-md);
  background:#fbfdfe;
}
.prescription-upload-button{
  min-height:66px;
}
.prescription-read-button{
  box-shadow:0 7px 16px color-mix(in srgb,var(--primary) 16%,transparent);
}

/* Agenda e sheets */
.sheet-backdrop{
  backdrop-filter:blur(3px);
}
.agenda-sheet,
.bottom-sheet,
.baby-details-sheet{
  border:1px solid var(--line);
  box-shadow:var(--shadow-float);
}
.agenda-sheet{
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
}
.sheet-handle{
  width:42px;
  height:4px;
  border-radius:999px;
  background:#d7e1e6;
}
.sheet-header{
  align-items:center;
}
.calendar-toolbar{
  margin-top:4px;
}
.calendar-toolbar button{
  min-width:40px;
  min-height:40px;
}
.calendar-day{
  min-width:0;
  font-weight:650;
}
.calendar-day:not(.selected):hover{
  background:var(--primary-soft);
}
.appointment-item{
  min-height:64px;
  box-shadow:0 4px 14px rgba(35,64,82,.03);
}
.appointment-delete{
  min-width:36px;
  min-height:36px;
  border-radius:10px;
}
.appointment-form{
  margin-top:4px;
}

/* Perfil */
.profile-menu{
  overflow:hidden;
  padding:8px;
  background:rgba(255,255,255,.98);
}
.profile-menu p{
  margin:5px 7px 9px;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}
.profile-menu button{
  min-height:44px;
  border-radius:11px;
}
.baby-details-grid>div{
  min-height:74px;
  background:#fff;
  box-shadow:0 4px 14px rgba(35,64,82,.025);
}

/* Toast */
.toast{
  max-width:min(calc(100% - 28px),460px);
  border-radius:14px;
  box-shadow:var(--shadow-float);
  font-size:12px;
}

/* Mobile: uso com uma mão e sem apertar campos */
@media(max-width:520px){
  .auth-view,
  .onboarding-view{
    place-items:start center;
    padding-top:calc(26px + env(safe-area-inset-top));
  }
  .auth-card,
  .onboarding-card{
    border-radius:22px;
  }
  .form-row{
    grid-template-columns:1fr;
  }
  .feature-page-inner{
    padding-left:15px;
    padding-right:15px;
  }
  .agenda-sheet,
  .bottom-sheet,
  .baby-details-sheet{
    width:100%;
    max-height:94dvh;
    padding-left:15px;
    padding-right:15px;
  }
  .calendar-weekdays,
  .calendar-grid{
    gap:4px;
  }
  .calendar-day{
    border-radius:10px;
    font-size:11px;
  }
  .schedule-item{
    grid-template-columns:62px minmax(0,1fr) auto;
    padding:12px;
  }
  .prescription-date{
    min-width:62px;
  }
}

@media(min-width:721px){
  .feature-page-inner{
    padding-left:24px;
    padding-right:24px;
  }
  .agenda-sheet,
  .baby-details-sheet{
    left:50%;
    width:min(100% - 32px,680px);
    border-radius:var(--radius-xl);
    bottom:16px;
    max-height:calc(100dvh - 32px);
  }
}

/* Tema menino: garante que não haja acentos rosas na experiência principal */
body[data-theme="boy"] .brand-mark,
body[data-theme="boy"] .mini-icon,
body[data-theme="boy"] .feature-intro-icon,
body[data-theme="boy"] .prescription-upload-icon{
  color:var(--primary);
}
body[data-theme="boy"] .feature-intro-icon,
body[data-theme="boy"] .medicine-card .mini-icon{
  background:var(--green-soft);
  color:var(--green);
}


/* Modernização visual global — 2026-09 */
:root{
  --bg:#eef5f8;
  --surface:#ffffff;
  --surface-soft:#f7fafc;
  --surface-strong:#edf4f7;
  --text:#1d2b36;
  --muted:#6c7b87;
  --line:#dce7ed;
  --line-strong:#cbdbe4;
  --primary:#2f86b5;
  --primary-strong:#236f98;
  --primary-soft:#e6f3f9;
  --green:#2f9d7f;
  --green-soft:#e8f6f1;
  --blue:#3f9ed4;
  --blue-soft:#e9f5fb;
  --amber:#d99832;
  --amber-soft:#fff4df;
  --rose:#3a9f91;
  --rose-soft:#e6f6f2;
  --coral:#4a9eb6;
  --coral-soft:#e9f5f8;
  --shadow-sm:0 4px 14px rgba(38,70,88,.06);
  --shadow-md:0 12px 32px rgba(38,70,88,.09);
  --shadow-lg:0 24px 60px rgba(38,70,88,.14);
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;
  --radius-xl:28px;
}
body[data-theme="boy"]{
  --bg:#eef6fa;
  --surface-soft:#f7fbfd;
  --primary:#2e84b3;
  --primary-strong:#246d94;
  --primary-soft:#e3f2f9;
  --green:#2f9b80;
  --green-soft:#e6f5ef;
  --rose:#2f9b80;
  --rose-soft:#e6f5ef;
  --coral:#3d96b2;
  --coral-soft:#e7f3f7;
}
html{
  background:var(--bg);
  scroll-behavior:smooth;
}
body{
  background:
    radial-gradient(circle at 0% -10%, color-mix(in srgb,var(--primary) 13%,transparent), transparent 28rem),
    radial-gradient(circle at 100% 0%, color-mix(in srgb,var(--green) 8%,transparent), transparent 24rem),
    var(--bg);
  color:var(--text);
}
button,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}
button{
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease;
}
button:active:not(:disabled){
  transform:scale(.985);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid color-mix(in srgb,var(--primary) 18%,transparent);
  outline-offset:2px;
}
.app-shell{
  width:min(100%,820px);
  padding:calc(18px + env(safe-area-inset-top)) 18px calc(116px + env(safe-area-inset-bottom));
}
.topbar{
  margin:0 -2px 22px;
  padding:4px 2px;
}
.topbar h1{
  font-size:30px;
  line-height:1.05;
  font-weight:820;
  letter-spacing:-.045em;
}
.eyebrow,.section-kicker{
  color:#7b8b96;
  font-weight:780;
  letter-spacing:.07em;
}
.dev-badge{
  margin-left:6px;
  padding:4px 7px;
  border:1px solid color-mix(in srgb,var(--amber) 22%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--amber-soft) 82%,#fff);
  color:#9a6a24;
  font-size:9px;
  letter-spacing:.02em;
  text-transform:none;
  vertical-align:1px;
}
.avatar-button{
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:16px;
  background:linear-gradient(145deg,var(--primary),var(--green));
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 20%,transparent);
}
.status-card{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.status-grid-home{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mini-status{
  min-height:104px;
  padding:16px;
  gap:13px;
  border:1px solid rgba(255,255,255,.84);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-sm);
  backdrop-filter:blur(12px);
}
.mini-status:hover{
  border-color:var(--line-strong);
  box-shadow:var(--shadow-md);
  transform:translateY(-1px);
}
.prescriptions-card{
  grid-column:1/-1;
  min-height:84px;
}
.mini-status>div{
  min-width:0;
}
.mini-status p{
  margin:0 0 5px;
  color:var(--muted);
  font-size:11px;
  font-weight:720;
}
.mini-status strong{
  display:block;
  color:var(--text);
  font-size:14px;
  line-height:1.35;
  font-weight:790;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mini-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);
}
.status-chevron{
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--surface-soft);
  color:#8c9aa4;
  font-size:20px;
}
.timeline-section{
  margin-top:20px;
  padding:20px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:24px;
  background:rgba(255,255,255,.91);
  box-shadow:var(--shadow-sm);
}
.section-heading.compact{
  margin-bottom:14px;
}
.section-heading h2{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.025em;
}
.text-button{
  border:0;
  border-radius:10px;
  background:var(--surface-soft);
  color:var(--muted);
  padding:8px 10px;
  font-size:11px;
  font-weight:750;
}
.timeline-item{
  border-bottom-color:var(--line);
}
.timeline-time{
  color:#758692;
  font-weight:750;
}
.timeline-content strong{
  font-size:13.5px;
  font-weight:780;
}
.timeline-content p{
  font-size:11.5px;
  line-height:1.45;
}
.empty-state{
  padding:30px 18px 22px;
}
.empty-icon{
  width:50px;
  height:50px;
  border-radius:17px;
  background:linear-gradient(145deg,var(--primary-soft),var(--green-soft));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
.bottom-nav{
  bottom:10px;
  width:min(calc(100% - 24px),520px);
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  border:1px solid rgba(255,255,255,.9);
  border-radius:22px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 36px rgba(36,63,78,.14);
  backdrop-filter:blur(20px) saturate(1.2);
}
.nav-item{
  min-height:52px;
  border-radius:15px;
  color:#8b98a2;
  font-size:9px;
  letter-spacing:.01em;
}
.nav-item span{
  font-size:20px;
  line-height:22px;
}
.nav-item.active{
  background:var(--primary-soft);
  color:var(--primary-strong);
}
.auth-view,.onboarding-view{
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb,var(--primary) 14%,transparent), transparent 24rem),
    linear-gradient(180deg,#f9fcfd 0%,var(--bg) 100%);
}
.auth-card,.onboarding-card{
  border-color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(18px);
}
.brand-mark{
  width:58px;
  height:58px;
  border-radius:19px;
  background:linear-gradient(145deg,var(--primary-soft),var(--green-soft));
  color:var(--primary);
  box-shadow:0 10px 24px color-mix(in srgb,var(--primary) 14%,transparent);
}
.auth-card h1,.onboarding-card h1{
  color:#182731;
  font-weight:820;
}
label{
  color:#5e6f7a;
  font-size:11.5px;
  font-weight:720;
}
input,select,textarea{
  min-height:47px;
  margin-top:7px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfdfe;
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
textarea{
  min-height:86px;
}
input:hover,select:hover,textarea:hover{
  border-color:var(--line-strong);
}
input:focus,select:focus,textarea:focus,
body[data-theme="boy"] input:focus,
body[data-theme="boy"] select:focus,
body[data-theme="boy"] textarea:focus{
  border-color:var(--primary);
  background:#fff;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 10%,transparent);
}
.primary-button{
  min-height:49px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 20%,transparent);
  font-weight:780;
}
body[data-theme="boy"] .primary-button{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  box-shadow:0 10px 22px color-mix(in srgb,var(--primary) 20%,transparent);
}
.primary-button:hover{
  box-shadow:0 13px 28px color-mix(in srgb,var(--primary) 24%,transparent);
  transform:translateY(-1px);
}
.google-button,
.notification-permission-button,
.prescription-read-button{
  min-height:47px;
  border-radius:14px;
}
.google-button{
  border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.profile-menu{
  top:76px;
  border-color:rgba(255,255,255,.9);
  border-radius:18px;
  box-shadow:var(--shadow-lg);
}
.profile-menu button{
  min-height:42px;
  border-radius:12px;
  background:var(--surface-soft);
}
.sheet-backdrop{
  background:rgba(18,31,40,.38);
  backdrop-filter:blur(3px);
}
.bottom-sheet,
.agenda-sheet,
.baby-details-sheet{
  border:1px solid rgba(255,255,255,.75);
  border-bottom:0;
  border-radius:28px 28px 0 0;
  box-shadow:0 -22px 60px rgba(26,48,60,.18);
}
.sheet-handle{
  width:44px;
  background:#d9e4e9;
}
.close-button,
.back-button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary-strong);
  box-shadow:var(--shadow-sm);
}
.calendar-toolbar button{
  background:var(--surface-soft);
  color:var(--primary);
}
.calendar-day{
  border-radius:11px;
  background:var(--surface-soft);
}
.calendar-day.today{
  border-color:var(--primary);
}
.calendar-day.selected{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  box-shadow:0 6px 12px color-mix(in srgb,var(--primary) 18%,transparent);
}
.appointment-item{
  border-color:var(--line);
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.feature-page{
  background:
    radial-gradient(circle at top right,color-mix(in srgb,var(--primary) 9%,transparent),transparent 20rem),
    var(--bg);
}
.feature-page-inner{
  width:min(100%,820px);
  padding-left:18px;
  padding-right:18px;
}
.feature-page-header{
  position:sticky;
  top:0;
  z-index:5;
  margin:calc(-16px - env(safe-area-inset-top)) -18px 18px;
  padding:calc(14px + env(safe-area-inset-top)) 18px 13px;
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--line) 76%,transparent);
  backdrop-filter:blur(18px);
}
.feature-page-header h2{
  font-size:25px;
  font-weight:820;
}
.feature-intro{
  padding:17px;
  border-color:rgba(255,255,255,.9);
  border-radius:20px;
  background:linear-gradient(145deg,#fff,var(--surface-soft));
  box-shadow:var(--shadow-sm);
}
.feature-intro-icon{
  width:46px;
  height:46px;
  flex-basis:46px;
  border-radius:15px;
}
.schedule-list{
  gap:10px;
}
.schedule-item{
  padding:14px;
  border-color:rgba(255,255,255,.92);
  border-radius:17px;
  box-shadow:var(--shadow-sm);
}
.schedule-time{
  min-width:56px;
  font-size:16px;
  color:var(--primary-strong);
}
.feature-form{
  padding:20px;
  border-color:rgba(255,255,255,.92);
  border-radius:22px;
  box-shadow:var(--shadow-md);
}
.feature-form h3{
  font-size:18px;
  letter-spacing:-.02em;
}
.prescription-scan{
  border-color:var(--line-strong);
  background:linear-gradient(145deg,#f9fcfd,#f3f8fa);
}
.prescription-upload-button{
  border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.prescription-read-button{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
}
.feature-warning,
.prescription-privacy-note,
.notification-note{
  color:#7f8d97;
}
.toast{
  bottom:94px;
  min-width:min(320px,calc(100vw - 32px));
  max-width:440px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(28,43,53,.94);
  box-shadow:0 12px 30px rgba(20,35,44,.22);
  backdrop-filter:blur(14px);
  text-align:center;
}
@media(min-width:720px){
  .app-shell{
    padding-left:24px;
    padding-right:24px;
  }
  .status-grid-home{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .prescriptions-card{
    grid-column:auto;
  }
  .mini-status{
    min-height:116px;
  }
  .timeline-section{
    padding:24px;
  }
  .feature-page-inner{
    padding-left:24px;
    padding-right:24px;
  }
  .feature-page-header{
    margin-left:-24px;
    margin-right:-24px;
    padding-left:24px;
    padding-right:24px;
  }
  .feature-form{
    padding:24px;
  }
}
@media(max-width:480px){
  .app-shell{
    padding-left:14px;
    padding-right:14px;
  }
  .status-grid-home{
    grid-template-columns:1fr;
    gap:10px;
  }
  .prescriptions-card{
    grid-column:auto;
  }
  .mini-status{
    min-height:86px;
    padding:14px;
    border-radius:18px;
  }
  .timeline-section{
    margin-top:16px;
    padding:17px 15px;
    border-radius:21px;
  }
  .topbar h1{
    font-size:27px;
  }
  .bottom-nav{
    width:calc(100% - 20px);
    bottom:7px;
    border-radius:20px;
  }
  .feature-form{
    padding:17px 15px;
    border-radius:19px;
  }
  .form-row{
    gap:9px;
  }
}


/* Redesign marcante da home — 2026-09 */
body[data-theme="boy"]{
  --home-hero-a:#1f6f9a;
  --home-hero-b:#2b9a86;
}
.home-hero{
  position:relative;
  overflow:hidden;
  margin:0 0 18px;
  padding:22px 20px 20px;
  border-radius:28px;
  background:
    radial-gradient(circle at 92% 10%,rgba(255,255,255,.22),transparent 26%),
    linear-gradient(135deg,var(--home-hero-a,#246f99),var(--home-hero-b,#2d9b88));
  color:#fff;
  box-shadow:0 20px 44px rgba(32,92,118,.22);
}
.home-hero::after{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  bottom:-90px;
  border:30px solid rgba(255,255,255,.08);
  border-radius:50%;
}
.home-hero-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.home-hero .eyebrow{
  color:rgba(255,255,255,.76);
}
.home-hero h1{
  margin:8px 0 0;
  font-size:34px;
  line-height:1;
  letter-spacing:-.05em;
  color:#fff;
}
.home-hero-copy{
  margin:10px 0 0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  font-weight:600;
}
.home-hero .dev-badge{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.16);
  color:rgba(255,255,255,.88);
}
.home-hero .avatar-button{
  width:50px;
  height:50px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.18);
  box-shadow:none;
  backdrop-filter:blur(12px);
}
.home-hero-accent{
  position:relative;
  z-index:1;
  display:flex;
  gap:8px;
  margin-top:20px;
  color:rgba(255,255,255,.75);
  font-size:12px;
}
.home-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.home-section-heading h2{
  margin:2px 0 0;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.home-summary{
  margin:0 0 18px;
  padding:18px;
  border:1px solid rgba(255,255,255,.88);
  border-radius:24px;
  background:rgba(255,255,255,.93);
  box-shadow:0 12px 30px rgba(37,70,88,.08);
}
.home-summary .status-grid-home{
  gap:9px;
}
.home-summary .mini-status{
  min-height:78px;
  padding:12px;
  border:1px solid var(--line);
  background:var(--surface-soft);
  box-shadow:none;
  border-radius:16px;
}
.home-summary .mini-status:hover{
  box-shadow:none;
  transform:none;
}
.home-summary .mini-icon{
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:12px;
}
.home-summary .status-chevron{
  background:#fff;
}
.timeline-section{
  margin-top:0;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:0;
}
.timeline-section .section-heading.compact{
  padding:0 2px;
  margin-bottom:10px;
}
.timeline{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.9);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(37,70,88,.07);
}
.timeline-item{
  padding:14px 14px 0;
}
.empty-state{
  border:1px dashed var(--line-strong);
  border-radius:22px;
  background:rgba(255,255,255,.72);
}
.bottom-nav{
  background:rgba(25,49,62,.94);
  border-color:rgba(255,255,255,.08);
  box-shadow:0 16px 40px rgba(20,40,52,.26);
}
.nav-item{
  color:#aebbc2;
}
.nav-item.active{
  background:rgba(255,255,255,.12);
  color:#fff;
}
@media(min-width:720px){
  .home-hero{
    padding:26px 28px 24px;
  }
  .home-hero h1{
    font-size:40px;
  }
  .home-summary{
    padding:20px;
  }
}
@media(max-width:480px){
  .home-hero{
    margin-left:-4px;
    margin-right:-4px;
    padding:20px 17px 18px;
    border-radius:24px;
  }
  .home-hero h1{
    font-size:31px;
  }
  .home-summary{
    padding:15px;
    border-radius:21px;
  }
  .home-summary .status-grid-home{
    grid-template-columns:1fr;
  }
  .home-summary .mini-status{
    min-height:74px;
  }
}


/* Agenda colorida por tipo — 2026-09 */
.calendar-toolbar{
  margin:2px 0 16px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-soft);
}
.calendar-toolbar strong{
  font-size:16px;
  letter-spacing:-.02em;
  text-transform:capitalize;
}
.calendar-toolbar button{
  width:40px;
  height:40px;
  border-radius:13px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.calendar-weekdays{
  margin-bottom:8px;
  color:#7c8a94;
  font-size:9px;
  letter-spacing:.05em;
}
.calendar-grid{
  gap:7px;
}
.calendar-day{
  aspect-ratio:1/1.03;
  min-width:0;
  padding:5px 3px;
  border:1px solid transparent;
  border-radius:14px;
  background:#f7fafc;
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  overflow:hidden;
}
.calendar-day-number{
  width:27px;
  height:27px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:760;
}
.calendar-event-icons{
  min-height:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  font-size:9px;
  line-height:1;
}
.calendar-day.has-event{
  border-color:color-mix(in srgb,var(--event-color) 25%,var(--line));
  background:color-mix(in srgb,var(--event-color) 8%,#fff);
}
.calendar-day.has-event .calendar-day-number{
  color:var(--event-color);
  background:color-mix(in srgb,var(--event-color) 12%,#fff);
}
.calendar-day.type-consulta{--event-color:#2f86b5}
.calendar-day.type-vacina{--event-color:#6f65c2}
.calendar-day.type-exame{--event-color:#d5892e}
.calendar-day.type-escola{--event-color:#2f9b70}
.calendar-day.type-outro{--event-color:#75828d}
.calendar-day.today{
  border-color:#2f86b5;
  box-shadow:inset 0 0 0 1px rgba(47,134,181,.15);
}
.calendar-day.selected{
  background:linear-gradient(145deg,#203c4d,#2f6f8f);
  border-color:transparent;
  box-shadow:0 8px 18px rgba(32,69,90,.22);
}
.calendar-day.selected .calendar-day-number,
.calendar-day.selected.has-event .calendar-day-number{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.calendar-day.selected .calendar-event-icons{
  filter:saturate(.9) brightness(1.15);
}
.calendar-day.other-month{
  opacity:.33;
}
.calendar-day.has-event::after{
  display:none;
}
.agenda-day-panel{
  margin-top:20px;
  padding-top:18px;
}
.appointment-list{
  gap:10px;
}
.appointment-item{
  --event-color:#75828d;
  grid-template-columns:42px minmax(0,1fr) auto;
  padding:13px;
  border:1px solid color-mix(in srgb,var(--event-color) 20%,var(--line));
  border-left:4px solid var(--event-color);
  border-radius:17px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--event-color) 7%,#fff),#fff 55%);
}
.appointment-item.type-consulta{--event-color:#2f86b5}
.appointment-item.type-vacina{--event-color:#6f65c2}
.appointment-item.type-exame{--event-color:#d5892e}
.appointment-item.type-escola{--event-color:#2f9b70}
.appointment-item.type-outro{--event-color:#75828d}
.appointment-type-icon{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:color-mix(in srgb,var(--event-color) 11%,#fff);
  font-size:18px;
}
.appointment-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:5px;
}
.appointment-time{
  min-width:auto;
  color:var(--event-color);
  font-size:11px;
  font-weight:850;
}
.appointment-type-label{
  padding:3px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--event-color) 10%,#fff);
  color:var(--event-color);
  font-size:9px;
  font-weight:800;
}
.appointment-copy strong{
  font-size:13px;
  line-height:1.35;
}
.appointment-copy p{
  margin-top:4px;
}
.all-day-option{
  display:flex;
  align-items:center;
  gap:7px;
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.all-day-option input{
  width:17px;
  height:17px;
  min-height:0;
  margin:0;
  padding:0;
  accent-color:var(--primary);
}
.all-day-option span{
  color:inherit;
  font-weight:700;
}
#appointmentTime:disabled{
  opacity:.5;
  background:#edf2f4;
}
@media(max-width:420px){
  .calendar-grid{gap:4px}
  .calendar-day{
    border-radius:11px;
    padding:3px 1px;
  }
  .calendar-day-number{
    width:24px;
    height:24px;
    border-radius:8px;
    font-size:11px;
  }
  .calendar-event-icons{
    font-size:8px;
  }
}

/* Ajustes de agenda: seleção, escola e lembretes — 2026-09 */
/* Escola: azul e com mochila desenhada em CSS para não depender da cor do emoji do aparelho */
.calendar-day.type-escola,
.appointment-item.type-escola{
  --event-color:#3d8fc4;
}
.school-backpack{
  position:relative;
  display:inline-block;
  width:12px;
  height:13px;
  border-radius:4px 4px 3px 3px;
  background:#3d8fc4;
  box-shadow:inset 0 -3px 0 rgba(25,91,134,.18);
  vertical-align:middle;
}
.school-backpack::before{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  top:-4px;
  height:6px;
  border:2px solid #3d8fc4;
  border-bottom:0;
  border-radius:6px 6px 0 0;
}
.school-backpack::after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  bottom:2px;
  height:3px;
  border-radius:2px;
  background:#9fd0eb;
}
.appointment-type-icon .school-backpack{
  width:18px;
  height:19px;
  border-radius:6px 6px 4px 4px;
}
.appointment-type-icon .school-backpack::before{
  top:-5px;
  border-width:3px;
}
.appointment-type-icon .school-backpack::after{
  bottom:3px;
  height:5px;
}

/* Dias com compromisso: cor suave conforme o tipo */
.calendar-day.has-event{
  border-color:color-mix(in srgb,var(--event-color) 28%,var(--line));
  background:color-mix(in srgb,var(--event-color) 7%,#fff);
}
.calendar-day.has-event .calendar-day-number{
  color:var(--event-color);
  background:color-mix(in srgb,var(--event-color) 10%,#fff);
}

/* Data apenas selecionada: destaque leve, sem laranja forte */
.calendar-day.selected,
.calendar-day.selected.has-event{
  border-color:#84b9d6;
  background:#edf7fc;
  color:var(--text);
  box-shadow:0 4px 10px rgba(54,126,164,.10);
}
.calendar-day.selected .calendar-day-number,
.calendar-day.selected.has-event .calendar-day-number{
  background:#dceff8;
  color:#2f789f;
}
.calendar-day.selected .calendar-event-icons{
  filter:none;
}

/* Lembrete do compromisso */
.appointment-reminder-card{
  margin:4px 0 14px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-soft);
}
.reminder-toggle{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  cursor:pointer;
}
.reminder-toggle input{
  width:19px;
  height:19px;
  min-height:0;
  margin:2px 0 0;
  padding:0;
  accent-color:var(--primary);
  flex:0 0 19px;
}
.reminder-toggle-copy{
  display:block;
  min-width:0;
}
.reminder-toggle-copy strong{
  display:block;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}
.reminder-toggle-copy small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
  font-weight:600;
}
.reminder-time-wrap{
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.appointment-reminder-badge{
  padding:3px 6px;
  border-radius:999px;
  background:#fff2d9;
  color:#9b681d;
  font-size:9px;
  font-weight:800;
}


/* Navegação inferior funcional — 2026-09 */
.app-tab-page{
  width:min(100%,820px);
  min-height:100vh;
  margin:0 auto;
  padding:calc(24px + env(safe-area-inset-top)) 18px calc(118px + env(safe-area-inset-bottom));
}
.tab-page-header{
  margin-bottom:20px;
}
.tab-page-header h2{
  margin:2px 0 7px;
  font-size:28px;
  letter-spacing:-.04em;
}
.tab-page-header>p:last-child{
  margin:0;
  max-width:520px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.tab-action-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tab-action-card{
  width:100%;
  min-height:78px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 28px;
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  color:var(--text);
  text-align:left;
  box-shadow:var(--shadow-sm);
}
.tab-action-card:hover{
  border-color:var(--line-strong);
  box-shadow:var(--shadow-md);
  transform:translateY(-1px);
}
.tab-action-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--primary-soft);
  color:var(--primary-strong);
  font-size:18px;
  font-weight:850;
}
.health-medicine .tab-action-icon{
  background:var(--green-soft);
  color:var(--green);
}
.health-prescriptions .tab-action-icon{
  background:var(--blue-soft);
  color:var(--blue);
}
.tab-action-card strong{
  display:block;
  font-size:14px;
  font-weight:800;
}
.tab-action-card small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.35;
  font-weight:600;
}
.tab-action-chevron{
  color:#99a6af;
  font-size:24px;
}
.tab-coming-soon{
  margin-top:18px;
  padding:16px;
  border:1px dashed var(--line-strong);
  border-radius:18px;
  background:rgba(255,255,255,.55);
}
.tab-coming-soon span{
  display:inline-block;
  margin-bottom:6px;
  padding:4px 7px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-strong);
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.tab-coming-soon p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.settings-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.settings-summary>div{
  min-width:0;
  padding:13px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-sm);
}
.settings-summary span{
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
}
.settings-summary strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.tab-action-card.danger .tab-action-icon{
  background:#fff0f0;
  color:#b34f4f;
}
.tab-action-card.danger strong{
  color:#a84747;
}
.bottom-nav .nav-item{
  cursor:pointer;
}
.bottom-nav .nav-item.active{
  transform:none;
}
@media(max-width:520px){
  .app-tab-page{
    padding-left:14px;
    padding-right:14px;
  }
  .settings-summary{
    grid-template-columns:1fr;
  }
}


/* Modo de ajustes do desenvolvedor — 2026-09 */
.developer-tools-card .tab-action-icon{
  background:#eef0ff;
  color:#5964ba;
}
.review-mode-active *{
  cursor:crosshair !important;
}
.review-mode-active .review-mode-bar,
.review-mode-active .review-mode-bar *,
.review-mode-active .review-composer,
.review-mode-active .review-composer *,
.review-mode-active .review-list-sheet,
.review-mode-active .review-list-sheet *{
  cursor:default !important;
}
.review-mode-bar{
  position:fixed;
  top:calc(10px + env(safe-area-inset-top));
  left:50%;
  z-index:120;
  width:min(calc(100% - 20px),620px);
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px 10px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:17px;
  background:rgba(30,47,59,.95);
  color:#fff;
  box-shadow:0 18px 45px rgba(20,35,44,.28);
  backdrop-filter:blur(18px);
}
.review-mode-bar>div{
  min-width:0;
}
.review-mode-bar strong{
  display:block;
  font-size:12px;
}
.review-mode-bar span{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.68);
  font-size:9.5px;
}
.review-mode-bar button{
  flex:0 0 auto;
  min-height:36px;
  padding:0 12px;
  border:0;
  border-radius:11px;
  background:#fff;
  color:#253d4b;
  font-size:10px;
  font-weight:800;
}
.review-selected{
  position:relative !important;
  outline:3px solid #f0b84b !important;
  outline-offset:3px !important;
  z-index:111 !important;
}
.review-selected::after{
  content:"Selecionado";
  position:absolute;
  top:-12px;
  right:8px;
  z-index:112;
  padding:3px 6px;
  border-radius:999px;
  background:#f0b84b;
  color:#4c3811;
  font-size:8px;
  font-weight:850;
}
.review-backdrop{
  position:fixed;
  inset:0;
  z-index:125;
  background:rgba(18,31,40,.34);
  backdrop-filter:blur(2px);
}
.review-composer,
.review-list-sheet{
  position:fixed;
  z-index:130;
  left:50%;
  width:min(calc(100% - 24px),520px);
  transform:translateX(-50%);
  border:1px solid rgba(255,255,255,.9);
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(20,42,54,.26);
}
.review-composer{
  bottom:calc(16px + env(safe-area-inset-bottom));
  padding:18px;
}
.review-list-sheet{
  bottom:calc(16px + env(safe-area-inset-bottom));
  max-height:min(78dvh,680px);
  padding:18px;
  overflow:auto;
}
.review-composer-head,
.review-list-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.review-composer h3,
.review-list-sheet h3{
  margin:2px 0 0;
  font-size:20px;
  letter-spacing:-.03em;
}
.review-target-chip{
  margin:14px 0 10px;
  padding:8px 10px;
  border-radius:11px;
  background:#f3f7f9;
  color:#60717b;
  font-size:10px;
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.review-composer textarea{
  width:100%;
  min-height:112px;
  resize:vertical;
}
.review-composer-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:9px;
  margin-top:12px;
}
.secondary-button{
  min-height:49px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-weight:760;
}
.review-list-actions{
  margin:15px 0;
}
.review-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.review-list-item{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 34px;
  gap:9px;
  align-items:start;
  padding:12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-soft);
}
.review-list-number{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff1b8;
  color:#7b5b10;
  font-size:10px;
  font-weight:850;
}
.review-list-copy{
  min-width:0;
}
.review-list-copy span,
.review-list-copy small{
  display:block;
  color:var(--muted);
  font-size:9px;
}
.review-list-copy strong{
  display:block;
  margin:4px 0 5px;
  color:var(--text);
  font-size:11.5px;
  line-height:1.4;
}
.review-list-done{
  width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--green);
  font-weight:900;
}
.review-empty{
  padding:24px 14px;
  border:1px dashed var(--line-strong);
  border-radius:15px;
  color:var(--muted);
  text-align:center;
  font-size:11px;
}
.review-marker-host{
  position:relative !important;
}
.review-marker{
  position:absolute !important;
  top:-7px;
  right:-7px;
  z-index:80 !important;
  width:24px;
  height:24px;
  min-height:0 !important;
  padding:0 !important;
  border:2px solid #fff !important;
  border-radius:999px !important;
  background:#f5c952 !important;
  color:#533f0c !important;
  box-shadow:0 4px 10px rgba(87,64,13,.22) !important;
  font-size:9px !important;
  font-weight:900 !important;
  line-height:20px !important;
}
@media(max-width:520px){
  .review-composer,
  .review-list-sheet{
    width:calc(100% - 18px);
    bottom:calc(8px + env(safe-area-inset-bottom));
    border-radius:20px;
  }
  .review-mode-bar{
    width:calc(100% - 18px);
  }
}


/* Crescimento e vacinas */
.health-growth .tab-action-icon{
  background:#edf8ef;
  color:#4b8b5c;
}
.health-vaccine .tab-action-icon{
  background:#eaf3fb;
  color:#3f7ca8;
}
.growth-charts{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:14px 0;
}
.growth-chart-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px;
}
.growth-chart-card h3{
  margin:0 0 8px;
  font-size:13px;
}
.growth-chart{
  min-height:150px;
  color:var(--primary);
}
.growth-chart svg{
  display:block;
  width:100%;
  height:auto;
  max-height:170px;
}
.growth-chart svg circle{
  fill:currentColor;
}
.growth-chart-empty{
  min-height:120px;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:12px;
}
.growth-chart-latest{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-top:4px;
}
.growth-chart-latest strong{
  font-size:15px;
}
.growth-chart-latest span{
  font-size:11px;
  color:var(--muted);
}
.growth-record-item .schedule-main{
  display:grid;
  gap:3px;
}
@media (min-width:760px){
  .growth-charts{grid-template-columns:1fr 1fr;}
}


/* Atividades diárias e relatório */
.daily-summary-card{
  margin-top:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.daily-summary-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.daily-summary-head h2{margin:0;font-size:20px;letter-spacing:-.02em}
.daily-summary-sync{
  color:var(--muted);
  font-size:10px;
  white-space:nowrap;
  padding-top:4px;
}
.daily-summary-grid{
  display:grid;
  gap:8px;
}
.daily-summary-item{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border-radius:15px;
  background:color-mix(in srgb,var(--primary-soft) 35%,#fff);
}
.daily-summary-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--primary);
  font-size:18px;
  font-weight:800;
}
.daily-summary-label{
  min-width:0;
  flex:1;
}
.daily-summary-label strong{
  display:block;
  font-size:13px;
}
.daily-summary-label small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
}
.daily-counter{
  display:flex;
  gap:5px;
}
.daily-counter button,
.daily-sleep-button{
  border:0;
  min-width:34px;
  height:34px;
  border-radius:11px;
  background:#fff;
  color:var(--primary);
  font-weight:800;
  box-shadow:0 2px 8px rgba(53,78,94,.08);
}
.daily-counter button{
  font-size:20px;
  line-height:1;
}
.daily-sleep-button{
  min-width:76px;
  padding:0 11px;
  font-size:11px;
}
.daily-sleep-button.active{
  background:var(--primary);
  color:#fff;
}
.daily-counter button:disabled,
.daily-sleep-button:disabled{opacity:.5}
.daily-summary-report{
  margin:12px 2px 0;
  color:#596773;
  font-size:12px;
  line-height:1.45;
}

.daily-report-card{
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}
.daily-report-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.daily-report-heading h3{margin:0;font-size:19px}
.daily-report-icon{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:900;
}
.daily-report-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:16px;
}
.daily-report-metrics div{
  min-width:0;
  text-align:center;
  padding:10px 5px;
  border-radius:13px;
  background:color-mix(in srgb,var(--primary-soft) 32%,#fff);
}
.daily-report-metrics span{display:block;font-size:18px;margin-bottom:3px}
.daily-report-metrics strong{display:block;font-size:16px}
.daily-report-metrics small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
@media (max-width:390px){
  .daily-report-metrics{grid-template-columns:repeat(2,1fr)}
}

.report-date-nav{
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
}
.report-date-nav > button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:14px;
  min-height:44px;
}
.report-date-nav > button:first-child,
.report-date-nav > button:last-of-type{
  font-size:24px;
  color:var(--primary);
}
#reportDateButton{
  display:grid;
  place-items:center;
  padding:7px 12px;
}
#reportDateButton strong{font-size:14px}
#reportDateButton small{margin-top:2px;color:var(--muted);font-size:10px;text-transform:capitalize}
.report-date-nav button:disabled{opacity:.35}


.baby-title{
  display:flex;
  align-items:center;
  gap:9px;
}
.baby-title-avatar{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:11px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:20px;
  line-height:1;
}
.personalization-group{
  border:0;
  padding:0;
  margin:0 0 20px;
}
.personalization-group legend{
  margin-bottom:10px;
  color:var(--text);
  font-size:13px;
  font-weight:800;
}
.theme-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}
.theme-choice-grid label,
.avatar-choice-grid label{
  margin:0;
}
.theme-choice-grid input,
.avatar-choice-grid input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.theme-choice{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}
.theme-choice::before{
  content:"";
  width:12px;
  height:12px;
  margin-right:7px;
  border-radius:50%;
  background:#3f8fb8;
}
.theme-choice.mint::before{background:#3b9b79}
.theme-choice.rose::before{background:#d9688b}
.theme-choice.lavender::before{background:#7869c9}
.theme-choice-grid input:checked + .theme-choice{
  border-color:var(--primary);
  background:var(--primary-soft);
  color:var(--primary);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent);
}
.avatar-choice-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}
.avatar-choice-grid span{
  min-height:46px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-size:20px;
}
.avatar-choice-grid input:checked + span{
  border-color:var(--primary);
  background:var(--primary-soft);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent);
}
@media (max-width:390px){
  .avatar-choice-grid{grid-template-columns:repeat(3,1fr)}
}


.health-pediatric .tab-action-icon{
  background:var(--green-soft);
  color:var(--green);
}
.pediatric-summary-toolbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
  margin:18px 0 8px;
}
.pediatric-summary-toolbar label{margin:0}
.pediatric-summary-toolbar .secondary-button{
  min-height:46px;
  margin:0;
  white-space:nowrap;
}
.pediatric-summary-document{
  margin-top:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.pediatric-summary-loading{
  padding:28px 12px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.pediatric-document-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.pediatric-document-header p{
  margin:0 0 3px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.pediatric-document-header h3{margin:0;font-size:21px}
.pediatric-document-header > span{
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.pediatric-baby-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:14px 0;
}
.pediatric-baby-meta span{
  padding:10px 11px;
  border-radius:12px;
  background:var(--primary-soft);
  font-size:11px;
}
.pediatric-baby-meta strong{
  display:block;
  margin-bottom:2px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.pediatric-report-section{
  padding:14px 0;
  border-top:1px solid var(--line);
}
.pediatric-report-section h4{
  margin:0 0 10px;
  font-size:14px;
}
.pediatric-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.pediatric-metrics div{
  padding:10px 5px;
  border-radius:13px;
  background:color-mix(in srgb,var(--primary-soft) 38%,#fff);
  text-align:center;
}
.pediatric-metrics span{display:block;font-size:17px}
.pediatric-metrics strong{display:block;margin-top:2px;font-size:15px}
.pediatric-metrics small{display:block;color:var(--muted);font-size:9px}
.pediatric-average{
  margin:9px 0 0;
  color:var(--muted);
  font-size:11px;
}
.pediatric-report-section ul{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.pediatric-report-section li{
  padding:9px 10px;
  border-radius:11px;
  background:#f8fafb;
}
.pediatric-report-section li strong{
  display:block;
  font-size:11px;
}
.pediatric-report-section li span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}
.pediatric-report-section .pediatric-empty{
  color:var(--muted);
  font-size:11px;
}
.pediatric-summary-document footer{
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
.pediatric-summary-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.pediatric-summary-actions button{margin:0}
@media (max-width:430px){
  .pediatric-summary-toolbar{grid-template-columns:1fr}
  .pediatric-metrics{grid-template-columns:repeat(2,1fr)}
  .pediatric-summary-actions{grid-template-columns:1fr}
  .pediatric-document-header{display:block}
  .pediatric-document-header > span{display:block;margin-top:6px}
}
@media print{
  body.printing-pediatric-summary > *{display:none!important}
  body.printing-pediatric-summary #appView{display:block!important}
  body.printing-pediatric-summary #appView > *{display:none!important}
  body.printing-pediatric-summary #pediatricSummaryPage{
    display:block!important;
    position:static!important;
    width:100%!important;
    height:auto!important;
    overflow:visible!important;
    background:#fff!important;
  }
  body.printing-pediatric-summary #pediatricSummaryPage .feature-page-inner{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
  }
  body.printing-pediatric-summary .feature-page-header,
  body.printing-pediatric-summary .feature-intro,
  body.printing-pediatric-summary .pediatric-summary-toolbar,
  body.printing-pediatric-summary #pediatricSummaryStatus,
  body.printing-pediatric-summary .pediatric-summary-actions,
  body.printing-pediatric-summary .feature-warning{
    display:none!important;
  }
  body.printing-pediatric-summary .pediatric-summary-document{
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
  }
}


.baby-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.baby-title-row .baby-title{
  margin-top:0;
  display:flex;
  align-items:center;
}
.baby-switcher-button{
  flex:0 0 21px;
  width:21px;
  height:21px;
  min-width:21px;
  min-height:21px;
  padding:0;
  border:1.5px solid color-mix(in srgb,var(--primary) 48%,#fff);
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary);
  display:grid;
  place-items:center;
  box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 18%,transparent);
  transition:background .15s ease,transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.baby-switcher-button svg{
  width:11px;
  height:11px;
  display:block;
  transform:translateY(1px);
  transition:transform .18s ease;
}
.baby-switcher-button:hover,
.baby-switcher-button:focus-visible{
  background:color-mix(in srgb,var(--primary-soft) 72%,#fff);
  border-color:var(--primary);
  box-shadow:0 6px 16px color-mix(in srgb,var(--primary) 24%,transparent);
  outline:none;
}
.baby-switcher-button[aria-expanded="true"]{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.baby-switcher-button[aria-expanded="true"] svg{
  transform:rotate(180deg) translateY(-1px);
}
.baby-switcher-button:active{
  transform:scale(.95);
}
.family-babies-list{
  display:grid;
  gap:8px;
}
.baby-list-loading{
  padding:20px 10px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.family-baby-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  text-align:left;
}
.family-baby-item.active{
  background:var(--primary-soft);
  border-color:color-mix(in srgb,var(--primary) 35%,var(--line));
}
.family-baby-avatar{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:18px;
}
.family-baby-copy{
  min-width:0;
  flex:1;
}
.family-baby-copy strong,
.family-baby-copy small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.family-baby-copy strong{font-size:13px}
.family-baby-copy small{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.family-baby-state{
  flex:0 0 auto;
  color:var(--primary);
  font-size:10px;
  font-weight:800;
}
.add-baby-trigger{
  width:100%;
  margin-top:12px;
}
.add-baby-form{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.add-baby-form h3{
  margin:0 0 14px;
  font-size:17px;
}
.add-baby-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.add-baby-actions button{margin:0}
@media (max-width:390px){
  .add-baby-actions{grid-template-columns:1fr}
}


.health-feeding .tab-action-icon{
  background:var(--blue-soft);
  color:var(--blue);
}
.feeding-intro .feature-intro-icon{
  background:var(--blue-soft);
  color:var(--blue);
}
.feeding-overview{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:9px;
  margin:0 0 16px;
}
.feeding-overview > div{
  padding:12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.feeding-overview span{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:4px;
}
.feeding-overview strong{
  display:block;
  font-size:12px;
  line-height:1.35;
}
.feeding-row-actions{
  display:flex;
  align-items:center;
  gap:2px;
}
.feeding-edit{
  border:0;
  background:transparent;
  color:var(--primary);
  font-size:17px;
  padding:6px;
}
.feeding-form-actions{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:9px;
}
.feeding-form-actions .secondary-button,
.feeding-form-actions .primary-button{margin:0}
.feeding-form-actions .secondary-button[hidden] + .primary-button{grid-column:1/-1}
@media(max-width:420px){
  .feeding-overview{grid-template-columns:1fr}
  .feeding-form-actions{grid-template-columns:1fr}
}


/* Fase 2 — hardening mobile, teclado, toque e acessibilidade */
:root{
  --visual-viewport-height:100dvh;
  --visual-viewport-top:0px;
  --mobile-touch:44px;
}

html,
body{
  min-height:100%;
}

body{
  min-height:100dvh;
}

button,
a,
input,
select,
textarea{
  touch-action:manipulation;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled{
  opacity:.58;
}

.network-status{
  position:fixed;
  z-index:120;
  top:calc(8px + env(safe-area-inset-top));
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 28px);
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  box-shadow:0 10px 28px rgba(24,44,56,.18);
  backdrop-filter:blur(14px);
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  pointer-events:none;
}
.network-status.offline{background:rgba(126,82,32,.94)}
.network-status.online{background:rgba(34,121,92,.94)}

.feature-page{
  height:100dvh;
  max-height:var(--visual-viewport-height);
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.feature-page-inner{
  min-height:100%;
  padding-bottom:calc(32px + env(safe-area-inset-bottom));
  scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom));
}

.bottom-sheet,
.agenda-sheet,
.baby-details-sheet,
.baby-switcher-sheet,
.sharing-sheet,
.personalization-sheet,
.privacy-sheet{
  max-height:min(94dvh,var(--visual-viewport-height));
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom));
}

.bottom-sheet > .sheet-header,
.agenda-sheet > .sheet-header,
.baby-details-sheet > .sheet-header,
.baby-switcher-sheet > .sheet-header,
.sharing-sheet > .sheet-header,
.personalization-sheet > .sheet-header,
.privacy-sheet > .sheet-header{
  position:sticky;
  top:-1px;
  z-index:4;
  padding:8px 0 10px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
}

.back-button,
.close-button,
.password-toggle,
.appointment-delete,
.schedule-delete,
.prescription-edit,
.feeding-edit,
.daily-counter button,
.daily-sleep-button,
.calendar-toolbar button{
  min-width:var(--mobile-touch);
  min-height:var(--mobile-touch);
}

.daily-counter button{
  width:44px;
  height:44px;
}

.daily-sleep-button{
  min-width:84px;
  height:44px;
}

.schedule-delete,
.prescription-edit,
.appointment-delete,
.feeding-edit{
  display:grid;
  place-items:center;
  padding:0;
}

.appointment-time-field{
  min-width:0;
  margin-bottom:13px;
}
.appointment-time-field > label:first-child{
  display:block;
  margin-bottom:0;
  color:#5f6e79;
  font-size:11px;
  font-weight:700;
}

.profile-menu{
  top:calc(68px + env(safe-area-inset-top));
}

.keyboard-open .bottom-nav{
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,calc(100% + 36px));
}

/* Quando o teclado abre, a Agenda vira uma superfície integral da viewport
   visível. Isso impede que cards ou formulários da tela anterior apareçam
   pelas bordas enquanto o navegador redimensiona a área útil. */
.keyboard-open .agenda-sheet{
  top:var(--visual-viewport-top);
  bottom:auto;
  height:var(--visual-viewport-height);
  max-height:var(--visual-viewport-height);
  border-radius:0;
  background:#fff;
  padding-bottom:calc(18px + env(safe-area-inset-bottom));
}

.keyboard-open .sheet-backdrop{
  background:#fff;
}

.keyboard-open .toast{
  bottom:14px;
}

.status-card,
.daily-summary-card,
.timeline-section,
.feature-form,
.feature-intro,
.schedule-item,
.tab-action-card{
  overflow-wrap:anywhere;
}

@media(max-width:767px){
  /* Evita o zoom automático do Safari/iOS ao focar campos menores que 16 px. */
  input,
  select,
  textarea{
    font-size:16px;
  }

  .app-shell,
  .app-tab-page,
  .feature-page-inner{
    padding-left:max(15px,env(safe-area-inset-left));
    padding-right:max(15px,env(safe-area-inset-right));
  }

  .bottom-nav{
    bottom:max(8px,env(safe-area-inset-bottom));
    padding-bottom:7px;
  }

  .app-shell,
  .app-tab-page{
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }

  .feature-page-header{
    padding-left:max(15px,env(safe-area-inset-left));
    padding-right:max(15px,env(safe-area-inset-right));
  }

  .home-hero-top{
    gap:10px;
  }

  .baby-title-row{
    min-width:0;
  }

  .baby-title{
    min-width:0;
  }

  .baby-title #babyName{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .toast{
    bottom:calc(94px + env(safe-area-inset-bottom));
  }
}

@media(max-width:360px){
  .daily-summary-item{
    gap:8px;
    padding-left:8px;
    padding-right:8px;
  }

  .daily-summary-icon{
    flex-basis:32px;
    width:32px;
    height:32px;
  }

  .daily-counter{
    gap:3px;
  }

  .daily-counter button{
    min-width:40px;
    width:40px;
  }

  .calendar-weekdays,
  .calendar-grid{
    gap:2px;
  }

  .calendar-day{
    min-height:38px;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}


.role-readonly-note{
  margin:0 0 14px;
  padding:12px 13px;
  border:1px solid color-mix(in srgb,var(--primary) 20%,var(--line));
  border-radius:14px;
  background:var(--primary-soft);
  color:var(--primary-strong);
  font-size:11px;
  font-weight:700;
  line-height:1.5;
}

body[data-member-role="caregiver"] #medicinePage .schedule-delete,
body[data-member-role="caregiver"] #growthPage .schedule-delete,
body[data-member-role="caregiver"] #prescriptionsPage .prescription-actions,
body[data-member-role="caregiver"] #agendaSheet .appointment-delete{
  display:none!important;
}


.notification-privacy-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:10px 0 16px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  cursor:pointer;
}
.notification-privacy-option input{
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin:1px 0 0;
}
.notification-privacy-option span{
  min-width:0;
  display:grid;
  gap:3px;
}
.notification-privacy-option strong{
  font-size:12px;
  line-height:1.35;
}
.notification-privacy-option small{
  color:#6d7a83;
  font-size:10px;
  line-height:1.45;
}


/* Fluxo de convite: separado do login para evitar aceite automático. */
.invite-panel{
  margin:0 0 18px;
  padding:16px;
  border:1px solid rgba(31,94,125,.16);
  border-radius:18px;
  background:rgba(238,247,251,.72);
}
.invite-panel[hidden]{display:none}
.invite-kicker{
  margin:0 0 5px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#47758b;
}
.invite-panel h2{
  margin:0 0 7px;
  font-size:1.08rem;
}
.invite-panel > p:not(.invite-kicker){
  margin:0 0 12px;
}
.invite-account{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.78);
  font-size:.9rem;
  overflow-wrap:anywhere;
}
.invite-panel .primary-button{width:100%}
.invite-panel .auth-link{width:100%;margin-top:8px}


/* Home refresh — visual leve, acolhedor e mobile-first, sem foto do bebê */
#homeShell{
  max-width:760px;
  margin:0 auto;
}
#homeShell .home-hero{
  position:relative;
  margin:0 0 14px;
  padding:18px 18px 17px;
  border:1px solid color-mix(in srgb,var(--primary) 10%,var(--line));
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 15%,color-mix(in srgb,var(--primary-soft) 78%,transparent) 0 44px,transparent 45px),
    linear-gradient(145deg,#fff 0%,color-mix(in srgb,var(--primary-soft) 38%,#fff) 100%);
  box-shadow:0 14px 34px rgba(35,56,72,.07);
  overflow:hidden;
}
#homeShell .home-hero::after{
  content:"";
  position:absolute;
  width:84px;
  height:84px;
  right:-34px;
  bottom:-44px;
  border-radius:50%;
  background:color-mix(in srgb,var(--primary) 7%,transparent);
  pointer-events:none;
}
#homeShell .eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--primary);
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
#homeShell .baby-title{
  margin-top:10px;
  font-size:clamp(25px,7vw,34px);
  letter-spacing:-.035em;
}
#homeShell .baby-title-avatar{
  width:35px;
  height:35px;
  border-radius:12px;
  background:var(--primary-soft);
  font-size:18px;
}
#homeShell .home-hero-copy{
  max-width:310px;
  margin-top:5px;
  color:#71808a;
  font-size:12px;
  line-height:1.45;
}
#homeShell .avatar-button{
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 8px 20px rgba(35,56,72,.09);
}
.home-quick-panel{
  margin:0 0 14px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 28px rgba(35,56,72,.055);
}
.home-quick-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.home-quick-heading .section-kicker{margin-bottom:2px}
.home-quick-heading h2{
  margin:0;
  font-size:17px;
  letter-spacing:-.02em;
}
.home-quick-heading > span{
  padding:5px 8px;
  border-radius:999px;
  background:#f5f7f8;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
}
.home-quick-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.home-quick-action{
  min-width:0;
  min-height:88px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 5px;
  border:0;
  border-radius:18px;
  color:#263844;
  font:inherit;
  box-shadow:inset 0 0 0 1px rgba(38,56,68,.035);
  transition:transform .14s ease,box-shadow .14s ease;
}
.home-quick-action:active{transform:scale(.96)}
.home-quick-action:focus-visible{
  outline:3px solid color-mix(in srgb,var(--primary) 22%,transparent);
  outline-offset:2px;
}
.home-quick-action strong{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10px;
  white-space:nowrap;
}
.home-quick-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.7);
  font-size:20px;
  box-shadow:0 5px 14px rgba(35,56,72,.06);
}
.quick-feeding{background:#eef6ff}
.quick-sleep{background:#f3f0ff}
.quick-pee{background:#eaf9f5}
.quick-poop{background:#fff4e9}

#homeShell .status-card,
#homeShell .daily-summary-card{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 28px rgba(35,56,72,.05);
}
#homeShell .status-card{margin-bottom:14px}
#homeShell .mini-status{
  border-radius:16px;
  background:#fafbfc;
}
#homeShell .daily-summary-grid{
  gap:8px;
}
#homeShell .daily-summary-item{
  border:0;
  border-radius:17px;
  background:#f8fafb;
}
#homeShell .daily-summary-item:nth-child(1){background:#eef6ff}
#homeShell .daily-summary-item:nth-child(2){background:#eaf9f5}
#homeShell .daily-summary-item:nth-child(3){background:#fff4e9}
#homeShell .daily-summary-item:nth-child(4){background:#f3f0ff}
#homeShell .daily-summary-icon{
  background:rgba(255,255,255,.72);
  box-shadow:none;
}
#homeShell .daily-counter button,
#homeShell .daily-sleep-button{
  border:0;
  box-shadow:0 4px 12px rgba(35,56,72,.07);
}
#homeShell .daily-summary-sync{
  padding:5px 8px;
  border-radius:999px;
  background:#f5f7f8;
}

@media(max-width:390px){
  .home-quick-actions{gap:6px}
  .home-quick-action{min-height:80px;padding:8px 3px}
  .home-quick-icon{width:38px;height:38px;font-size:18px}
  .home-quick-action strong{font-size:9px}
  #homeShell .home-hero{padding:16px}
}


/* Organização familiar + navegação inferior redesenhada */
.organization-page{max-width:760px;margin:0 auto}
.organization-header{padding-bottom:10px}
.organization-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  padding:4px;
  margin:4px 0 14px;
  border-radius:16px;
  background:#eef2f4;
}
.organization-switch button{
  min-height:43px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#71808a;
  font:inherit;
  font-size:12px;
  font-weight:800;
}
.organization-switch button.active{
  background:#fff;
  color:var(--primary);
  box-shadow:0 4px 14px rgba(35,56,72,.08);
}
.organization-switch button span{
  display:inline-grid;
  min-width:20px;
  height:20px;
  margin-left:4px;
  place-items:center;
  border-radius:999px;
  background:var(--primary-soft);
  font-size:9px;
}
.organization-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-bottom:12px;
}
.organization-summary>div{
  padding:14px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
}
.organization-summary span{display:block;color:var(--muted);font-size:10px}
.organization-summary strong{display:block;margin-top:3px;font-size:24px}
.organization-alert-summary strong{color:#b36b38}
.organization-list{display:grid;gap:9px}
.organization-empty{
  padding:28px 18px;
  border:1px dashed var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--muted);
  text-align:center;
  font-size:12px;
}
.organization-empty small{display:block;margin-top:5px;line-height:1.45}
.organization-form{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(35,56,72,.04);
}
.organization-form h3{margin:0 0 14px;font-size:16px}
.stock-item{
  padding:13px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.stock-item.low{
  border-color:#f0d4bd;
  background:#fffaf6;
}
.stock-main{display:flex;align-items:center;gap:10px}
.stock-main>div{min-width:0;flex:1}
.stock-main strong,.stock-main small{display:block}
.stock-main strong{font-size:13px}
.stock-main small{margin-top:3px;color:var(--muted);font-size:9px}
.stock-state{
  flex:0 0 34px;
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#eaf9f5;color:#25856d;font-weight:900;
}
.stock-item.low .stock-state{background:#fff0e3;color:#b36b38}
.stock-controls{
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  gap:6px;
  margin-top:12px;
}
.stock-controls button{
  width:44px;height:44px;border:0;border-radius:13px;
  background:#f1f4f6;color:var(--text);font-size:20px;
}
.stock-controls>span{text-align:center}
.stock-controls>span strong{display:block;font-size:19px}
.stock-controls>span small{display:block;color:var(--muted);font-size:9px}
.stock-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #eef1f2;
}
.stock-actions>button:first-child{
  flex:1;min-height:38px;border:0;border-radius:12px;
  background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:800;
}
.organization-delete{
  flex:0 0 38px;width:38px;height:38px;border:0;border-radius:12px;
  background:#fff0ed;color:#b65d50;font-size:18px;
}
.shopping-add-form{margin-top:0}
.shopping-add-row{display:grid;grid-template-columns:1fr 48px;gap:8px}
.shopping-add-row input{margin:0}
.shopping-add-row button{min-height:48px;margin:0;padding:0;font-size:20px}
.shopping-item{
  min-height:60px;
  display:grid;
  grid-template-columns:40px 1fr 38px;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
}
.shopping-check{
  width:40px;height:40px;border:2px solid #cfd9de;border-radius:13px;
  background:#fff;color:#fff;font-weight:900;
}
.shopping-item.purchased{opacity:.65}
.shopping-item.purchased .shopping-check{border-color:var(--primary);background:var(--primary)}
.shopping-item.purchased strong{text-decoration:line-through}
.shopping-item strong,.shopping-item small{display:block}
.shopping-item strong{font-size:12px}
.shopping-item small{margin-top:2px;color:var(--muted);font-size:9px}
.clear-purchased-button{width:100%;margin-top:12px}

/* Substitui a antiga barra cinza por uma dock compacta e limpa. */
.bottom-nav{
  bottom:max(10px,env(safe-area-inset-bottom));
  width:min(calc(100% - 30px),480px);
  padding:5px;
  border:1px solid rgba(218,228,233,.82);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 36px rgba(34,54,67,.13);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  grid-template-columns:repeat(4,1fr);
  gap:3px;
}
.nav-item{
  min-height:54px;
  padding:5px 3px 4px;
  border-radius:17px;
  color:#87939b;
  font-size:9px;
  font-weight:800;
}
.nav-item span{
  width:28px;height:28px;
  display:grid;
  place-items:center;
  margin:0 auto 1px;
  border-radius:10px;
  font-size:17px;
  line-height:1;
}
.nav-item.active{
  color:var(--primary);
  background:transparent;
}
.nav-item.active span{
  background:var(--primary-soft);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 8%,transparent);
}

/* Perfil com contraste forte no hero */
.home-hero .avatar-button{
  background:#fff;
  color:#276e91;
  border:2px solid rgba(255,255,255,.96);
  box-shadow:0 7px 20px rgba(21,61,82,.22);
  text-shadow:none;
  opacity:1;
  font-size:14px;
  font-weight:900;
}

/* Escolha explícita da fralda que está em uso */
.stock-auto-use-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:2px 0 14px;
  padding:12px;
  border-radius:14px;
  background:#f6f9fa;
}
.stock-auto-use-option input{
  width:20px;
  height:20px;
  flex:0 0 20px;
  margin:1px 0 0;
}
.stock-auto-use-option span{min-width:0}
.stock-auto-use-option strong,.stock-auto-use-option small{display:block}
.stock-auto-use-option strong{color:var(--text);font-size:11px}
.stock-auto-use-option small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}
.stock-actions{flex-wrap:wrap}
.stock-actions .stock-auto-button{
  min-height:38px;
  padding:0 11px;
  border:0;
  border-radius:12px;
  background:#f1f4f6;
  color:#65727a;
  font-size:9px;
  font-weight:800;
}
.stock-actions .stock-auto-button.active{
  background:#e9f8f3;
  color:#267e68;
}

/* Mala do bebê */
.organization-switch{grid-template-columns:repeat(3,1fr)}
.bag-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 13px}
.bag-toolbar h3{margin:2px 0 0;font-size:18px}
.compact-button{width:auto;min-height:40px;padding:0 12px;font-size:10px}
.bag-list{display:grid;gap:9px}
.bag-card{
  width:100%;min-height:78px;display:grid;grid-template-columns:42px 1fr 18px;align-items:center;gap:10px;
  padding:12px;border:1px solid var(--line);border-radius:18px;background:#fff;text-align:left;color:var(--text);
}
.bag-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#f2efff;color:var(--primary);font-size:18px}
.bag-card-copy{min-width:0}
.bag-card-copy strong,.bag-card-copy small{display:block}
.bag-card-copy strong{font-size:13px}
.bag-card-copy small{margin-top:3px;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bag-card-progress{display:block;height:4px;margin-top:8px;border-radius:99px;background:#edf1f3;overflow:hidden}
.bag-card-progress i{display:block;height:100%;border-radius:inherit;background:var(--primary)}
.bag-form{margin-top:0}
.bag-form-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.bag-form-heading h3{margin:0}
.bag-detail{padding-bottom:6px}
.bag-detail-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:10px}
.bag-detail-header h3{margin:0;font-size:17px}
.bag-detail-header p{margin:3px 0 0;color:var(--muted);font-size:9px}
.bag-back-button{width:auto;min-height:38px;padding:0 10px;font-size:10px}
.icon-action-button{width:38px;height:38px;border:0;border-radius:12px;background:#f1f4f6;color:var(--text);font-size:15px}
.bag-progress{height:7px;margin:0 0 14px;border-radius:99px;background:#edf1f3;overflow:hidden}
.bag-progress span{display:block;width:0;height:100%;border-radius:inherit;background:var(--primary);transition:width .2s ease}
.bag-item-form{margin-bottom:12px}
.bag-item{min-height:60px;display:grid;grid-template-columns:40px 1fr 38px;align-items:center;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:17px;background:#fff}
.bag-item.checked{opacity:.68}
.bag-item.checked .shopping-check{border-color:var(--primary);background:var(--primary)}
.bag-item.checked strong{text-decoration:line-through}
.bag-item strong,.bag-item small{display:block}
.bag-item strong{font-size:12px}
.bag-item small{margin-top:2px;color:var(--muted);font-size:9px}
.bag-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.danger-outline-button{min-height:44px;border:1px solid #efc7c0;border-radius:13px;background:#fff7f5;color:#ad594d;font-size:10px;font-weight:800}
@media(max-width:390px){
  .organization-switch button{font-size:10px}
  .bag-toolbar{align-items:flex-end}
  .compact-button{padding:0 9px}
}

/* Despesas */
.organization-switch{grid-template-columns:repeat(4,1fr)}
.expense-month-row{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;margin-bottom:10px}
.expense-month-row>button{width:42px;height:42px;border:0;border-radius:13px;background:#f1f4f6;color:var(--text);font-size:22px}
.expense-month-row>div{text-align:center}
.expense-month-row span,.expense-month-row strong{display:block}
.expense-month-row span{color:var(--muted);font-size:9px}
.expense-month-row strong{margin-top:2px;font-size:14px;text-transform:capitalize}
.expense-summary{display:grid;grid-template-columns:1.4fr 1fr;gap:9px;margin-bottom:12px}
.expense-summary>div{padding:14px;border:1px solid var(--line);border-radius:17px;background:#fff}
.expense-summary span{display:block;color:var(--muted);font-size:9px}
.expense-summary strong{display:block;margin-top:4px;font-size:19px}
.expense-form{margin-top:0;margin-bottom:12px}
.expense-item{min-height:66px;display:grid;grid-template-columns:40px minmax(0,1fr) auto 38px;align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--line);border-radius:17px;background:#fff}
.expense-category-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#eef8f5;color:#267e68;font-size:9px;font-weight:900}
.expense-item>div{min-width:0}
.expense-item>div strong,.expense-item>div small{display:block}
.expense-item>div strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expense-item>div small{margin-top:3px;color:var(--muted);font-size:9px}
.expense-value{font-size:11px;white-space:nowrap}
@media(max-width:390px){
 .organization-switch{gap:2px}
 .organization-switch button{padding-left:2px;padding-right:2px;font-size:9px}
 .expense-item{grid-template-columns:36px minmax(0,1fr) auto 34px;gap:7px}
 .expense-category-icon{width:36px;height:36px}
 .expense-item .organization-delete{width:34px;height:34px;flex-basis:34px}
}

.expense-stock-option{display:flex;align-items:flex-start;gap:10px;margin:3px 0 10px;padding:12px;border-radius:14px;background:#f4f8f7}
.expense-stock-option input{width:20px;height:20px;flex:0 0 20px;margin:1px 0 0}
.expense-stock-option strong,.expense-stock-option small{display:block}
.expense-stock-option strong{font-size:11px;color:var(--text)}
.expense-stock-option small{margin-top:3px;font-size:9px;line-height:1.4;color:var(--muted)}
.expense-stock-fields{padding:11px;margin-bottom:10px;border:1px solid var(--line);border-radius:14px;background:#fbfcfc}
.stock-form-note{margin:-4px 0 12px;color:var(--muted);font-size:9px;line-height:1.45}

/* Refinos de contraste e estoque */
.baby-title-row{gap:4px}
.baby-title-row .baby-title{gap:6px}
.baby-switcher-button{margin-left:-1px}
body[data-theme="boy"]{
  --bg:#f5f8fa;
  --primary:#287aa7;
  --primary-soft:#e8f2f7;
  --line:#dce5ea;
  --rose:#8b668f;
  --rose-soft:#f3edf5;
  --coral:#c77958;
  --coral-soft:#faeee8;
}
body[data-theme="boy"] .home-hero{
  --home-hero-a:#286f96;
  --home-hero-b:#557d92;
}
body[data-theme="boy"] .stock-state{background:#edf3f6;color:#376d88}
.stock-edit-button{flex:0 0 38px!important;width:38px!important;min-height:38px!important;background:#eef3f6!important;color:#486674!important;font-size:15px!important}
.stock-edit-sheet{position:fixed;inset:0;z-index:1200;display:grid;place-items:end center;padding:18px;background:rgba(30,42,50,.32);backdrop-filter:blur(4px)}
.stock-edit-sheet[hidden]{display:none!important}
.stock-edit-card{width:min(100%,520px);padding:18px;border-radius:24px;background:#fff;box-shadow:0 20px 60px rgba(26,43,54,.22)}
.stock-edit-card label{display:block;margin-top:10px}

/* Contraste consistente entre tema, superfícies e ações */
.baby-title-row{gap:0!important}
.baby-title-row .baby-title{gap:6px!important}
.baby-switcher-button{margin-left:-5px!important}

body[data-theme] .nav-item.active{
  background:#fff;
  color:var(--primary);
  box-shadow:0 3px 12px rgba(35,56,72,.10),inset 0 0 0 1px color-mix(in srgb,var(--primary) 28%,#dfe9ef);
}
body[data-theme] .primary-button{
  background:var(--primary);
  color:#fff;
  box-shadow:0 8px 18px color-mix(in srgb,var(--primary) 24%,transparent);
}
body[data-theme] .theme-choice-grid input:checked + .theme-choice,
body[data-theme] .avatar-choice-grid input:checked + span{
  background:#fff;
  border-color:var(--primary);
  color:var(--primary);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 22%,transparent);
}
body[data-theme] .organization-switch button.active{
  background:#fff;
  color:var(--primary);
  box-shadow:0 3px 12px rgba(35,56,72,.11),inset 0 0 0 1px color-mix(in srgb,var(--primary) 22%,#dfe9ef);
}
body[data-theme] .stock-actions>button:first-child{
  background:#fff;
  color:var(--primary);
  border:1px solid color-mix(in srgb,var(--primary) 28%,#dfe9ef);
}
body[data-theme] .baby-title-avatar{
  background:#fff;
  color:var(--primary);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 25%,#dfe9ef);
}
body[data-theme] .baby-switcher-button{
  background:#fff;
  color:var(--primary);
  border-color:color-mix(in srgb,var(--primary) 38%,#dfe9ef);
}

/* Lista de estoque compacta e seletor do bebê */
.baby-title-row .baby-title{gap:3px!important}
.baby-switcher-button{margin-left:-9px!important}

#stockList.organization-list{
  gap:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
#stockList .stock-item{
  padding:13px 12px;
  border:0;
  border-radius:0;
  background:#fff;
}
#stockList .stock-item + .stock-item{border-top:1px solid #e8eef1}
#stockList .stock-item.low{background:#fffaf6}
.stock-row-top{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:10px}
.stock-row-top .stock-main{min-width:0}
.stock-row-top .stock-state{flex-basis:30px;width:30px;height:30px;border-radius:10px;font-size:11px}
.stock-quantity{text-align:right;min-width:48px}
.stock-quantity strong,.stock-quantity small{display:block}
.stock-quantity strong{font-size:17px;line-height:1.05}
.stock-quantity small{margin-top:2px;color:var(--muted);font-size:8px}
.stock-edit-button{
  width:34px!important;height:34px!important;min-height:34px!important;min-width:34px!important;
  padding:0!important;display:grid!important;place-items:center!important;border:1px solid var(--line)!important;
  border-radius:11px!important;background:#fff!important;color:#607681!important;box-shadow:none!important;
}
.stock-edit-button svg{width:15px;height:15px}
.stock-row-actions{display:flex;align-items:center;gap:7px;margin:9px 0 0 40px}
.stock-row-actions button{min-height:32px;border-radius:10px;padding:0 10px;font-size:9px;font-weight:800}
.stock-row-actions>button:first-child{border:1px solid var(--line);background:#f7f9fa;color:#4f6875}
.stock-delete-link{margin-left:auto;border:0!important;background:transparent!important;color:#a56c63!important;padding:0 4px!important}
.stock-row-actions .stock-auto-button{min-height:32px}

/* Nome do bebê sempre legível no hero */
.home-hero .baby-title-row .baby-title,
.home-hero .baby-title-row #babyName{
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  -webkit-text-fill-color:#fff;
}
.home-hero .baby-title-row{gap:5px!important}
.home-hero .baby-switcher-button{margin-left:0!important}

/* O hero atual é claro: nome do bebê precisa usar texto escuro */
#homeShell .home-hero .baby-title-row #babyName{
  display:inline-block!important;
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text)!important;
  opacity:1!important;
  visibility:visible!important;
  font-weight:800!important;
}
#homeShell .home-hero .baby-title-row .baby-title{color:var(--text)!important}

/* Controle discreto do item de fralda atualmente em uso */
.stock-row-actions .stock-auto-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#71808a;
  box-shadow:none;
  font-size:9px;
  font-weight:800;
}
.stock-row-actions .stock-auto-button.active{
  border-color:color-mix(in srgb,var(--primary) 26%,var(--line));
  background:color-mix(in srgb,var(--primary) 7%,#fff);
  color:var(--primary);
}
.stock-auto-dot{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#aab5bb;
}
.stock-auto-button.active .stock-auto-dot{
  background:var(--primary);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent);
}

/* Cabeçalho do bebê: espaçamento equilibrado e tipografia mais leve */
#homeShell .home-hero .baby-title-row{
  gap:7px!important;
}
#homeShell .home-hero .baby-title{
  gap:8px!important;
  font-family:inherit;
  font-size:28px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.025em;
}
#homeShell .home-hero .baby-title-row #babyName{
  font-family:inherit!important;
  font-size:inherit!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
#homeShell .home-hero .baby-switcher-button{
  margin-left:0!important;
}

/* Cabeçalho v26: mudança visual explícita */
#homeShell .home-hero .baby-title-row{gap:12px!important}
#homeShell .home-hero .baby-title{gap:10px!important}
#homeShell .home-hero #babyName{
  font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Segoe UI",sans-serif!important;
  font-size:25px!important;
  font-weight:600!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
}
#homeShell .home-hero .baby-switcher-button{margin:0!important}

/* Login e cabeçalho principal v27 */
.auth-view{
  place-items:center;
  background:
    radial-gradient(circle at 12% 8%,color-mix(in srgb,var(--primary) 10%,transparent),transparent 30%),
    linear-gradient(180deg,#f8fbfc 0%,var(--bg) 100%);
}
.auth-card{
  border:0;
  border-radius:30px;
  padding:28px 24px 24px;
  box-shadow:0 22px 60px rgba(37,70,88,.10);
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:28px;
  color:var(--text);
  font-size:18px;
  font-weight:800;
  letter-spacing:-.03em;
}
.auth-brand-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--primary);
  color:#fff;
  font-size:16px;
  font-weight:850;
  box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 22%,transparent);
}
.auth-heading{margin-bottom:26px}
.auth-card .auth-kicker{
  margin:0 0 8px;
  font-size:10px;
  letter-spacing:.12em;
}
.auth-card .auth-heading h1{
  max-width:390px;
  margin:0 0 10px;
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.045em;
}
.auth-card .auth-subtitle{
  max-width:390px;
  margin:0;
  font-size:13px;
  line-height:1.55;
}
.auth-form label{
  color:#64727c;
  font-size:11px;
  font-weight:750;
}
.auth-form input{
  margin-top:6px;
  min-height:50px;
  border-radius:15px;
  background:#f8fafb;
}
.auth-form .primary-button{
  min-height:50px;
  margin-top:4px;
  border-radius:15px;
}
.auth-footer-note{
  margin:20px 0 0;
  text-align:center;
  color:#98a4ab;
  font-size:10px;
}
@media(max-width:480px){
  .auth-view{padding-left:14px;padding-right:14px}
  .auth-card{padding:25px 20px 22px;border-radius:26px}
  .auth-brand{margin-bottom:24px}
  .auth-card .auth-heading h1{font-size:27px}
}

/* Home: nome como foco; avatar deixa de competir visualmente */
#homeShell .home-hero .baby-title{
  gap:0!important;
}
#homeShell .home-hero .baby-title-avatar{
  display:none!important;
}
#homeShell .home-hero .baby-title-row{
  gap:10px!important;
  align-items:center;
}
#homeShell .home-hero #babyName{
  font-family:inherit!important;
  font-size:29px!important;
  font-weight:750!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
}
#homeShell .home-hero .baby-switcher-button{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:9px!important;
}
#homeShell .home-hero .baby-switcher-button svg{
  width:16px!important;
  height:16px!important;
}
#homeShell .home-hero-copy{
  max-width:280px;
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
}

/* Login v29 — composição central, leve e coerente com o app */
.auth-view{
  background:
    radial-gradient(circle at 50% -8%,color-mix(in srgb,var(--primary) 15%,transparent),transparent 34%),
    linear-gradient(180deg,#f7fbfd 0%,#eef4f6 100%);
}
.auth-card{
  position:relative;
  overflow:hidden;
  padding:30px 24px 24px;
  border:1px solid rgba(255,255,255,.9);
  background:rgba(255,255,255,.95);
  box-shadow:0 24px 65px rgba(45,74,89,.11);
}
.auth-card::before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  left:50%;
  top:-125px;
  transform:translateX(-50%);
  border-radius:50%;
  background:color-mix(in srgb,var(--primary) 9%,transparent);
  pointer-events:none;
}
.auth-brand-centered{
  position:relative;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  margin:0 0 22px;
  font-size:24px;
  letter-spacing:-.045em;
}
.auth-brand-centered .auth-brand-mark{
  width:46px;
  height:46px;
  border-radius:15px;
  font-size:20px;
}
.auth-heading-centered{
  margin:0 0 22px;
  text-align:center;
}
.auth-card .auth-heading-centered h1{
  margin:0 0 5px;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.035em;
}
.auth-card .auth-heading-centered .auth-subtitle{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.auth-card .auth-form{
  margin-top:0;
}
.auth-card .auth-divider{
  margin:16px 0;
}
.auth-card #toggleAuthMode{
  padding-top:17px;
  font-size:12px;
}
@media(max-width:480px){
  .auth-card{padding:27px 19px 21px}
  .auth-brand-centered{margin-bottom:19px}
}

/* Rotina inteligente v30 */
.organization-switch{overflow-x:auto;scrollbar-width:none}.organization-switch::-webkit-scrollbar{display:none}.organization-switch button{flex:0 0 auto}
.quick-exit-list{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 16px;scrollbar-width:none}.quick-exit-list::-webkit-scrollbar{display:none}.quick-exit-heading{min-width:112px;display:flex;flex-direction:column;justify-content:center}.quick-exit-heading span{font-size:12px;font-weight:750}.quick-exit-heading small{font-size:10px;color:var(--muted);line-height:1.25;margin-top:2px}.quick-exit-list button{min-width:105px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:12px;display:flex;align-items:center;gap:8px;text-align:left;box-shadow:0 5px 18px rgba(46,72,84,.05)}.quick-exit-list button span{width:25px;height:25px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.quick-exit-list button strong{font-size:12px;color:var(--text)}
.sizes-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 8px 26px rgba(46,72,84,.05)}.sizes-card h3{margin:2px 0 5px}.sizes-card>div>p:last-child{margin:0 0 18px;color:var(--muted);font-size:12px}.sizes-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sizes-form label{font-size:11px;font-weight:700;color:var(--muted)}.sizes-form input{width:100%;margin-top:6px}.sizes-form button{grid-column:1/-1}.sizes-updated{display:block;text-align:center;color:var(--muted);font-size:10px;margin-top:10px}
@media(max-width:390px){.sizes-form{grid-template-columns:1fr}.sizes-form button{grid-column:auto}}

/* Central v31 */
.organization-page{padding-top:14px}
.central-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:22px 20px;border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 92%,#fff),color-mix(in srgb,var(--primary) 62%,#6f8792));color:#fff;box-shadow:0 16px 34px color-mix(in srgb,var(--primary) 18%,transparent)}
.central-hero::after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-62px;top:-74px;background:rgba(255,255,255,.10)}
.central-hero-copy{position:relative;z-index:1;min-width:0}.central-eyebrow{display:inline-block;margin-bottom:7px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.central-hero h2{margin:0 0 6px;font-size:22px;line-height:1.08;letter-spacing:-.04em;color:#fff}.central-hero p{margin:0;max-width:245px;font-size:12px;line-height:1.4;color:rgba(255,255,255,.82)}
.central-hero-mark{position:relative;z-index:1;flex:0 0 50px;width:50px;height:50px;border-radius:17px;display:grid;place-items:center;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px)}
.central-hero-mark span{font-size:21px;color:#fff}
.central-switch{position:relative;display:flex;gap:6px;margin:0 0 17px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 7px 22px rgba(46,72,84,.05)}
.central-switch button{min-height:38px;padding:0 13px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:11px;font-weight:750;white-space:nowrap}
.central-switch button.active{background:var(--primary-soft);color:var(--primary);box-shadow:none}
.central-switch button span{display:inline-grid;min-width:17px;height:17px;padding:0 4px;margin-left:3px;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--primary) 12%,#fff);font-size:9px}
.organization-panel{animation:centralPanelIn .18s ease-out}
@keyframes centralPanelIn{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:380px){.central-hero{padding:19px 17px}.central-hero h2{font-size:20px}.central-hero-mark{width:44px;height:44px;flex-basis:44px}}

/* Central v31 — atalhos mais visuais */
.central-switch{display:grid;grid-template-columns:repeat(5,minmax(66px,1fr));gap:8px;padding:0 1px 4px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow-x:auto}
.central-switch button{position:relative;min-width:68px;height:72px;padding:8px 6px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 6px 18px rgba(46,72,84,.045)}
.central-switch button.active{background:#fff;color:var(--primary);border-color:color-mix(in srgb,var(--primary) 28%,var(--line));box-shadow:0 9px 24px color-mix(in srgb,var(--primary) 10%,transparent)}
.central-switch .central-tab-icon{display:grid;width:30px;height:30px;min-width:30px;margin:0;padding:0;place-items:center;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:850}
.central-switch button.active .central-tab-icon{background:var(--primary);color:#fff}
.central-switch .central-tab-label{display:block!important;width:auto!important;height:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border-radius:0!important;font-size:10px;font-weight:750;color:inherit}
.central-switch #shoppingCountBadge{position:absolute;right:7px;top:6px;min-width:17px;height:17px;margin:0;padding:0 4px;background:var(--coral-soft);color:var(--coral);font-size:9px}
@media(max-width:430px){.central-switch{grid-template-columns:repeat(5,74px);margin-right:-16px;padding-right:16px}.central-switch button{height:70px}}
