body.site-shell #main-content .events-workspace {
  position: relative;
  display: grid;
  gap: 24px;
  margin-block: 24px 40px;
  min-width: 0;
}
body.site-shell #main-content .events-panel {
  padding: 24px;
  border: 1px solid var(--block-edge, #7185a3);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
body.site-shell #main-content .events-panel:hover {
  border-color: var(--link);
}
body.site-shell #main-content #event-calendar[hidden] {
  display: none;
}
body.site-shell #main-content .events-panel h2, body.site-shell #main-content .events-panel h3 {
  margin: 0 0 12px;
}
body.site-shell #main-content .events-panel p {
  margin: 0 0 16px;
}
body.site-shell #main-content .events-recommendation {
  display: grid;
  justify-items: start;
  gap: 16px;
}
body.site-shell #main-content .events-recommendation > p {
  margin: 0;
}
body.site-shell #main-content .events-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  container-type: inline-size;
}
body.site-shell #main-content .events-summary > article > strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 12px;
}
body.site-shell #main-content .events-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 16px;
  align-items: end;
}
body.site-shell #main-content .events-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}
body.site-shell #main-content .events-filters input, body.site-shell #main-content .events-filters select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--block-edge, #7185a3);
  border-radius: 6px;
}
body.site-shell #main-content .events-filters input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
body.site-shell #main-content .events-heading {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
body.site-shell #main-content .events-heading h2 {
  margin: 0;
}
body.site-shell #main-content .events-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
body.site-shell #main-content .calendar-scroll {
  overflow-x: auto;
  scrollbar-color: var(--link) var(--surface-soft);
}
body.site-shell #main-content .calendar-grid {
  width: 100%;
  min-width: 630px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 6px;
}
body.site-shell #main-content .calendar-grid th {
  text-align: center;
  padding: 8px;
}
body.site-shell #main-content .calendar-grid td {
  vertical-align: top;
  padding: 0;
  border: 0;
}
body.site-shell #main-content .calendar-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 12px 8px;
  border: 1px solid var(--block-edge, #7185a3);
  border-radius: 6px;
  background: var(--surface-soft);
  text-decoration: none;
  color: var(--text);
}
body.site-shell #main-content .calendar-day > strong {
  font-size: 22px;
}
body.site-shell #main-content .calendar-day > span {
  font-size: 16px;
  color: inherit;
}
body.site-shell #main-content .calendar-day:hover {
  background: var(--surface-raised);
  border-color: var(--link);
}
body.site-shell #main-content .calendar-day.is-active {
  box-shadow: inset 0 0 0 2px var(--link);
}
body.site-shell #main-content .calendar-day.has-events {
  background: var(--event-planned-surface);
  color: var(--event-planned-ink);
}
body.site-shell #main-content .calendar-day.has-events[data-calendar-period=past] {
  background: var(--event-completed-surface);
  color: var(--event-completed-ink);
}
body.site-shell #main-content .calendar-day.has-events:hover {
  background: var(--surface-raised);
  color: var(--text);
}
body.site-shell #main-content .calendar-day__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: max(32px, 1.45em);
  min-height: max(32px, 1.45em);
  border-radius: 50%;
}
body.site-shell #main-content .calendar-day__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
body.site-shell #main-content .calendar-day__count::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
@media (min-width: 1001px) {
  body.site-shell #main-content .calendar-grid {
    min-width: max(630px, 42em + 36px);
  }
}
@media (max-width: 1199px) {
  body.site-shell #main-content .calendar-day__preview {
    display: none;
  }
}
@media (max-width: 1000px) {
  body.site-shell #main-content .calendar-day__count-label {
    display: none;
  }
}
body.site-shell #main-content .calendar-day__today[hidden] {
  display: none;
}
body.site-shell #main-content .calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-block: 16px;
}
body.site-shell #main-content .calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.site-shell #main-content .calendar-legend i {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
body.site-shell #main-content .calendar-legend__today {
  background: var(--calendar-today-surface);
  border: 1px solid var(--calendar-today-ink);
  border-radius: 50%;
}
body.site-shell #main-content .calendar-legend__selected {
  border: 2px solid var(--link);
  border-radius: 4px;
}
body.site-shell #main-content .calendar-legend__events {
  background: var(--event-planned-ink);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
