.plan-page {
  width: 100%;
  min-height: 100vh;
  background: #FFFFFF;
  padding-top: 8px;
  padding-bottom: 238px;
}

.plan-header {
  position: sticky;
  top: 0;
  background: #F4F5F0;
  z-index: 50;
  padding: 26px 20px 32px;
}

.plan-steps {
  display: flex;
  gap: 4px;
  max-width: 70px;
  margin: 0 auto;
}

.plan-step-dot {
  flex: 1;
  height: 1.5px;
  background: #D9D9D3;
  border-radius: 1px;
  transition: background 0.3s;
}

.plan-step-dot.filled {
  background: black;
}

.plan-title {
  text-align: center;
  color: black;
  font-size: 26px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 32px;
  padding: 0 20px;
}

.plan-subtitle {
  text-align: center;
  color: #A1A09F;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 0 20px 24px;
}

.plan-nutrition-panel .plan-subtitle {
  padding: 0;
  margin-top: 24px;
}

.plan-nutrition-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #F4F5F0;
  border-radius: 28px;
  margin: 0 8px 32px;
  padding: 33px 0 22px;
}

.plan-radial-triad {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}

.plan-radial-item {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.plan-radial-ring {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.plan-radial-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #F4F5F0;
}

.plan-radial-ring--yellow {
  background: conic-gradient(#E9EAE4 0 100%);
}

.plan-radial-ring--green {
  background: conic-gradient(#E9EAE4 0 100%);
}

.plan-radial-ring--pink {
  background: conic-gradient(#E9EAE4 0 100%);
}

.plan-radial-ring span {
  position: relative;
  color: black;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 18px;
}

.plan-radial-label {
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}

.plan-calorie-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}

.plan-calorie-label {
  color: black;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  padding: 0 20px;
}

.plan-calorie-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.plan-calorie-input-wrap {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: #ECECE5;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.plan-calorie-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: black;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 22px;
  padding: 0 0 0 16px;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.plan-calorie-input::-webkit-outer-spin-button,
.plan-calorie-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.plan-calorie-input::placeholder {
  color: #7E7E7E;
  font-weight: 600;
}

.plan-calorie-camera {
  width: 64px;
  height: 52px;
  border: none;
  background: transparent;
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

.plan-calorie-camera img {
  width: 24px;
  height: 24px;
}

.plan-calorie-submit {
  flex: 0 0 128px;
  width: 128px;
  height: 52px;
  background: #FFF066;
  color: black;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

.plan-section {
  padding: 0 20px 32px;
}

.plan-section-title {
  text-align: center;
  color: rgb(126, 126, 126);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.plan-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-goal-card {
  background: transparent;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: black;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.plan-goal-card.selected {
  background: #ECECE5;
}

.plan-goal-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.plan-slider-wrap {
  margin-bottom: 40px;
}

.plan-slider-value {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: black;
  margin-bottom: 16px;
}

.plan-slider-value span {
  font-size: 14px;
  font-weight: 400;
  color: #A1A09F;
  margin-left: 4px;
}

.plan-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5px;
  background: #D9D9D3;
  border-radius: 1px;
  outline: none;
}

.plan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 22px;
  background: black;
  border-radius: 10px;
  cursor: pointer;
}

.plan-slider-range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #A1A09F;
}

.plan-toggle-row {
  display: flex;
  gap: 8px;
}

.plan-toggle-btn {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: black;
  cursor: pointer;
  transition: background 0.2s;
}

.plan-toggle-btn.selected {
  background: #ECECE5;
}

.plan-range-btn {
  white-space: nowrap;
  padding: 0 4px;
  font-size: 13px;
}

.plan-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.plan-chip {
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.plan-chip.selected {
  background: #ECECE5;
}

.plan-duration-row {
  display: flex;
  gap: 8px;
}

.plan-duration-btn {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: black;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.plan-duration-btn.selected {
  background: #ECECE5;
}

.plan-submit-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 62px;
  background: linear-gradient(0deg, #F4F5F0 70%, rgba(244, 245, 240, 0) 100%);
  z-index: 55;
}

.plan-submit-reason {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(100% + 26px);
  margin: 0;
  text-align: center;
  color: #7E7E7E;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
}

.plan-submit-btn {
  width: 100%;
  height: 52px;
  transform: translateY(-30px);
  background: #D9D9D3;
  color: white;
  border: none;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.plan-submit-btn.ready {
  background: black;
}

/* Result view is treated as one beige card covering calendar + summary + meals —
   matches the #F4F5F0 panel background used on other sections of the project.
   `.plan-page.showing-result` bleeds the same beige behind the page padding so no
   white header strip shows above the card. */
.plan-result {
  display: none;
  padding: 20px;
  background: #F4F5F0;
}

.plan-result.active {
  display: block;
}

.plan-page.showing-result {
  background: #F4F5F0;
  padding-top: 0;
  padding-bottom: 0;
}

html.plan-result-open,
html.plan-result-open body {
  background: #F4F5F0;
  overscroll-behavior-y: none;
}

.plan-page.showing-result .plan-result {
  padding-top: 90px; /* matches .plan-title vertical offset so the April heading sits at the same height as other page titles */
}

.plan-result .plan-cal-inline {
  margin-bottom: 24px;
  min-height: 256px;
  contain: layout paint;
}

.plan-result-summary {
  background: transparent;
  padding: 0 16px;
  margin-bottom: 20px;
}

.plan-result-kcal {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
  margin-bottom: 6px;
}

.plan-result-kcal span {
  font-size: 13px;
  font-weight: 400;
  color: #A1A09F;
}

.plan-result-macros {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #000;
  margin-bottom: 10px;
}

/* Size + leading matched to .cooking-step-text on /recipe (14px / 20px Inter 400). */
.plan-result-note {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #A1A09F;
}

.plan-late-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FFF8E1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #4A4A4A;
}

.plan-late-notice-emoji {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.plan-late-notice-text {
  display: block;
  flex: 1;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

/* Day view — no more day-tabs strip; only the currently-selected day is ever visible */
.plan-day {
  display: none;
}

.plan-day.active {
  display: block;
}

.plan-meal-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  margin-top: 14px;
  display: block;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.plan-day > .plan-meal-label:first-child { margin-top: 4px; }

.plan-recipe-swipe-action {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plan-recipe-swipe {
  position: relative;
  margin-bottom: 6px;
  width: 100%;
}

.plan-recipe-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
}

.plan-recipe-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #e5e6df;
  overflow: hidden;
  display: block;
}

.plan-recipe-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-recipe-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.plan-recipe-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-recipe-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
}

.plan-recipe-check {
  width: 22px;
  height: 22px;
  border: 2px solid #D9D9D3;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.plan-recipe-check.done {
  background: black;
  border-color: black;
}

.plan-recipe-check.done::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url('/images/Icons/done.svg') no-repeat center;
  background-size: contain;
  filter: invert(1);
}

.plan-result-actions {
  display: none;
  gap: 10px;
  padding: 12px 0 24px;
  margin-top: 8px;
  background: transparent;
}

.plan-result.active .plan-result-actions {
  display: flex;
}

.plan-action-btn {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.plan-action-btn--primary {
  background: black;
  color: white;
  flex: 2;
}

.plan-action-btn--secondary {
  background: #ECECE5;
  color: black;
}

.plan-chat-fab {
  display: none;
  position: fixed;
  bottom: 156px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #FFF066;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 60;
  transition: transform 0.2s;
}

.plan-chat-fab:active {
  transform: scale(0.95);
}

.plan-chat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9998;
}

.plan-chat-backdrop.open {
  display: block;
}

.plan-chat-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(100% - 40px);
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s ease;
  will-change: transform;
}

.plan-chat-overlay.open {
  display: flex;
  animation: planChatSlideUp 0.3s ease-out;
}

.plan-recipe-card.peek {
  animation: planSwipePeek 1.2s ease-in-out;
}

.plan-chat-handle {
  width: 36px;
  height: 4px;
  background: #D9D9D3;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.plan-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px;
  flex-shrink: 0;
}

.plan-chat-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.plan-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-chat-msg {
  max-width: 85%;
  animation: planChatFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan-chat-msg.bot {
  align-self: flex-start;
}

.plan-chat-msg.user {
  align-self: flex-end;
}

.plan-chat-msg-text {
  padding: 10px 16px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.plan-chat-msg.bot .plan-chat-msg-text {
  background: #f4f5f0;
  color: #000;
  border-bottom-left-radius: 4px;
}

.plan-chat-msg.user .plan-chat-msg-text {
  background: #000;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.plan-chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.plan-chat-tag {
  padding: 8px 16px;
  border-radius: 10px;
  background: #f4f5f0;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: #000;
}

.plan-chat-tag.selected {
  background: #000;
  color: #fff;
}

.plan-chat-recipes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.plan-chat-recipe-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f4f5f0;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
}

.plan-chat-recipe-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e6df;
}

.plan-chat-recipe-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.plan-chat-recipe-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-chat-recipe-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
}

.plan-chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 20px;
  flex-shrink: 0;
  background: #fff;
}

.plan-chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  background: #fff;
  color: #000;
  resize: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.4;
  min-height: 40px;
  max-height: 100px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.plan-chat-input::-webkit-scrollbar {
  display: none;
}

.plan-chat-input:focus {
  border-color: #000;
}

.plan-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-chat-send:disabled {
  opacity: 0.3; cursor: default;
}

.plan-chat-msg-meal-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-top: 12px;
}

.plan-chat-loading {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
}

.plan-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  animation: planChatBounce 1.2s infinite ease-in-out;
}

.plan-chat-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.plan-chat-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@media (min-width: 375px) {
  .plan-subtitle,
  .plan-goal-card,
  .plan-slider-value span,
  .plan-toggle-btn,
  .plan-chip,
  .plan-duration-btn,
  .plan-result-kcal span,
  .plan-day-tab-num,
  .plan-meal-label,
  .plan-recipe-name,
  .plan-action-btn,
  .plan-chat-recipe-name,
  .plan-chat-msg-meal-label {
    font-size: 16px;
  }
}

@media (min-width: 440px) {
  .plan-day-tab-label {
    font-size: 11px;
  }

  .plan-section-title {
    font-size: 16px;
  }

  .plan-slider-range {
    font-size: 15px;
  }

  .plan-result-macros,
  .plan-recipe-meta,
  .plan-chat-recipe-meta {
    font-size: 14px;
  }

  .plan-result-note,
  .plan-chat-tag {
    font-size: 15px;
  }

  .plan-subtitle,
  .plan-goal-card,
  .plan-slider-value span,
  .plan-toggle-btn,
  .plan-chip,
  .plan-duration-btn,
  .plan-result-kcal span,
  .plan-day-tab-num,
  .plan-meal-label,
  .plan-recipe-name,
  .plan-action-btn,
  .plan-chat-recipe-name,
  .plan-chat-msg-meal-label {
    font-size: 16px;
  }

  .plan-chat-title {
    font-size: 17px;
  }

  .plan-submit-btn,
  .plan-chat-msg-text,
  .plan-chat-input {
    font-size: 18px;
  }

  .plan-title,
  .plan-cal-month {
    font-size: 32px;
    line-height: 40px;
  }

  .plan-goal-icon,
  .plan-result-kcal {
    font-size: 30px;
  }

  .plan-slider-value {
    font-size: 32px;
  }

  .plan-goal-card {
    padding: 20px;
  }

  .plan-result-summary {
    padding: 20px;
  }

  .plan-chat-msg-text {
    padding: 10px 20px;
  }

  .plan-chat-tag {
    padding: 8px 20px;
  }

  .plan-chat-loading {
    padding: 10px 20px;
  }
}

@media (min-width: 640px) {
  .plan-goal-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .plan-page {
    padding-top: 40px;
  }

  .plan-section {
    padding-bottom: 74px;
  }

  .plan-title br {
    display: none;
  }
}

/* ===== Plan filter — rarely-changed settings in a full-screen sheet ===== */
.plan-filter-btn,
.plan-calendar-btn,
.plan-result-close-btn {
  position: fixed;
  top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5000;
  padding: 0;
}
.plan-filter-btn       { left: 16px; }
.plan-calendar-btn     { right: 16px; }
.plan-result-close-btn { right: 16px; }

.plan-filter-btn img,
.plan-calendar-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.plan-filter-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5900;
}
.plan-filter-sheet-overlay.visible { display: block; }

.plan-filter-sheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 5950;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 72px 20px 40px;
  box-sizing: border-box;
}
.plan-filter-sheet.visible { display: block; }

/* ===== Plan calendar sheet — month picker, project styling, no history dots ===== */
.plan-calendar-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5900;
}
.plan-calendar-sheet-overlay.visible { display: block; }

.plan-calendar-sheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 5950;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 90px 20px 40px;
  box-sizing: border-box;
}
.plan-calendar-sheet.visible { display: block; }

.plan-cal-month {
  text-align: center;
  color: #000;
  font-size: 26px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 32px;
  padding: 0 20px 12px;
}

/* Weekday row uses the project's section-title style. Pin text-size-adjust so iOS
   doesn't inflate these letters past the parent title size. */
.plan-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 0 6px;
  color: #7E7E7E;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.plan-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
  padding: 4px 0 0;
}

.plan-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  color: #000;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
}
.plan-cal-day--empty { visibility: hidden; }
.plan-cal-day--past { color: #ccccca; }
.plan-cal-day.selected {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.plan-cal-selected-title {
  text-align: center;
  color: #000;
  font-size: 20px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  padding: 32px 0 0;
}
