/* RC-B / FS-A compact glance strip, cardless day crumbs, selected-range chrome. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#calendarFreshness {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

#calendarGlanceStrip,
.calendar-glance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  margin: 0 0 8px;
  overflow: visible;
  scroll-snap-type: none;
}

#calendarGlanceStrip.is-stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#calendarGlanceStrip.is-single-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glance-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "kicker kicker chip"
    "value  meta   meta";
  align-content: start;
  align-items: start;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
  min-height: 32px;
  height: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
  touch-action: manipulation;
}

.glance-kicker {
  grid-area: kicker;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.15;
  text-transform: uppercase;
  text-overflow: clip;
  white-space: nowrap;
}

.glance-value {
  grid-area: value;
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  color: var(--ink);
  font: 800 16px/1.15 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  text-overflow: clip;
  white-space: nowrap;
}

.glance-meta {
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  max-height: calc(1.25em * 2);
  white-space: normal;
  text-overflow: clip;
}

.glance-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 16%, var(--card));
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.glance-card > .glance-chip {
  grid-area: chip;
  position: static;
  justify-self: end;
  align-self: start;
  margin: 0;
}

.glance-card.is-projected .glance-value {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

#calendarGlanceStrip .sts-meta,
#calendarGlanceStrip .sts-disclaimer,
#calendarGlanceStrip #calendarSafeToSpendAsOf,
#calendarGlanceStrip #calendarSafeToSpendHint,
#calendarGlanceStrip #calendarSafeToSpendConfidence,
#calendarGlanceStrip #calendarSafeToSpendDisclaimer {
  display: none !important;
}

#calendarGlanceStrip #calendarRailSts {
  margin-bottom: 0;
  cursor: pointer;
}

#calendarRailAccounts,
#calendarView .account-forecast-tile,
#calendarView .household-total-card {
  display: none !important;
}

#calendarRailBuffer .calendar-buffer-control {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

#calendarRailBuffer .calendar-buffer-control input {
  min-height: 44px;
  padding: 8px;
}

.calendar-insight-band {
  display: block;
  min-height: 0;
  max-height: none;
  margin: 16px 0 0;
}

.calendar-insight-band strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.range-matrix {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
}

.range-matrix-heading {
  margin: 0 0 8px;
  color: var(--muted);
  font: 750 12px/1.3 "DM Sans", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.range-matrix-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.range-matrix-row dt {
  color: var(--muted);
  font-size: 12px;
}

.range-matrix-row dd {
  margin: 0;
  font: 800 13px/1.2 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}

.range-matrix-row.is-expandable {
  display: block;
  padding: 0;
}

.pending-outflow-details {
  min-width: 0;
}

.pending-outflow-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 6px 0;
  cursor: pointer;
  list-style: none;
}

.pending-outflow-details summary::-webkit-details-marker {
  display: none;
}

.pending-outflow-label {
  color: var(--muted);
  font-size: 12px;
}

.pending-outflow-total {
  font: 800 13px/1.2 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}

.pending-outflow-list {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  list-style: none;
}

.pending-outflow-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#calendarView .calendar .event.event-crumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
}

#calendarView .calendar .event.event-crumb .event-name,
#calendarView .calendar .event.event-crumb .cs-calendar-item-title {
  display: block;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  font-weight: 650;
  line-height: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendarView .calendar .event.event-crumb .event-amount {
  display: block;
  flex-shrink: 0;
  justify-self: end;
  min-width: max-content;
  overflow: visible;
  color: inherit;
  font-size: inherit;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  white-space: nowrap;
}

#calendarView .calendar .event.event-crumb .event-status,
#calendarView .calendar .event.event-crumb .event-visual,
#calendarView .calendar .event.event-crumb .mini-bank,
#calendarView .calendar .event.event-crumb .bank-avatar {
  display: none !important;
}

#calendarView .calendar .event.event-crumb.income { color: #08704c; }
#calendarView .calendar .event.event-crumb.expense { color: #b3372c; }
#calendarView .calendar .event.event-crumb.pending,
#calendarView .calendar .event.event-crumb.pending.income,
#calendarView .calendar .event.event-crumb.pending.expense { color: #7a4500; }
#calendarView .calendar .event.event-crumb.is-card-activity,
#calendarView .calendar .event.event-crumb.is-card-activity.income,
#calendarView .calendar .event.event-crumb.is-card-activity.expense,
#calendarView .calendar .event.event-crumb.is-card-activity.pending {
  color: #1d4ed8;
  opacity: 1;
}
#calendarView .calendar .more {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

/* Calendar-only Compact denser type — does not change global CashShield fonts. */
html[data-calendar-text="compact"] #calendarView .calendar .day {
  padding: 4px;
}
html[data-calendar-text="compact"] #calendarView .calendar .day-number {
  font-size: 12px;
  line-height: 1.15;
}
html[data-calendar-text="compact"] #calendarView .calendar .event.event-crumb {
  font-size: 8px;
  line-height: 1.15;
  margin-top: 1px;
  min-height: 0;
  padding: 0 !important;
  /* Name takes the cell; amount stays a short trailing column. Two lines before ellipsis. */
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 3px;
  align-items: start;
}
html[data-calendar-text="compact"] #calendarView .calendar .event.event-crumb .event-name,
html[data-calendar-text="compact"] #calendarView .calendar .event.event-crumb .cs-calendar-item-title {
  font-size: 8px;
  line-height: 1.15;
  min-width: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
