:root {
  --bg: #ffffff;
  --text: #000000;
  --circle-bg: #f7f7f7;
  --circle-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* Header */
.header {
  position: relative;
  padding: calc(75px + var(--safe-top)) 16px 0;
}

.header__date {
  font-weight: 510;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.header__title {
  font-weight: 700;
  font-size: 34px;
  line-height: 41px;
  margin-top: 9px;
  color: var(--text);
}

/* Circle buttons (generic) */
.circle-btn {
  appearance: none;
  border: none;
  border-radius: 50%;
  background: var(--circle-bg);
  box-shadow: var(--circle-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  transition: transform 0.15s ease, background 0.15s ease;
}

.circle-btn:active {
  transform: scale(0.94);
  background: #ececec;
}

.circle-btn svg {
  width: 45%;
  height: 45%;
}

/* Top-right profile/menu button, aligned with header */
.header__action {
  position: absolute;
  top: calc(28px + var(--safe-top));
  right: 16px;
  width: 44px;
  height: 44px;
}

/* Main content area */
.content {
  padding: 24px 16px calc(120px + var(--safe-bottom));
}

/* Empty state placeholder (replace with real dashboard content) */
.empty-state {
  margin-top: 40vh;
  text-align: center;
  color: #b0b0b0;
  font-size: 15px;
}

/* Bottom action buttons */
.bottom-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: calc(28px + var(--safe-bottom));
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.bottom-actions .circle-btn {
  width: 48px;
  height: 48px;
  pointer-events: auto;
}

@media (min-width: 480px) {
  .app {
    box-shadow: 0 0 0 1px #eee;
  }
}
