.streak-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #cbd5c8;
  border-radius: 22px;
  background: #eef1e7;
  color: #20372a;
  margin-bottom: 16px;
}
#habit-today-slot .streak-card {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.streak-card h2 { font-size: 17px; margin: 0 0 6px; }
.streak-card p { margin: 0; }
.streak-number { font-size: clamp(26px, 4vw, 34px); font-weight: 750; }
.streak-battery {
  border-radius: 100px;
  padding: 8px 12px;
  background: #fffdf6;
  border: 1px solid #cbd5c8;
  font-weight: 650;
  font-size: 14px;
}
.streak-caption { grid-column: 1 / -1; font-size: 14px; }
.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}
.streak-day {
  display: grid;
  text-align: center;
  line-height: 1.3;
  padding: 7px 2px;
  border-radius: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: #fffdf6;
}
.streak-day b { font-size: 20px; }
.streak-day[data-day-state="Protegido"] { background: #fae4d7; }
.streak-day[data-day-state="Practicado"] { background: #dce7d5; }
.streak-result {
  max-width: max-content;
  margin: 12px auto;
  padding: 9px 15px;
  color: #20372a;
  background: #dce7d5;
  border-radius: 100px;
  font-weight: 650;
}
.streak-result[hidden] { display: none; }
#plan-checkpoints:empty { display: none; }
#plan-checkpoints > p { margin: 12px 0 4px; }
#plan-checkpoints button { margin-top: 6px; }
.context-sentence { text-align: center; font-size: clamp(21px, 4vw, 31px); line-height: 1.4; }
.context-sentence strong { color: #963b2d; }
#retry-correction { margin-top: 10px; }
@media (max-width: 430px) {
  .streak-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .streak-result:not([hidden]) { animation: streak-appear 320ms ease-out; }
}
@keyframes streak-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.streak-battery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.battery-icon {
  width: 22px;
  height: 22px;
  flex: none;
}
@media (max-width: 340px) {
  #habit-today-slot .streak-card { grid-template-columns: minmax(0, 1fr); }
  .streak-battery { justify-self: start; }
}
