body.route-timetable {
  height: 100dvh;
  overflow: hidden;
  background: #f7df9a;
  color: #143362;
}

.route-timetable .app-shell,
.route-timetable #app-content {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.timetable-page {
  --time-scale: 1;
  display: flex;
  width: min(100%, 1200px);
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  padding: 17px 13px 0;
}

.timetable-page__title {
  flex: 0 0 auto;
  margin: 0 0 19px 7px;
  color: #143362;
  font-size: 32px;
  font-weight: 900;
  line-height: 40px;
}

.timetable-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  flex: 0 0 auto;
}

.timetable-dates button {
  height: 44px;
  padding: 0 8px;
  border: 2px solid #143362;
  border-radius: 8px;
  background: #fff;
  color: #143362;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.timetable-dates button.is-selected {
  background: #237bb9;
  color: #fff;
}

.timetable-frame {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border: 2px solid #143362;
  border-radius: 8px;
  background: #fff;
  scrollbar-width: none;
}

.timetable-frame-shell {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 32px;
}

.timetable-frame::-webkit-scrollbar { display: none; }

.timetable-board {
  position: relative;
  min-height: 1232px;
  padding: 24px 8px 34px;
}

.timetable-board__tab {
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: 4;
  width: 86px;
  height: 30px;
}

.timetable-board__tab-shadow {
  display: block;
  width: 82px;
  height: 26px;
}

.timetable-board__tab-shape {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 79px;
  height: 24px;
}

.timetable-board__tab span {
  position: absolute;
  top: 3px;
  left: 9px;
  color: #fff;
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 16px;
}

.timetable-board__header {
  display: grid;
  grid-template-columns: 29px repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 46px;
  margin: 0 5px 20px;
}

.timetable-board__venue {
  display: grid;
  min-width: 0;
  place-items: center;
  border-radius: 6px;
  color: #143362;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.timetable-board__venue--main-stage { background: #e9f3fa; }
.timetable-board__venue--kuroda-hall { background: #fff1e4; }

.timetable-board__body {
  position: relative;
  display: flex;
  height: calc(var(--board-height) * var(--time-scale));
  margin: 0 2px;
}

.timetable-board__line {
  position: absolute;
  top: calc(var(--slot-offset) * var(--time-scale));
  right: 0;
  left: 0;
  height: 1.5px;
  background: #d7dde3;
  pointer-events: none;
}

.timetable-board__line span {
  position: absolute;
  top: -9px;
  left: 0;
  width: 37px;
  background: #fff;
  color: #20252b;
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: left;
}

.timetable-board__axis { flex: 0 0 37px; }
.timetable-board__column {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.timetable-event {
  position: absolute;
  top: calc(var(--event-offset) * var(--time-scale) + 2px);
  right: 3px;
  left: 3px;
  height: max(var(--minimum-card-height, 34px), calc(var(--event-duration) * var(--time-scale) - 4px));
  z-index: 2;
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px 4px;
  border: 1.5px solid #143362;
  border-left-width: 4px;
  border-radius: 5px;
  background: #e9f3fa;
  color: #143362;
  line-height: 1.25;
  text-align: center;
}

.timetable-event--main-stage { border-left-color: #237bb9; }
.timetable-event--kuroda-hall {
  border-left-color: #e66103;
  background: #fff1e4;
}

.timetable-event__time {
  display: block;
  flex: 0 0 auto;
  font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.timetable-event strong {
  display: block;
  max-width: 100%;
  flex: 0 0 auto;
  font-family: 'Source Han Sans JP', 'Noto Sans JP', sans-serif;
  font-size: var(--mobile-title-size, 13px);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.timetable-event--kuroda-hall .timetable-event__time {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.timetable-event--kuroda-hall strong {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

a.timetable-event:hover,
a.timetable-event:focus-visible { filter: brightness(.96); }

@media (min-width: 700px) {
  .timetable-page { --time-scale: 3; padding: 24px 24px 0; }
  .timetable-page__title { margin-bottom: 16px; }
  .timetable-dates { width: 100%; align-self: stretch; }
  .timetable-board { padding-right: 20px; padding-left: 20px; }
  .timetable-board__header { grid-template-columns: 50px repeat(2, minmax(0, 1fr)); }
  .timetable-board__venue { font-size: 20px; }
  .timetable-board__axis { flex-basis: 54px; }
  .timetable-board__line span { width: 54px; font-size: 12px; }
  .timetable-event__time { font-size: 12px; }
  .timetable-event strong { font-size: var(--desktop-title-size, 17px); }
  .timetable-event--kuroda-hall .timetable-event__time { font-size: 12px; }
}
