.summary-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

.summary-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-label {
  font-size: .75rem;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

.summary-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
}

.summary-score span {
  font-size: 1.2rem;
  color: var(--t2);
  font-weight: 400;
}

.summary-status {
  font-size: .82rem;
  color: var(--t2);
}

.summary-status.done {
  color: #34d399;
  font-weight: 600;
}

.summary-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.ring-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #2a2a3a;
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}

.ring-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: .88rem;
  font-weight: 700;
  color: var(--t1);
}

/* Habit cards */
.habit-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur);
}

.habit-card:hover {
  background: var(--raised);
}

.habit-card.habit-rest {
  opacity: .45;
}

.habit-bar {
  width: 4px;
  align-self: stretch;
  flex-shrink: 0;
}

.habit-content {
  flex: 1;
  padding: 14px 12px;
}

.habit-name {
  font-size: .98rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 3px;
}

.habit-name.done {
  text-decoration: line-through;
  color: var(--t3);
}

.habit-identity {
  font-size: .75rem;
  color: var(--t3);
}

.habit-next {
  font-size: .72rem;
  color: var(--accent);
  margin-top: 2px;
}

.habit-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.habit-streak {
  font-size: .72rem;
  color: var(--t2);
  white-space: nowrap;
}

.habit-streak span {
  font-weight: 700;
  color: var(--amber);
}

.habit-streak.dim {
  color: var(--t3);
}

.complete-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bd-bright);
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.complete-btn:active {
  transform: scale(.88);
}

.complete-btn.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #111118;
  animation: pop .2s ease;
}

.identity-quote {
  text-align: center;
  font-size: .82rem;
  font-style: italic;
  color: var(--t3);
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* Meals */
.meals-section {
  margin-top: 24px;
}

.meals-card {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.meal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.meal-row:last-child {
  border-bottom: none;
}

.meal-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.meal-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--t3);
  width: 72px;
  flex-shrink: 0;
}

.meal-value {
  font-size: .9rem;
  color: var(--t1);
  flex: 1;
}

.meals-empty {
  font-size: .82rem;
  color: var(--t3);
  font-style: italic;
  padding: 14px 0;
  text-align: center;
}