html[data-calendar-text="compact"] #calendarView .calendar .event.event-crumb .event-amount {
  font-size: 8px;
  line-height: 1.15;
  width: max-content;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: right;
  align-self: start;
}
html[data-calendar-text="compact"] #calendarView .calendar .more,
html[data-calendar-text="compact"] #calendarView .calendar .day-projected-balance {
  font-size: 10px;
  line-height: 1.15;
}

.calendar .day-total,
.calendar .day-projected-balance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: auto;
  padding-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.calendar .day-projected-arrow { font-size: 11px; font-weight: 800; }
.calendar .day-projected-amount { color: var(--muted); }
.calendar .day-projected-balance.is-above,
.calendar .day-projected-balance.is-above .day-projected-arrow,
.calendar .day-projected-balance.is-above .day-projected-amount { color: #08704c; }
.calendar .day-projected-balance.is-below,
.calendar .day-projected-balance.is-below .day-projected-arrow,
.calendar .day-projected-balance.is-below .day-projected-amount { color: #b3372c; }
.calendar .day-projected-balance.is-zero .day-projected-arrow { display: none; }

#calendarView .calendar .day.today {
  box-shadow: none;
  background: var(--card);
}
body[data-theme="midnight"] #calendarView .calendar .day.today:not(.is-selected):not(.agenda-selected) {
  box-shadow: none;
  background: color-mix(in srgb, #12162b 88%, #2a3158);
}
body[data-theme="cloud"] #calendarView .calendar .day.today:not(.is-selected):not(.agenda-selected) {
  box-shadow: none;
}
#calendarView .calendar .day > .day-number {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#calendarView .calendar .day.today .day-number {
  position: relative;
  isolation: isolate;
  display: block;
  width: max-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d4ed8;
  font-weight: 800;
}

#calendarView .calendar .day.today .day-number::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, #3164f4 10%, transparent);
  pointer-events: none;
}

#calendarView .calendar .day.is-selected .day-number,
#calendarView .calendar .day.agenda-selected .day-number {
  background: transparent;
  box-shadow: none;
  color: inherit;
}

#calendarView .calendar .day.today.is-selected .day-number,
#calendarView .calendar .day.today.agenda-selected .day-number {
  background: transparent;
  color: #1d4ed8;
  box-shadow: none;
  font-weight: 800;
}

