:root {
  --sage: #7a9471;
  --sage-dark: #5c7a52;
  --forest: #3f5c3a;
  --bg: #f4f6f2;
  --card: #ffffff;
  --text: #2c3a28;
  --muted: #7d8a76;
  --border: #dfe6da;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  background: var(--forest);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.stats { display: flex; gap: 14px; font-size: 13px; opacity: 0.9; margin-right: auto; margin-left: 12px; }
.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  right: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 180px;
  overflow: hidden;
  z-index: 10;
}
.menu-dropdown.open { display: block; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg); }
.menu-item.done { background: var(--sage); color: white; }
.menu-item .streak { font-size: 11px; opacity: 0.75; }

.container {
  max-width: 320px;
  margin: 0 auto;
  padding: 12px;
}
.hero-img {
  width: 100%;
  max-width: 160px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.calendar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.cal-header button {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--sage-dark);
  cursor: pointer;
  padding: 2px 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 11px;
}
.cal-day-label { text-align: center; color: var(--muted); padding: 2px 0; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  position: relative;
}
.cal-day.has-activity {
  background: var(--sage);
  color: white;
  font-weight: 600;
}
.cal-day.today { outline: 2px solid var(--forest); }
.cal-day.empty { background: transparent; }
.smiley {
  width: auto;
  height: 20px;
  flex-shrink: 0;
}
.topbar .smiley circle:first-of-type { fill: #f4c95d; }
