/* Plate-loading meter for the weekly activity check */
.plate-meter { padding: 0.75rem 1.25rem 0.25rem; }
.plate-meter__bar {
  position: relative;
  height: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--border) calc(10% - 1px) 10%),
    var(--surface);
  overflow: hidden;
}
.plate-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: var(--brand);
  opacity: 0.85;
  transition: width 0.3s ease;
}
.plate-meter__tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--ink);
}
.plate-meter__tick--min { left: 50%; }
.plate-meter__tick--max { right: 0; }
.plate-meter__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#activity-form input,
#activity-form select { min-width: 5rem; }
@media (prefers-reduced-motion: reduce) {
  .plate-meter__fill { transition: none; }
}

/* Affiliate box links: darker green for AA contrast on the tinted box background */
.aff-box a,
.aff-box a:visited {
  color: #3a6210;
}

/* Card grids: columns fit the number of cards, rows share an even height */
lg-cards [class*="grid"],
[class*="similar"] [class*="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  grid-auto-rows: 1fr;
}

/* Source block: one compact line */
[class*="source"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
[class*="source"] p { margin: 0; }