:root {
  --color-primary: #f2a6bb;
  --color-primary-dark: #e4839c;
  --color-secondary: #a6c8f2;
  --color-bg: #fff8f5;
  --color-card: #ffffff;
  --color-text: #3a3238;
  --color-muted: #8a7f85;
  --color-border: #f0e2e6;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(58, 50, 56, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  padding-bottom: 76px;
}

a { color: var(--color-primary-dark); text-decoration: none; }

.container { max-width: 640px; margin: 0 auto; padding: 16px; }

.topbar {
  background: var(--color-primary);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.topbar a { color: #fff; }

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--color-primary-dark); }
.btn.secondary { background: var(--color-secondary); color: #22364d; }
.btn.outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary-dark); }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: #e0655f; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
label { font-weight: 600; font-size: 13px; color: var(--color-muted); display: block; margin-bottom: 4px; }

.form-group { margin-bottom: 14px; }

.nav-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.nav-bottom a {
  color: var(--color-muted);
  font-size: 11px;
  text-align: center;
  flex: 1;
  padding: 4px;
}
.nav-bottom a.active { color: var(--color-primary-dark); font-weight: 700; }
.nav-bottom .icon { font-size: 20px; display: block; }

.baby-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.baby-photo {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden; flex-shrink: 0;
}
.baby-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #22364d;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge.pink { background: var(--color-primary); color: #fff; }
.badge.warn { background: #ffe6a3; color: #7a5c00; }
.badge.ok { background: #c9ecd6; color: #1c6b3e; }

.muted { color: var(--color-muted); font-size: 13px; }

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert.error { background: #fde3e1; color: #a3392f; }
.alert.success { background: #d9f2e3; color: #1c6b3e; }

.list-item {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.list-item:last-child { border-bottom: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.logo-hero { font-size: 44px; text-align: center; margin-bottom: 6px; }
