/* Year in Review card (Reflect screen).
   Token-driven throughout so the light/night theme swap carries the design.
   The chart itself reuses the mood-trends chart classes from mood-trends.css,
   which are already theme-safe. The chart is a static SVG (no animation),
   so reduced-motion needs no special handling. */

.year-review__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.year-review__head .eyebrow {
  margin: 0 0 var(--space-1);
}
.year-review__head h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}
.year-review__picker {
  display: grid;
  gap: var(--space-1);
  min-width: 150px;
}
.year-review__picker .field-label {
  margin-bottom: 0;
}
.year-review__picker .select-control {
  min-height: 44px;
}
.year-review__lead {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  line-height: 1.55;
}
.year-review__section + .year-review__section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.year-review__section .eyebrow {
  margin: 0 0 var(--space-3);
}
.year-review__chart {
  margin-top: var(--space-2);
}

@media (max-width: 600px) {
  .year-review__head {
    align-items: flex-start;
  }
}

/* Night theme: keep the picker surface a touch darker so it reads as a
   control against the night card, matching the identity's night surfaces. */
:root[data-theme="night"] .year-review__picker .select-control {
  background: var(--surface);
}
:root[data-theme="night"] .year-review__section + .year-review__section {
  border-top-color: var(--border);
}
