.timetable-work .page-title { margin: 0 0 1rem; }
.timetable-form, .timetable-selects { display: grid; gap: 1rem; }
.timetable-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.timetable-form legend { padding: 0; margin-bottom: .6rem; font-weight: 650; }
.timetable-paper { overflow-x: auto; border-radius: .7rem; background: #f8fafc; color: #172633; }
.timetable-paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.timetable-paper caption { text-align: left; padding: .7rem .6rem; font-weight: 650; }
.timetable-paper th, .timetable-paper td { padding: .3rem; border: 1px solid #aab8c3; text-align: left; }
.timetable-paper thead { background: #e0ebf2; }
.timetable-paper label { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; cursor: pointer; }
.timetable-paper input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: #16577b; }
.timetable-paper tr:has(input:checked) { background: #e1edff; }
.timetable-paper tr.timetable-correct { background: #d8f1e2; }
.timetable-paper tr.timetable-correct th[scope="row"] { box-shadow: inset 3px 0 #27764c; }
.timetable-selects { grid-template-columns: minmax(0, 1fr); }
.timetable-selects label { display: grid; align-content: space-between; gap: .4rem; }
.timetable-selects select, .timetable-row-panel select {
  width: 100%; min-width: 0; min-height: 2.75rem; padding: .6rem;
  border: 1px solid var(--line,#597181); border-radius: .6rem;
  background: var(--bg,#0c1721); color: var(--text,#e5edf6); font: inherit; font-size: 1rem;
}
.timetable-form select:focus-visible { outline: 2px solid var(--amber,#ffd078); outline-offset: 2px; }
.timetable-form > .action { justify-self: start; }
.timetable-work [hidden] { display: none; }
.timetable-result { margin-top: 1.25rem; }
.timetable-result p { margin: .25rem 0 .7rem; }
.timetable-reference { margin: 1rem 0; }
.timetable-links a, .timetable-entry { display: inline-flex; align-items: center; text-decoration: none; min-height: 2.75rem; }
@media (max-width: 440px) {
  .timetable-paper table { font-size: .74rem; table-layout: fixed; min-width: 255px; }
  .timetable-paper label { min-width: 0; }
  .timetable-paper th, .timetable-paper td { padding: .15rem; }
  .timetable-paper th[scope="row"] { overflow-wrap: anywhere; }
}

.timetable-cases { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: .6rem; }
.timetable-cases .timetable-entry { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: .65rem .8rem; line-height: 1.35; }
.timetable-cases .timetable-entry small { font-size: .75rem; font-weight: 500; }
.timetable-cases a[aria-current="page"] { border-color: var(--accent,#70bdea); }
.timetable-launch { margin-block: 1rem; }
.timetable-launch h2, .timetable-other h2 { margin: 0 0 .55rem; font-size: 1rem; }
.timetable-other { margin-top: 1rem; }
.timetable-scenario { margin-bottom: .4rem; }
.timetable-conditions { margin: 0 0 1.2rem; }
.timetable-paper td.timetable-solid { border-top: 2px solid #334654; }
.timetable-paper td.timetable-dashed { border-top: 2px dashed #334654; }
.timetable-paper td.timetable-inverse { background: #18232e; color: #fff; }
.timetable-paper .timetable-current th[scope="row"] { border-inline-start: 2px solid #16577b; }
.timetable-here { display: block; color: #174a69; font-size: .73em; }
.timetable-paper tr.timetable-incorrect { background: #f8e3dd; }
.timetable-paper tr.timetable-incorrect th[scope="row"] { box-shadow: inset 3px 0 #9e392f; }
.timetable-mark-feedback { display: block; color: #274052; font-size: .72em; text-align: center; }
.timetable-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.timetable-row-panel { border: 1px solid var(--line,#34495c); border-radius: .65rem; padding: .5rem .75rem; }
.timetable-row-panel summary { min-height: 2.75rem; align-content: center; cursor: pointer; font-weight: 650; }
.timetable-row-panel label { display: block; margin: .8rem 0 .35rem; }

.timetable-row-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .45rem .8rem; margin-bottom: .25rem; }
.timetable-row-details dt { font-size: .8rem; }
.timetable-row-details dd { margin: 0; font-weight: 600; }
@media (max-width: 440px) {
  .timetable-paper th:nth-child(1) { width: 12%; }
  .timetable-paper th:nth-child(2) { width: 12%; }
  .timetable-paper th:nth-child(3) { width: 11%; }
  .timetable-paper th:nth-child(4) { width: 26%; }
  .timetable-paper th:nth-child(n+5) { width: 13%; }
  .timetable-paper td:nth-child(n+5) { white-space: nowrap; }
}
