:root {
  color-scheme: only light;
  --bg: #f6efe7;
  --bg-soft: #fff4e6;
  --surface: #ffffff;
  --ink: #2b1f17;
  --muted: #6e5d52;
  --accent: #e27d5f;
  --accent-2: #f4b184;
  --accent-3: #7bb3a5;
  --shadow: rgba(43, 31, 23, 0.12);
  --stroke: rgba(43, 31, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff9f1 0%, var(--bg) 45%, #f3e6d8 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Literata", "Georgia", serif;
  margin: 0 0 8px;
}

p {
  margin: 0;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #fff8ef 0%, #fdf1e2 55%, #f8e2d1 100%);
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 20px 50px var(--shadow);
  border: 1px solid var(--stroke);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-3);
  color: #10352b;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 400px;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 18px 20px;
  min-width: 240px;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 32px rgba(43, 31, 23, 0.08);
}

.hero-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.dashboard {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.baby-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: 22px;
  padding: 20px 24px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 30px rgba(43, 31, 23, 0.08);
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7c59f 0%, #f3a183 100%);
  color: #3f2215;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.quick-actions {
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 30px rgba(43, 31, 23, 0.08);
}

.action-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action {
  border: none;
  border-radius: 18px;
  padding: 14px 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(226, 125, 95, 0.12);
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(226, 125, 95, 0.2);
}

.icon {
  font-size: 1.2rem;
}

.tabs {
  margin-top: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 20px rgba(226, 125, 95, 0.25);
}

.tab-panels {
  margin-top: 18px;
}

.panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 24px rgba(43, 31, 23, 0.08);
}

.event-time {
  font-weight: 700;
  font-size: 0.95rem;
}

.event-body h4 {
  margin-bottom: 2px;
}

.tag {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  font-size: 1.2rem;
}

.stats-grid,
.growth-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 22px rgba(43, 31, 23, 0.08);
}

.chart {
  margin-top: 12px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff7f1, #f7e3d5);
  position: relative;
  overflow: hidden;
}

.chart.bars::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: repeating-linear-gradient(
    to right,
    rgba(226, 125, 95, 0.55) 0,
    rgba(226, 125, 95, 0.55) 10px,
    rgba(255, 255, 255, 0) 10px,
    rgba(255, 255, 255, 0) 18px
  );
  border-radius: 10px;
}

.chart.line::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: radial-gradient(circle at 20% 70%, var(--accent) 2px, transparent 3px),
    radial-gradient(circle at 40% 40%, var(--accent) 2px, transparent 3px),
    radial-gradient(circle at 60% 55%, var(--accent) 2px, transparent 3px),
    radial-gradient(circle at 80% 30%, var(--accent) 2px, transparent 3px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.photo-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 24px rgba(43, 31, 23, 0.08);
}

.photo {
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8c8a7 0%, #f3a189 50%, #e0b2a8 100%);
  margin-bottom: 10px;
}

.photo-2 {
  background: linear-gradient(135deg, #f5e1c8 0%, #f7c59f 50%, #f1a2b2 100%);
}

.photo-3 {
  background: linear-gradient(135deg, #e8f0e5 0%, #cfe7d2 50%, #a9d1c5 100%);
}

.toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip {
  border: 1px solid var(--stroke);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.reminders {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(43, 31, 23, 0.28);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.sheet.show {
  display: flex;
}

.sheet-card {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 24px 24px 18px 18px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(43, 31, 23, 0.25);
  animation: slideUp 0.25s ease;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.sheet-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.sheet-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.sheet-form input,
.sheet-form select {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.primary {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(226, 125, 95, 0.25);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: 70px 1fr 40px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 20px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    gap: 6px;
  }
}