#calendarView .calendar .day.is-range {
  background: color-mix(in srgb, #3164f4 8%, var(--card));
}

#calendarView .calendar .day.is-selected,
#calendarView .calendar .day.agenda-selected {
  background: color-mix(in srgb, #3164f4 16%, var(--card));
  box-shadow: inset 0 0 0 2px #3164f4;
}

/* Selected fill must keep footer ↑/↓ readable. Never force green on down/flat days. */
#calendarView .calendar .day.is-selected .day-projected-balance.is-zero .day-projected-amount,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-zero .day-projected-amount {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}
#calendarView .calendar .day.is-selected .day-projected-balance.is-above,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-above,
#calendarView .calendar .day.is-selected .day-projected-balance.is-above .day-projected-arrow,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-above .day-projected-arrow,
#calendarView .calendar .day.is-selected .day-projected-balance.is-above .day-projected-amount,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-above .day-projected-amount {
  color: #08704c;
}
#calendarView .calendar .day.is-selected .day-projected-balance.is-below,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-below,
#calendarView .calendar .day.is-selected .day-projected-balance.is-below .day-projected-arrow,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-below .day-projected-arrow,
#calendarView .calendar .day.is-selected .day-projected-balance.is-below .day-projected-amount,
#calendarView .calendar .day.agenda-selected .day-projected-balance.is-below .day-projected-amount {
  color: #b3372c;
}
#calendarView .calendar .day.is-selected .event.event-crumb.income,
#calendarView .calendar .day.agenda-selected .event.event-crumb.income { color: #08704c; }
#calendarView .calendar .day.is-selected .event.event-crumb.expense,
#calendarView .calendar .day.agenda-selected .event.event-crumb.expense { color: #b3372c; }
#calendarView .calendar .day.is-selected .event.event-crumb.pending,
#calendarView .calendar .day.agenda-selected .event.event-crumb.pending,
#calendarView .calendar .day.is-selected .event.event-crumb.pending.income,
#calendarView .calendar .day.agenda-selected .event.event-crumb.pending.income,
#calendarView .calendar .day.is-selected .event.event-crumb.pending.expense,
#calendarView .calendar .day.agenda-selected .event.event-crumb.pending.expense { color: #7a4500; }
#calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity,
#calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity,
#calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.income,
#calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.income,
#calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.expense,
#calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.expense,
#calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.pending,
#calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.pending { color: #1d4ed8; }

