h2 > span {
  position: sticky;
  left: 1em;
}

.category-legend {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.category-legend > li {
  display: block;
  list-style-type: none;
  padding: 0.5em;
  flex-grow: 1;
}

.schedule-grid {
  text-align: left;
  border-collapse: collapse;
  height: fit-content;
}

.schedule-grid th {
  box-sizing: border-box;
  width: 10em;
  padding: 0.5em;
}

.schedule-grid th.time {
  width: 3em;
  text-align: right;
}

.schedule-grid tbody th.time {
  position: sticky;
  left: 0;
}

.schedule-grid th.location {
  text-align: center;
}

.schedule-grid thead {
  position: sticky;
  top: 10em;
}

.schedule-grid th {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 860px) {
  .schedule-grid thead {
    top: 4em;
  }
}

.schedule-grid thead th {
  border-bottom: 2px solid black;
}

.schedule-grid > tbody > tr > * {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  height: 2em;
}

.occupied-time {
  position: relative;
}

.location-hotel-room {
  font-size: 75%;
}

.panel-short-info {
  display: block;
  font-size: 60%;
}

.grid-event {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  padding: 0.5em;
  overflow: hidden;
}

.grid-event > p {
  margin: 0;
}

.list-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
  justify-content: space-evenly;
  gap: 20px;
  text-align: left;
}

dialog {
  min-width: 10em;
  max-width: 80vw;
  padding: 2em;
}

dialog h1 {
  margin: 0;
}

dialog .close {
  position: absolute;
  top: 1em;
  right: 1em;
  cursor: pointer;
}

#event-search input {
  width: 100%;
  font: inherit;
  line-height: 1.5em;
  height: 1.5em;
}
