.calendar-grid-shell {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.calendar-desktop-layout {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.calendar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 26px;
}

.calendar-header > div:first-child {
  min-width: 0;
}

.month-controls {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  justify-self: end;
  align-self: end;
  margin: 0;
}

.month-card {
  width: 100%;
  min-width: 0;
  padding: 24px clamp(12px, 4vw, 18px);
}

.weekday-row,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
}

.weekday-row {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.day-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 7px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 18px;
  font-size: clamp(18px, 5vw, 22px);
  transition: transform 160ms ease, background 160ms ease;
}

.day-cell.outside {
  color: rgba(67, 71, 77, 0.42);
}

.day-cell.selected .day-number {
  color: #ffffff;
  background: var(--primary);
}

.day-cell.today:not(.selected) .day-number {
  border: 1px solid var(--primary);
}

.day-number {
  display: grid;
  place-items: center;
  width: clamp(40px, 11vw, 48px);
  height: clamp(40px, 11vw, 48px);
  border-radius: 999px;
}

.day-dots {
  position: absolute;
  bottom: 4px;
  display: flex;
  gap: 4px;
}

.day-dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 999px;
}

.day-dot.tan {
  background: var(--tan);
}

.day-dot.blue {
  background: #8fb5e0;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  background: rgba(26, 28, 26, 0.1);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--primary);
  border-radius: inherit;
}

.daily-card {
  min-width: 0;
  padding: 26px 20px;
}

.mobile-daily {
  display: grid;
  gap: 26px;
}

.goal-summary-card {
  padding: 22px 20px;
}

.goal-summary-card .chip {
  margin-bottom: 12px;
}

.goal-summary-card .subcopy {
  margin-top: 0;
}

.daily-card h2,
.side-panel h2 {
  margin: 0 0 22px;
  color: var(--primary);
  font-family: var(--font-head);
  font-size: clamp(36px, 8vw, 50px);
  font-weight: 400;
  line-height: 1.04;
}

.add-task-row {
  position: relative;
  margin-top: 12px;
}

.add-task-row .material-symbols-rounded {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--outline-soft);
}

.add-task-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 0 0 34px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(195, 199, 205, 0.32);
  outline: none;
  font-size: 18px;
}

.prayer-block {
  margin-top: 28px;
}

.prayer-block h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.prayer-list {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.prayer-token {
  display: grid;
  place-items: center;
  width: clamp(44px, 12vw, 55px);
  height: clamp(44px, 12vw, 55px);
  color: transparent;
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid rgba(67, 71, 77, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 160ms ease, background 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.prayer-token.done {
  background: #2f5d45;
  border-color: #2f5d45;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.18), 0 8px 18px rgba(47, 93, 69, 0.18);
}

.prayer-token.failed {
  background: #7f1d1d;
  border-color: #7f1d1d;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.14), 0 8px 18px rgba(127, 29, 29, 0.18);
}

.prayer-token:active {
  transform: scale(0.94);
}

.goals-header,
.ideas-header {
  margin-bottom: 28px;
}

.goals-list,
.ideas-list {
  display: grid;
  gap: 20px;
}

.goal-card,
.idea-card {
  padding: 22px;
}

.goal-top,
.idea-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.goal-body {
  display: grid;
  gap: 9px;
}

.goal-title,
.idea-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.24;
}

.goal-desc,
.idea-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.goal-progress-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.goal-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-add {
  position: fixed;
  right: var(--page-x);
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 28;
  white-space: nowrap;
}

.ideas-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ideas-filters::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  min-height: 38px;
  padding: 0 17px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(195, 199, 205, 0.34);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.filter-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.idea-card.done {
  opacity: 0.48;
}

.idea-note {
  width: 100%;
  min-height: 128px;
  margin-top: 18px;
  padding: 14px;
  color: var(--ink);
  background: rgba(250, 249, 246, 0.72);
  border: 1px solid rgba(195, 199, 205, 0.28);
  border-radius: 10px;
  resize: vertical;
  outline: none;
}

.idea-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.empty-dashed {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  border: 2px dashed rgba(195, 199, 205, 0.52);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
}

.side-panel {
  display: none;
}

@media (min-width: 920px) {
  .calendar-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .month-controls {
    gap: 10px;
    margin: 0;
  }

  .calendar-desktop-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.9fr);
    align-items: start;
  }

  .calendar-header {
    margin-bottom: 30px;
  }

  .month-card {
    min-height: 760px;
    padding: 30px;
  }

  .day-cell {
    min-height: 108px;
    place-items: start;
    padding: 18px 14px;
    border-radius: 0;
    border-top: 1px solid rgba(67, 71, 77, 0.16);
    font-size: 20px;
  }

  .day-cell.selected {
    outline: 1px solid var(--primary);
    outline-offset: -1px;
  }

  .day-number {
    width: auto;
    height: auto;
    padding: 0;
    color: inherit;
    background: transparent !important;
  }

  .day-cell.selected .day-number {
    color: var(--primary);
  }

  .day-dots {
    left: 16px;
    bottom: 16px;
  }

  .mobile-daily {
    display: none;
  }

  .side-panel {
    display: grid;
    gap: 26px;
  }

  .side-panel .daily-card {
    box-shadow: none;
  }

  .goals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ideas-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .floating-add {
    right: 46px;
    bottom: 36px;
  }
}