body.site-shell #main-content .calendar-outside {
  display: block;
  padding: 12px 8px;
  color: var(--text-muted);
}
body.site-shell #main-content .calendar-mobile-help {
  display: none;
  margin-top: 16px;
}
body.site-shell #main-content .event-agenda {
  display: grid;
  gap: 16px;
}
body.site-shell #main-content .event-agenda-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--block-edge, #7185a3);
}
body.site-shell #main-content .event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  height: fit-content;
}
body.site-shell #main-content .event-date strong {
  font-size: 30px;
}
body.site-shell #main-content .event-status {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--block-edge, #7185a3);
  border-radius: 6px;
  margin-bottom: 12px;
}
body.site-shell #main-content .event-agenda-card__body {
  min-width: 0;
}
body.site-shell #main-content .events-empty {
  padding: 16px 0;
}
body.site-shell #main-content #event-agenda {
  scroll-margin-top: 16px;
}
body.site-shell #main-content .events-workspace :is(a, button, input, select):focus-visible {
  outline: 3px solid var(--button-focus);
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  body.site-shell #main-content .events-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body.site-shell #main-content .events-workspace {
    position: relative;
    gap: 16px;
  }
  body.site-shell #main-content .events-panel {
    padding: 16px;
  }
  body.site-shell #main-content .events-summary, body.site-shell #main-content .events-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  body.site-shell #main-content .calendar-mobile-help {
    display: block;
  }
  body.site-shell #main-content .event-agenda-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.site-shell #main-content .event-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }
  body.site-shell #main-content .events-actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

body.site-shell #main-content .calendar-day.is-today .calendar-day__number {
  background: var(--calendar-today-surface);
  color: var(--calendar-today-ink);
  border: 1px solid currentColor;
}
body.site-shell #main-content .calendar-day__preview {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  border-top: 1px solid currentColor;
  padding-top: 6px;
  margin-top: 6px;
}
@media (max-width: 767px) {
  body.site-shell #main-content .calendar-grid {
    min-width: calc(14em + 12px);
    border-spacing: 2px;
  }
  body.site-shell #main-content .calendar-grid th {
    padding: 4px 0;
    font-size: 16px;
  }
  body.site-shell #main-content .calendar-day {
    padding: 6px 2px;
    min-height: 76px;
    align-items: center;
  }
  body.site-shell #main-content .calendar-day__number {
    align-self: center;
    min-width: max(28px, 1.27em);
    min-height: max(28px, 1.27em);
    font-size: 20px;
  }
  body.site-shell #main-content .calendar-day__count-label, body.site-shell #main-content .calendar-day__preview, body.site-shell #main-content .calendar-day__today {
    display: none;
  }
  body.site-shell #main-content .calendar-outside {
    padding: 6px 2px;
    text-align: center;
  }
}

body.site-shell #main-content .calendar-grid thead, body.site-shell #main-content .calendar-grid tbody {
  display: block;
}
body.site-shell #main-content .calendar-grid tr {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}
body.site-shell #main-content .calendar-grid td {
  display: flex;
  min-width: 0;
}
body.site-shell #main-content .calendar-day {
  width: 100%;
}
@media (max-width: 767px) {
  body.site-shell #main-content .calendar-grid tr {
    gap: 2px;
    margin-bottom: 2px;
  }
  body.site-shell #main-content .events-summary > article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
  }
  body.site-shell #main-content .events-summary > article > strong {
    grid-row: 1/3;
    margin: 0;
  }
  body.site-shell #main-content .events-summary > article > h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  body.site-shell #main-content .events-summary > article > p {
    margin: 0;
    font-size: 16px;
  }
}

body.site-shell #main-content {
  scroll-padding-top: 0;
}
body.site-shell #main-content .event-calendar, body.site-shell #main-content #event-agenda {
  scroll-margin-top: 16px;
}

body.site-shell #main-content .event-calendar .events-actions .button {
  min-width: 48px;
}
body.site-shell #main-content .event-calendar .events-actions .icon-button {
  width: 48px;
  padding-inline: 10px;
}
body.site-shell #main-content .calendar-help {
  margin-bottom: 16px;
}
body.site-shell #main-content .calendar-help summary {
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  padding-block: 8px;
}
body.site-shell #main-content .calendar-help p {
  padding-top: 12px;
}
body.site-shell #main-content .calendar-help summary:focus-visible {
  outline: 3px solid var(--button-focus);
  outline-offset: 3px;
}

[data-theme=dark] body.site-shell #main-content .events-filters :is(input, select) {
  color-scheme: dark;
}

[data-theme=light] body.site-shell #main-content .events-filters :is(input, select) {
  color-scheme: light;
}

@container (max-width:12em) {
  body.site-shell #main-content .events-summary > article {
    grid-template-columns: minmax(0, 1fr);
  }
  body.site-shell #main-content .events-summary > article > strong {
    grid-row: auto;
  }
}
