* { 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; }
.days-together { font-size: 10px; color: #b8b3ba; font-style: italic; text-align: right; }

.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;
}

.cal-card {
  margin: 16px 12px 10px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.045);
  padding: 14px 10px 12px;
}

.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; }
.cal-month { font-size: 15px; font-weight: 700; color: #2e2d33; letter-spacing: 1px; }
.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;
}

.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 10px; color: #c4c0c8; padding-bottom: 6px;
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.day {
  aspect-ratio: 1; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; color: #3a3940; cursor: pointer; position: relative;
  border: 1px solid transparent;
}
.day.empty { cursor: default; }
.day.future { color: #d8d4da; cursor: default; }
.day.today { border-color: #2e2d33; background: rgba(0,0,0,0.03); }
.day .num { font-size: 14px; font-weight: 500; }
.day .anniv-dot { position: absolute; top: 3px; right: 5px; font-size: 7px; }
.day .dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 20px; }
.day .dots span { width: 4px; height: 4px; border-radius: 50%; }
.day .dots span.sealed { background: none; border: 1px solid #b8b3ba; }

.anniv-list { margin: 4px 20px; font-size: 11px; color: #8b8790; line-height: 1.9; font-style: italic; }
.anniv-list .em { font-style: normal; }

.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; }
