:root {
  --bg: #20201F;
  --surface: #272727;
  --text: #FFFFFF;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spec measurements (from Figma, 393px-wide reference frame) */
  --side-inset: 16px;
  --date-top: 72px;
  --title-top: 100px;
  --bar-inset: 28px;
  --btn-height: 48px;
}

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

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--text);
  overscroll-behavior: none;
}

.screen {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  padding-left: var(--side-inset);
  padding-right: var(--side-inset);
  padding-top: var(--date-top);
}

.date {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.24;
  color: var(--text);
}

.title {
  margin: 8px 0 0 0;
  font-family: var(--font);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Fine-tune header rhythm to exactly match the 72px / 100px top offsets
   (100 - 72 = 28px gap between the top of the date and the top of the title) */
.header .title {
  margin-top: calc(var(--title-top) - var(--date-top) - 21px);
}

/* ---------- Content ---------- */

.content {
  flex: 1;
  padding: 24px var(--side-inset) calc(var(--btn-height) + var(--bar-inset) * 2 + 24px);
  overflow-y: auto;
}

/* ---------- Bottom bar ---------- */

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--bar-inset) var(--bar-inset);
  pointer-events: none;
}

.bottom-bar > * {
  pointer-events: auto;
}

.btn-select,
.btn-add {
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-select:active,
.btn-add:active {
  transform: scale(0.96);
  background: #323232;
}

.btn-select {
  width: 116px;
  height: var(--btn-height);
  border-radius: 24px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
}

.btn-add {
  width: var(--btn-height);
  height: var(--btn-height);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Focus visibility for keyboard users */
.btn-select:focus-visible,
.btn-add:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-select, .btn-add {
    transition: none;
  }
}
