/* Week summary cards stay visible while the optional trophy breakdown is closed. */
.weekly-entry-card .weekly-summary-averages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  color: var(--muted);
}
.weekly-entry-card .weekly-summary-averages > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--logger-border);
  border-radius: 12px;
  background: var(--logger-surface);
}
.weekly-entry-card .weekly-summary-averages > div + div { background: var(--logger-accent-surface); }
.weekly-entry-card .weekly-summary-averages > div > strong {
  color: var(--text);
  font-size: .82rem;
}
.weekly-entry-card .weekly-summary-averages > div > span {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.weekly-entry-card .weekly-summary-averages small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
}
.weekly-entry-card .weekly-summary-menu {
  margin-top: 10px;
  border-color: var(--logger-border);
}
.weekly-entry-card .weekly-summary-menu > summary {
  align-items: center;
  padding: 11px 15px;
  background: var(--logger-surface);
  cursor: pointer;
}
.weekly-entry-card .weekly-summary-description {
  font-size: .78rem;
}
.weekly-entry-card .weekly-summary-totals > div {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-1));
}
.weekly-entry-card #weekly-trophy-breakdown {
  margin: 12px 2px 14px;
  font-variant-numeric: tabular-nums;
}
.weekly-entry-card .weekly-summary-estimate {
  min-width: 0;
  overflow-wrap: anywhere;
}
.weekly-entry-card .weekly-summary-estimate p {
  max-width: 72ch;
  overflow-wrap: anywhere;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
@media (max-width: 520px) {
  .weekly-entry-card .weekly-summary-averages { gap: 8px; margin-top: 10px; }
  .weekly-entry-card .weekly-summary-averages > div { padding: 10px; align-content: start; }
  .weekly-entry-card .weekly-summary-averages > div > span { font-size: .95rem; }
  .weekly-entry-card .weekly-summary-menu > summary { gap: 8px; padding: 10px 12px; }
}
@media (max-width: 360px) {
  .weekly-entry-card .weekly-summary-averages { grid-template-columns: 1fr; }
}
