/* Agenda de clientes: toolbar, KPIs, calendar body with the day panel, legend.
   The page is its own container, so the layout answers to the room it gets
   (sidebar open or not), not to the viewport:
   - wide:   calendar and day panel side by side
   - medium: day panel under the calendar; the grid scrolls sideways with
             the hour column and day headers pinned
   - narrow: a week trades its grid for a swipeable day strip, and the day
             panel becomes the list of that day; months show counts only */
@scope (.agenda) {
  :scope {
    --_surface: var(--color-surface);
    --_muted: var(--color-surface-muted);
    --_border: var(--color-border-muted);
    --_ink: var(--color-text-heading);

    gap: var(--space-xl);
    container: agenda / inline-size;
  }

  :scope > * {
    min-inline-size: 0;
  }

  /* --- Masthead: the frame of Financeiro › Visão Geral and Desempenho
     comercial — eyebrow, title and thesis, filters to the right. --- */
  .agenda__masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-shrink: 0;
    padding-block: var(--space-lg) 0;
    border-bottom: 1px solid var(--_border);
  }

  .agenda__eyebrow {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
  }

  .agenda__title {
    margin-top: var(--space-xs);
    color: var(--_ink);
    font-size: clamp(var(--text-heading-2), 3vw, var(--text-heading-1));
    font-weight: var(--font-semibold);
  }

  .agenda__thesis {
    max-inline-size: 34rem;
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-body);
  }

  .agenda__filters {
    display: grid;
    justify-items: start;
    gap: var(--space-md);
    min-inline-size: 0;
  }

  .agenda__filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
  }

  .agenda__filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-sm);
  }

  /* Period stepper: one control the height of the selects beside it. */
  .agenda__range {
    display: inline-flex;
    align-items: stretch;
    min-block-size: 2.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--radius-md));
    background: var(--_surface);
  }

  .agenda__step {
    display: inline-grid;
    place-items: center;
    inline-size: 2.5rem;
    color: var(--color-text-secondary);

    &:hover {
      background: var(--_muted);
      color: var(--_ink);
    }

    &:focus-visible {
      outline: 2px solid var(--color-focus);
      outline-offset: -2px;
    }

    .icon {
      inline-size: 1.25rem;
      block-size: 1.25rem;
      fill: currentColor;
    }
  }

  .agenda__today {
    display: inline-flex;
    align-items: center;
    padding-inline: var(--space-md);
    border-inline-start: 1px solid var(--_border);
    color: var(--_ink);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;

    &:hover {
      background: var(--_muted);
      text-decoration: none;
    }

    &:focus-visible {
      outline: 2px solid var(--color-focus);
      outline-offset: -2px;
    }
  }

  .agenda__range-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 9.5rem;
    padding-inline: var(--space-sm);
    border-inline: 1px solid var(--_border);
    color: var(--_ink);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  /* Same pill as the period presets of Desempenho comercial. */
  .agenda__views {
    display: inline-flex;
    flex-wrap: wrap;
    max-inline-size: 100%;
    padding: 3px;
    border: 1px solid var(--_border);
    border-radius: var(--radius-xl);
    background: var(--_muted);
  }

  .agenda__view {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--text-sm, var(--text-caption));
    font-weight: var(--font-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;

    &:hover {
      color: var(--_ink);
      text-decoration: none;
    }

    &[aria-current="true"] {
      background: var(--_surface);
      box-shadow: var(--shadow-xs);
      color: var(--_ink);
    }

    &:focus-visible {
      outline: 2px solid var(--color-focus);
      outline-offset: 2px;
    }
  }

  .agenda__field {
    display: grid;
    gap: var(--space-2xs, 0.25rem);
    color: var(--color-text-secondary);
    font-size: var(--text-caption);
    font-weight: var(--font-semibold);
  }

  .agenda__filter-row .icon {
    inline-size: 1.1em;
    block-size: 1.1em;
    fill: currentColor;
  }

  /* --- KPI tiles: one joined panel; the 1px grid gap over the border color
     draws the dividers, so any column count keeps clean lines. --- */
  .agenda__summary,
  .agenda__card {
    flex-shrink: 0;
    border: 1px solid var(--_border);
    border-radius: var(--radius-xl);
    background: var(--_surface);
    box-shadow: var(--shadow-xs);
  }

  .agenda__summary {
    overflow: hidden;
    container: kpis / inline-size;
  }

  .agenda__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--_border);
  }

  @container kpis (width >= 36rem) {
    .agenda__metrics {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  /* Eight across when wide enough for all tiles in one clean ribbon. */
  @container kpis (width >= 75rem) {
    .agenda__metrics {
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
  }

  .agenda__metric {
    --_dot: transparent;

    display: grid;
    align-content: start;
    gap: var(--space-xs);
    min-inline-size: 0;
    padding: var(--space-lg);
    background: var(--_surface);
  }

  /* A short dot in the tile's hue: state colors, store colors. */
  .agenda__metric:is(.agenda__metric--attended, .agenda__metric--confirmed, .agenda__metric--pending, .agenda__metric--absent, .agenda__metric--cancelled) .agenda__metric-label::before {
    content: "";
    display: inline-block;
    inline-size: 0.6rem;
    block-size: 0.6rem;
    margin-inline-end: var(--space-xs);
    border-radius: var(--radius-full);
    background: var(--_dot);
    vertical-align: 0.05em;
  }

  .agenda__metric--attended  { --_dot: var(--color-success); }
  .agenda__metric--confirmed { --_dot: var(--color-info, var(--indigo-500, #3b82f6)); }
  .agenda__metric--pending   { --_dot: var(--color-warning); }
  .agenda__metric--absent    { --_dot: var(--color-error); }
  .agenda__metric--cancelled { --_dot: var(--color-error); }

  .agenda__metric--lead {
    background: linear-gradient(var(--color-primary-muted), var(--color-primary-muted)), var(--_surface);
  }

  .agenda__metric-label {
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .agenda__metric-value {
    overflow: hidden;
    color: var(--_ink);
    font-family: var(--font-mono);
    font-size: clamp(var(--text-heading-5), 2.2cqi, var(--text-heading-3));
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-tight);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .agenda__metric-note {
    color: var(--color-text-muted);
    font-size: var(--text-caption);
    font-variant-numeric: tabular-nums;
  }

  /* The trail reads the period's clients as one bar: which store they visit. */
  .agenda__trail {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--_border);
  }

  .agenda__trail-title {
    color: var(--color-text-secondary);
    font-size: var(--text-caption);
    font-weight: var(--font-semibold);
  }

  .agenda__trail-track {
    display: flex;
    gap: 2px;
    overflow: hidden;
    height: 0.65rem;
    border-radius: var(--radius-full);
    background: var(--_muted);
  }

  .agenda__trail-segment {
    --_segment: var(--color-border);

    flex: var(--share, 0) 1 0;
    min-inline-size: 2px;
    background: var(--_segment);
  }

  .agenda__trail-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-caption);
    font-variant-numeric: tabular-nums;
    list-style: none;
  }

  .agenda__trail-key {
    --_segment: var(--color-border);

    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);

    &::before {
      content: "";
      width: 0.6rem;
      height: 0.6rem;
      border-radius: var(--radius-full);
      background: var(--_segment);
    }

    span {
      color: var(--color-text-muted);
    }
  }

  .agenda__trail-segment--store-1, .agenda__trail-key--store-1 { --_segment: var(--color-store-1); }
  .agenda__trail-segment--store-2, .agenda__trail-key--store-2 { --_segment: var(--color-store-2); }
  .agenda__trail-segment--store-3, .agenda__trail-key--store-3 { --_segment: var(--color-store-3); }
  .agenda__trail-segment--store-4, .agenda__trail-key--store-4 { --_segment: var(--color-store-4); }
  .agenda__trail-segment--store-5, .agenda__trail-key--store-5 { --_segment: var(--color-store-5); }
  .agenda__trail-segment--store-6, .agenda__trail-key--store-6 { --_segment: var(--color-store-6); }

  .agenda__empty {
    color: var(--color-text-muted);
    font-size: var(--text-caption);
  }

  /* --- Cards --- */
  .agenda__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--space-md);
    min-inline-size: 0;
    padding: var(--space-lg);
  }

  .agenda__card-header--split {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: var(--space-sm);
  }

  /* The readout of Fluxo de caixa: uppercase label over a mono figure. */
  .agenda__readout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-sm);
    margin: 0;

    > div {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    dt {
      color: var(--color-text-secondary);
      font-size: var(--text-xs);
      font-weight: var(--font-bold);
      letter-spacing: var(--tracking-wide);
      line-height: var(--leading-tight);
      text-transform: uppercase;
    }

    dd {
      margin: var(--space-2xs) 0 0;
      overflow: hidden;
      color: var(--_ink);
      font-family: var(--font-mono);
      font-size: var(--text-heading-6, var(--text-body));
      font-variant-numeric: tabular-nums;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .agenda__calendar .grid {
    box-shadow: none;
  }

  .agenda__legend {
    margin: 0;
    padding-block-start: var(--space-md);
    border-block-start: 1px solid var(--_border);
  }

  .agenda__card-title {
    color: var(--_ink);
    font-size: var(--text-heading-5);
    font-weight: var(--font-semibold);
  }

  .agenda__card-hint {
    margin-top: var(--space-2xs, 0.25rem);
    color: var(--color-text-muted);
    font-size: var(--text-caption);
  }

  .agenda__card-subtitle {
    color: var(--_ink);
    font-size: var(--text-body);
    font-weight: var(--font-semibold);
  }

  /* --- State and source marks --- */
  .agenda-state {
    display: inline-flex;
    flex-shrink: 0;

    .icon {
      inline-size: 1.1em;
      block-size: 1.1em;
      fill: currentColor;
    }
  }

  .agenda-state--attended  { color: var(--color-success); }
  .agenda-state--confirmed { color: var(--color-info, var(--indigo-500, #3b82f6)); }
  .agenda-state--pending   { color: var(--color-warning); }
  .agenda-state--absent    { color: var(--color-error); }
  .agenda-state--cancelled { color: var(--color-error); }

  .agenda-source {
    --_bg: var(--color-surface-muted);
    --_ink: var(--color-text-secondary);

    display: inline-block;
    max-inline-size: 100%;
    padding: 0.1rem var(--space-xs);
    overflow: hidden;
    border-radius: var(--radius-sm, var(--radius-md));
    background: var(--_bg);
    color: var(--_ink);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .agenda-source--source-1 { --_bg: var(--color-source-1-bg); --_ink: var(--color-source-1-text); }
  .agenda-source--source-2 { --_bg: var(--color-source-2-bg); --_ink: var(--color-source-2-text); }
  .agenda-source--source-3 { --_bg: var(--color-source-3-bg); --_ink: var(--color-source-3-text); }
  .agenda-source--source-4 { --_bg: var(--color-source-4-bg); --_ink: var(--color-source-4-text); }
  .agenda-source--source-5 { --_bg: var(--color-source-5-bg); --_ink: var(--color-source-5-text); }
  .agenda-source--source-6 { --_bg: var(--color-source-6-bg); --_ink: var(--color-source-6-text); }

  /* --- Body: calendar + day panel --- */
  .agenda__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
  }

  .agenda__main {
    display: grid;
    gap: var(--space-md);
    min-inline-size: 0;
  }

  /* The strip only earns its place when the grid is gone. */
  .agenda-strip {
    display: none;
  }

  /* --- Day panel --- */
  .agenda-day {
    --_stripe: var(--color-border);

    display: grid;
    gap: var(--space-lg);
    align-content: start;
    min-inline-size: 0;
  }

  .agenda-day__split {
    display: grid;
    gap: var(--space-xs);
  }

  .agenda-day__list-section {
    display: grid;
    gap: var(--space-sm);
  }

  .agenda-day__list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);

    h3 {
      margin: 0;
      font-size: var(--text-body);
      color: var(--color-text-heading);
    }

    .search-filter__input {
      inline-size: auto;
    }
  }

  .agenda-day__list {
    display: grid;
    gap: var(--space-2xs);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .agenda-day__item {
    appearance: none;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    grid-template-areas: "time who value" "time who source";
    align-items: center;
    column-gap: var(--space-sm);
    inline-size: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid color-mix(in srgb, var(--_stripe) 70%, var(--color-surface));
    border-inline-start: 3px solid var(--_stripe);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--_stripe) 7%, var(--color-surface));
    color: var(--color-text);
    font: inherit;
    font-size: var(--text-sm);
    text-align: start;
    cursor: pointer;

    time {
      grid-area: time;
      font-weight: var(--font-semibold);
      color: var(--color-text-secondary);
    }

    .agenda-source {
      grid-area: source;
      justify-self: end;
      background: color-mix(in srgb, var(--_stripe) 16%, var(--color-surface));
      color: var(--_stripe);
    }

    &:focus-visible {
      outline: var(--focus-ring);
      outline-offset: var(--focus-ring-offset);
    }

    @media (hover: hover) {
      &:hover {
        background: color-mix(in srgb, var(--_stripe) 12%, var(--color-surface));
      }
    }
  }

  .agenda-day__item--cancelled,
  .agenda-day__item--absent {
    opacity: 0.6;

    .agenda-day__client {
      text-decoration: line-through;
    }
  }

  .agenda-day__who {
    grid-area: who;
    display: grid;
    min-inline-size: 0;
  }

  .agenda-day__client {
    overflow: hidden;
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .agenda-day__seller {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
  }

  .agenda-day__value {
    grid-area: value;
    justify-self: end;
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
  }

  .agenda-day__empty {
    margin: 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    text-align: center;
    color: var(--color-text-secondary);
  }

  .agenda-day__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    text-decoration: none;

    .icon {
      inline-size: 1.1em;
      block-size: 1.1em;
      fill: currentColor;
    }
  }

  /* Store hue for the panel rows. */
  .agenda-day__item--store-1 { --_stripe: var(--color-store-1); }
  .agenda-day__item--store-2 { --_stripe: var(--color-store-2); }
  .agenda-day__item--store-3 { --_stripe: var(--color-store-3); }
  .agenda-day__item--store-4 { --_stripe: var(--color-store-4); }
  .agenda-day__item--store-5 { --_stripe: var(--color-store-5); }
  .agenda-day__item--store-6 { --_stripe: var(--color-store-6); }

  /* --- Month --- */
  .agenda-month {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--color-border-muted);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
  }

  .agenda-month__weekdays,
  .agenda-month__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .agenda-month__weekday {
    padding: var(--space-xs);
    border-block-end: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-align: center;
    color: var(--color-text-secondary);
  }

  .agenda-month__day {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    min-block-size: 7.5rem;
    min-inline-size: 0;
    padding: var(--space-xs);
    border-inline-end: 1px solid var(--color-border-muted);
    border-block-end: 1px solid var(--color-border-muted);
  }

  .agenda-month__day--outside {
    background: var(--color-surface-muted);

    .agenda-month__number {
      color: var(--color-text-muted);
    }
  }

  .agenda-month__number {
    align-self: flex-start;
    min-inline-size: 1.75rem;
    padding: var(--space-2xs);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    text-align: center;
    color: var(--color-text-heading);
    text-decoration: none;

    &:hover {
      text-decoration: none;
    }

    &:focus-visible {
      outline: var(--focus-ring);
      outline-offset: var(--focus-ring-offset);
    }
  }

  .agenda-month__day--today .agenda-month__number {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
  }

  .agenda-month__totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2xs);
    margin: 0;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);

    strong {
      color: var(--color-success-text);
    }
  }

  .agenda-month__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .agenda-month__item {
    --_stripe: var(--color-border);

    overflow: hidden;
    padding: 1px var(--space-xs);
    border-inline-start: 3px solid var(--_stripe);
    border-radius: var(--radius-sm, var(--radius-md));
    border: 1px solid color-mix(in srgb, var(--_stripe) 70%, var(--color-surface));
    background: color-mix(in srgb, var(--_stripe) 7%, var(--color-surface));
    font-size: var(--text-xs);
    text-overflow: ellipsis;
    white-space: nowrap;

    span {
      font-weight: var(--font-semibold);
      color: var(--color-text-secondary);
    }
  }

  .agenda-month__item--cancelled,
  .agenda-month__item--absent {
    opacity: 0.55;
    text-decoration: line-through;
  }

  .agenda-month__item--store-1 { --_stripe: var(--color-store-1); }
  .agenda-month__item--store-2 { --_stripe: var(--color-store-2); }
  .agenda-month__item--store-3 { --_stripe: var(--color-store-3); }
  .agenda-month__item--store-4 { --_stripe: var(--color-store-4); }
  .agenda-month__item--store-5 { --_stripe: var(--color-store-5); }
  .agenda-month__item--store-6 { --_stripe: var(--color-store-6); }

  .agenda-month__more {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-primary);
  }

  /* --- Legend --- */
  .store-color-legend {
    gap: var(--space-sm) var(--space-xl, var(--space-lg));
  }

  /* --- Calendar card actions and focus mode --- */
  .agenda__card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
    gap: var(--space-sm);
  }

  .agenda__card-nav {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);

    .agenda__range {
      min-block-size: 2.5rem;
    }
  }

  .agenda__focus-enter,
  .agenda__focus-leave {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);

    .icon {
      inline-size: 1.25rem;
      block-size: 1.25rem;
      fill: currentColor;
    }
  }

  .agenda__focus-leave {
    display: none;
  }

  /* Focus: only the calendar card stays; the period controls move into it. */
  :scope[data-focused] {
    .agenda__masthead,
    .agenda__summary,
    .agenda-day {
      display: none;
    }

    .agenda__card-nav {
      display: flex;
    }

    .agenda__focus-enter {
      display: none;
    }

    .agenda__focus-leave {
      display: inline-flex;
    }
  }

  /* --- Wide: calendar and day panel side by side --- */
  @container agenda (width >= 72rem) {
    :scope:not([data-focused]) .agenda__body {
      grid-template-columns: minmax(0, 1fr) 19rem;
    }

    .agenda-day {
      position: sticky;
      inset-block-start: var(--space-md);
      max-block-size: calc(100dvh - 2 * var(--space-md));
      overflow: auto;
    }

  }

  /* --- Narrow: the week becomes a day strip plus the day's list --- */
  @container agenda (width < 40rem) {
    .agenda__filters,
    .agenda__filter-bar,
    .agenda__filter-row {
      inline-size: 100%;
    }

    .agenda__field:has(.agenda__range) {
      flex: 1 1 100%;
    }

    .agenda__range {
      inline-size: 100%;
    }

    .agenda__views {
      display: flex;
      inline-size: 100%;
    }

    .agenda__view {
      flex: 1;
      text-align: center;
    }

    .agenda__range-label {
      flex: 1;
      min-inline-size: 0;
    }

    .agenda__card {
      padding: var(--space-md);
    }

    .agenda__field,
    .agenda__filter-bar > .button,
    .agenda__filter-row > .button {
      flex: 1 1 9rem;
    }

    .agenda__field .search-filter__input {
      inline-size: 100%;
    }

    .agenda__metric {
      padding: var(--space-md);
    }

    .agenda-strip {
      display: flex;
      gap: var(--space-xs);
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      padding-block-end: var(--space-2xs);
    }

    .agenda-strip ~ .grid {
      display: none;
    }

    .agenda-month__day {
      min-block-size: 3.5rem;
      align-items: center;
    }

    .agenda-month__list,
    .agenda-month__more,
    .agenda-month__totals strong {
      display: none;
    }

    .agenda-month__totals {
      justify-content: center;
    }
  }

  .agenda-strip__day {
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-inline-size: 5rem;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    scroll-snap-align: start;
    color: var(--color-text);
    text-decoration: none;

    &[aria-current="date"] {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: var(--color-text-on-primary);

      .agenda-strip__value,
      .agenda-strip__name {
        color: inherit;
      }
    }

    &:hover {
      text-decoration: none;
    }

    &:focus-visible {
      outline: var(--focus-ring);
      outline-offset: var(--focus-ring-offset);
    }
  }

  .agenda-strip__day--today:not([aria-current="date"]) {
    border-color: var(--color-primary);
  }

  .agenda-strip__name {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
  }

  .agenda-strip__number {
    font-weight: var(--font-semibold);
  }

  .agenda-strip__count {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    line-height: 1;
  }

  .agenda-strip__value {
    font-size: var(--text-xs);
    color: var(--color-success-text);
  }
}
