* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f7f6f3;
  min-height: 100dvh;
  color: #2e2d33;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.title { font-size: 15px; font-weight: 700; color: #2e2d33; letter-spacing: 1px; }
.ph { width: 44px; }
.iconbtn.small {
  height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(0,0,0,0.04); color: #8b8790; font-size: 10.5px;
  display: flex; align-items: center; text-decoration: none;
}

.year-head { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 4px; }
.year-num { font-size: 26px; font-weight: 700; color: #2e2d33; }
.nav-btn {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.04); color: #8b8790; font-size: 18px; cursor: pointer;
}
.year-total { text-align: center; font-size: 11px; color: #b8b3ba; padding-bottom: 14px; }

.month-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 14px;
}
.month-tile {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.045);
  border-radius: 16px; padding: 12px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.month-tile .mname { font-size: 13px; font-weight: 700; color: #3a3940; margin-bottom: 10px; }
.mdots { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3.5px; flex: 1; }
.mdots span { width: 7px; height: 7px; border-radius: 2px; background: rgba(0,0,0,0.055); }
.mdots span.sealed { background: none; border: 1px solid #c4c0c8; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
  flex: 1; text-align: center; text-decoration: none; border: none; background: none;
  padding: 13px 0; font-size: 12.5px; color: #b8b3ba;
}
.tab.active { color: #2e2d33; font-weight: 600; }