body[data-theme="midnight"] .calendar .day-projected-balance.is-above,
body[data-theme="midnight"] .calendar .day-projected-balance.is-above .day-projected-arrow,
body[data-theme="midnight"] .calendar .day-projected-balance.is-above .day-projected-amount { color: #6ee7b7; }
body[data-theme="midnight"] .calendar .day-projected-balance.is-below,
body[data-theme="midnight"] .calendar .day-projected-balance.is-below .day-projected-arrow,
body[data-theme="midnight"] .calendar .day-projected-balance.is-below .day-projected-amount { color: #fca5a5; }
body[data-theme="midnight"] .calendar .day-projected-balance.is-zero .day-projected-amount,
body[data-theme="midnight"] .glance-meta,
body[data-theme="midnight"] #calendarFreshness,
body[data-theme="midnight"] .calendar-insight-band { color: #9aa3c7; }
body[data-theme="midnight"] .glance-card {
  background: color-mix(in srgb, #12162b 88%, #2a3158);
  border-color: #2c3358;
}
body[data-theme="midnight"] .glance-value { color: #f3f5ff; }
body[data-theme="midnight"] .glance-card.is-projected .glance-value { color: #c6cce6; }
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.income { color: #6ee7b7; }
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.expense { color: #fca5a5; }
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.pending,
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.pending.income,
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.pending.expense { color: #fbbf24; }
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.is-card-activity,
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.is-card-activity.income,
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.is-card-activity.expense,
body[data-theme="midnight"] #calendarView .calendar .event.event-crumb.is-card-activity.pending { color: #93c5fd; }
body[data-theme="midnight"] #calendarView .calendar .day.is-range {
  background: color-mix(in srgb, #7ea0ff 10%, #12162b);
}
body[data-theme="midnight"] #calendarView .calendar .day.today .day-number,
body[data-theme="midnight"] #calendarView .calendar .day.today.is-selected .day-number,
body[data-theme="midnight"] #calendarView .calendar .day.today.agenda-selected .day-number {
  color: #c5d4ff;
}

body[data-theme="midnight"] #calendarView .calendar .day.today .day-number::after {
  background: color-mix(in srgb, #7ea0ff 16%, transparent);
}

body[data-theme="midnight"] #calendarView .calendar .day.is-selected,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected {
  background: color-mix(in srgb, #7ea0ff 18%, #12162b);
  box-shadow: inset 0 0 0 2px #7ea0ff;
}
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-zero .day-projected-amount,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-zero .day-projected-amount {
  color: #d7dcf5;
}
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-above,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-above,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-above .day-projected-arrow,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-above .day-projected-arrow,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-above .day-projected-amount,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-above .day-projected-amount {
  color: #6ee7b7;
}
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-below,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-below,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-below .day-projected-arrow,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-below .day-projected-arrow,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .day-projected-balance.is-below .day-projected-amount,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .day-projected-balance.is-below .day-projected-amount {
  color: #fca5a5;
}
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.income,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.income { color: #6ee7b7; }
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.expense,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.expense { color: #fca5a5; }
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.pending,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.pending,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.pending.income,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.pending.income,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.pending.expense,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.pending.expense { color: #fbbf24; }
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.income,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.income,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.expense,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.expense,
body[data-theme="midnight"] #calendarView .calendar .day.is-selected .event.event-crumb.is-card-activity.pending,
body[data-theme="midnight"] #calendarView .calendar .day.agenda-selected .event.event-crumb.is-card-activity.pending { color: #93c5fd; }

@media (max-width: 720px) {
  #calendarGlanceStrip,
  .calendar-glance-strip,
  #calendarGlanceStrip.is-single-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .glance-card {
    min-height: 40px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "kicker kicker kicker"
      "value  chip   ."
      "meta   meta   meta";
  }
  .glance-card > .glance-chip {
    justify-self: start;
    align-self: center;
  }
  /* Visual-only name+amount previews — day cell remains the sole interaction target. */
  #calendarView .calendar .day .event.event-crumb,
  #calendarView .calendar .day .more {
    pointer-events: none !important;
  }
  #calendarView .calendar .event.event-crumb {
    display: grid;
    font-size: 10px;
    column-gap: 2px;
    cursor: inherit;
    pointer-events: none !important;
  }
  #calendarView .calendar .event.event-crumb .event-name {
    display: block;
    max-width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #calendarView .calendar .event.event-crumb .event-amount {
    display: block;
    font-size: 10px;
  }
  .calendar .day-total,
  .calendar .day-projected-balance { font-size: 10px; }
  .calendar-insight-band { max-height: none; min-height: 0; }
}

@media (min-width: 721px) and (max-width: 999px) {
  #calendarGlanceStrip,
  #calendarGlanceStrip.is-single-row,
  #calendarGlanceStrip.is-stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) and (max-width: 1279px) {
  #calendarGlanceStrip.is-single-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  #calendarGlanceStrip.is-stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance-value { font-size: 17px; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  #calendarGlanceStrip.is-single-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  #calendarGlanceStrip.is-stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance-value {
    flex: 0 0 auto;
    overflow: visible;
    text-overflow: clip;
    font-size: 17px;
  }
}

@media (min-width: 1440px) {
  #calendarGlanceStrip,
  #calendarGlanceStrip.is-single-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .glance-value {
    flex: 0 0 auto;
    overflow: visible;
    text-overflow: clip;
    font-size: 17px;
  }
}
