:root {
  color-scheme: dark;
  font:
    16px/1.45 "DM Sans",
    system-ui,
    sans-serif;
  background: #0b121c;
  color: #e8f1fa;
  --panel: #152130;
  --border: #2a394b;
  --mint: #80e4c1;
  --muted: #acbdcf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 68px;
  background: #101a26;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
}
header b {
  display: inline-grid;
  place-items: center;
  background: var(--mint);
  color: #12232a;
  width: 34px;
  height: 35px;
  border-radius: 7px;
  font: italic bold 26px system-ui;
}
.brand {
  font-weight: 750;
  font-size: 20px;
}
.brand span,
#clock,
small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 450;
}
#shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
[hidden] {
  display: none !important;
}
nav {
  padding: 28px 14px;
  background: #101924;
  border-right: 1px solid var(--border);
}
nav button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--muted);
  margin-bottom: 5px;
}
nav [aria-current="page"] {
  background: #213440;
  color: var(--mint);
}
main {
  padding: clamp(18px, 3vw, 48px);
  max-width: 1650px;
  width: 100%;
  margin: 0 auto;
}
.heading,
.toolbar,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.heading {
  justify-content: space-between;
  margin-bottom: 22px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 21px;
  margin: 18px 0;
}
.toolbar {
  margin: 16px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.card,
dialog,
#auth {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 20px;
}
.card strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.card:first-child {
  border-top: 3px solid var(--mint);
}
button,
a.action,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: #192a3b;
}
button,
.action {
  cursor: pointer;
}
button:hover {
  border-color: var(--mint);
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}
button.primary,
#auth button,
footer button:last-child {
  color: #10251d;
  background: var(--mint);
  font-weight: 650;
}
label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}
input,
textarea {
  background: #0e1823;
  min-width: 0;
}
input[type="checkbox"] {
  justify-self: start;
}
textarea {
  width: 100%;
  min-height: 78px;
}
.tablewrap,
.timeline-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
td,
th {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border);
}
td button {
  margin: 2px;
}
.station-ids summary {
  cursor: pointer;
  color: var(--mint);
}
.station-ids > div {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.station-ids strong {
  margin-right: 8px;
  overflow-wrap: anywhere;
}
.logo {
  object-fit: contain;
  width: 45px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}
.logo.pending {
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.timeline {
  min-width: 1160px;
}
.lane {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-top: 1px solid var(--border);
  align-items: center;
}
.lane > span {
  padding: 8px;
}
.track {
  position: relative;
  height: 54px;
  background: repeating-linear-gradient(
    to right,
    transparent 0 calc(4.1667% - 1px),
    #293647 calc(4.1667% - 1px) 4.1667%
  );
}
.track button {
  position: absolute;
  top: 5px;
  height: 43px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  background: #234152;
  padding: 4px;
}
.marker {
  position: absolute;
  border-left: 2px solid var(--mint);
  height: 100%;
  pointer-events: none;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
}
dialog {
  width: min(580px, 94vw);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #000a;
}
footer {
  justify-content: flex-end;
  margin-top: 14px;
}
#auth {
  max-width: 400px;
  margin: 6vh auto;
}
#message:not(:empty) {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #203448;
  padding: 10px 16px;
  box-shadow: 0 4px 25px #0008;
  border-radius: 8px;
  max-width: 90vw;
  z-index: 2;
}
#formerror {
  color: #ffb6a7;
}
.active {
  color: var(--mint);
}
@media (max-width: 800px) {
  #shell {
    display: block;
  }
  nav {
    display: flex;
    overflow: auto;
    padding: 8px;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    margin: 0;
  }
  .brand span {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  td,
  th {
    padding: 8px 4px;
  }
}
.scale {
  height: 26px;
}
.scale small {
  position: absolute;
  font-size: 11px;
  top: 4px;
}
