/* Today: three equal summaries and one clearly visible next step. */
.daily-summary {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.daily-summary .summary-card {
  min-width: 0;
  min-height: 158px;
  padding: 17px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border-color: #e5e9df;
  border-radius: 17px;
  text-align: center;
  box-shadow: 0 4px 18px #39412b04;
}
.daily-summary .summary-card > div:last-child { min-width: 0; width: 100%; }
.daily-summary .summary-card .ring { --size: 44px !important; }
.daily-summary .ring-number {
  font-size: max(10px, calc(var(--size) * .25));
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #70864e;
}
.daily-summary .ring-number > span {
  font-size: .7em !important;
  margin-left: 1px;
}
.daily-summary .flame,
.daily-summary .summary-progress-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.daily-summary .flame { background: #faf0dd; color: #bd9553; }
.daily-summary .flame .icon { width: 25px; height: 29px; }
.daily-summary .summary-progress-icon { color: #718b54; background: #eef3e5; }
.daily-summary .summary-progress-icon .icon { width: 25px; height: 25px; }
.daily-summary .summary-label {
  color: #6f7969;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.daily-summary .summary-value {
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.7px;
  color: #354335;
}
.daily-summary .summary-value span { color: #8a9581; font-size: 14px; }
.daily-summary .summary-note {
  margin-top: 5px;
  color: #8b9483;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@container (min-width: 660px) {
  .daily-summary .summary-card {
    flex-direction: row;
    min-height: 112px;
    padding: 19px 17px;
    text-align: left;
    gap: 13px;
  }
  .daily-summary .summary-value { justify-content: flex-start; }
}

.daily-step { margin-bottom: 28px; }
.daily-step > .section-head { flex-wrap: wrap; gap: 8px 14px; margin-bottom: 13px; }
.daily-step > .section-head h2 { line-height: 1.4; }
.daily-step > .section-head .text-button {
  color: #6f8456;
  font-size: 11px;
  font-weight: 650;
  min-height: 36px;
  padding: 6px 0;
  white-space: normal;
  text-align: right;
}
.daily-step-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 15px;
  padding: 21px;
  background: linear-gradient(125deg, #f2f6e9, #f8f9f2);
  border: 1px solid #dce6cf;
  border-radius: 18px;
  box-shadow: 0 6px 22px #43552f04;
}
.daily-step-card > .check {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1.5px solid #b2c69b;
  background: #fffefb;
}
.daily-step-card > .check::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.daily-step-card > .check.checked { background: #729a59; border-color: #729a59; color: white; }
.daily-step-card > .check .icon { width: 16px; height: 16px; }
.daily-step-body {
  min-width: 0;
  min-height: 70px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  text-align: left;
  border-radius: 6px;
}
.daily-step-body .tag { max-width: 100%; font-size: 10px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.daily-step-body strong {
  display: block;
  max-width: 100%;
  color: #36492f;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}
.daily-step-body small { display: block; max-width: 100%; font-size: 11px; line-height: 1.6; color: #829276; overflow-wrap: anywhere; }
.daily-step-card > .task-arrow { display: grid; place-items: center; width: 32px; min-height: 44px; padding: 0; color: #859f70; border-radius: 9px; }
.daily-step-card > .task-arrow .icon { width: 19px; height: 19px; }
.daily-step-card.done { background: #f4f7ef; border-color: #e1e8d8; }
.daily-step-card.done .daily-step-body strong { color: #7d8d72; text-decoration: line-through; text-decoration-thickness: 1px; }
.daily-step-note { margin-top: 11px; padding: 0 4px; color: #87977b; font-size: 11px; line-height: 1.65; text-align: center; }
.daily-step-empty {
  padding: 26px 22px;
  background: #f5f7ee;
  border: 1px dashed #d9e1cd;
  border-radius: 18px;
  text-align: center;
}
.daily-step-empty h3 { color: #536447; font-size: 15px; line-height: 1.5; }
.daily-step-empty p { max-width: 420px; margin: 9px auto 17px; color: #87937c; font-size: 12px; line-height: 1.7; }
.daily-step-empty .primary { background: #728754; box-shadow: none; }
.daily-step-empty .primary:hover { background: #607546; }
.daily-step-options { display: grid; gap: 9px; }
.daily-step-option {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding: 15px 16px;
  border: 1px solid #e1e7d8;
  border-radius: 12px;
  background: #fcfdf8;
  text-align: left;
}
.daily-step-option:hover { background: #f1f6e8; border-color: #b7c99f; }
.daily-step-option > span { display: grid; gap: 5px; min-width: 0; flex: 1; }
.daily-step-option strong { color: #43543a; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.daily-step-option small { color: #8b987e; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.daily-step-option > small { flex: 0 0 auto; max-width: 70px; text-align: right; }
.daily-step button:focus-visible,
.daily-step-option:focus-visible { outline-color: #9cb67e; }

@media (max-width: 700px) {
  .daily-summary { gap: 8px; margin: 15px 0 25px; }
  .daily-summary .summary-card { min-height: 153px; padding: 14px 7px; gap: 9px; border-radius: 14px; }
  .daily-summary .summary-card .ring { --size: 39px !important; }
  .daily-summary .flame,
  .daily-summary .summary-progress-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  .daily-summary .flame .icon { width: 23px; height: 27px; }
  .daily-summary .summary-progress-icon .icon { width: 23px; height: 23px; }
  .daily-summary .summary-label { min-height: 31px; margin-bottom: 5px; font-size: 11px; line-height: 1.4; }
  .daily-summary .summary-value { font-size: 23px; gap: 3px; }
  .daily-summary .summary-value span { font-size: 12px; }
  .daily-summary .summary-note { font-size: 10px; line-height: 1.45; }
  .daily-step { margin-bottom: 25px; }
  .daily-step > .section-head { gap: 6px 10px; margin-bottom: 12px; }
  .daily-step > .section-head h2 { font-size: 15px; }
  .daily-step > .section-head .text-button { font-size: 10px; }
  .daily-step-card { grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 11px; padding: 17px 14px; border-radius: 16px; }
  .daily-step-card > .check { width: 26px; height: 26px; }
  .daily-step-body { gap: 6px; }
  .daily-step-body strong { font-size: 16px; line-height: 1.45; }
  .daily-step-body small { font-size: 11px; }
  .daily-step-card > .task-arrow { width: 24px; }
  .daily-step-note { font-size: 10px; }
  .daily-step-option { padding: 13px; gap: 12px; }
  .daily-step-option strong { font-size: 12px; }
  .daily-step-option small { font-size: 10px; }
}

/* Keep the new daily block as legible as the rest of the interface. */
.daily-summary .summary-value span{font-size:inherit;color:inherit;font-weight:inherit}
.daily-step-note,.daily-step-body small,.daily-step-empty p,.daily-step-option small{color:#5c6a53;font-size:12px}
.daily-step-card.done .daily-step-body strong{color:#53654a}
.daily-step-option strong{font-size:14px}
.daily-step>.section-head .text-button{font-size:12px;color:#50663f}
.daily-step-options{margin-top:18px}
.dashboard>section>.hero{margin-top:0}
