* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: monospace;
  background: #1a1a2e;
  color: #e0e0e0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

#stale-banner {
  background: #b71c1c;
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  font-size: 13px;
  flex-shrink: 0;
}

.header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 8px 0 4px;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
  font-size: 15px;
}

.stop-name {
  font-weight: bold;
  color: #fff;
}

.arrow {
  color: #888;
}

.countdowns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
  border-bottom: 1px solid #333;
}

.countdown {
  text-align: center;
  padding: 6px 4px;
  border-right: 1px solid #333;
}

.countdown:last-child {
  border-right: none;
}

.countdown .cd-row {
  font-size: 16px;
  padding: 2px 0;
}

.countdown .cd-row:first-child {
  color: #66bb6a;
  font-weight: bold;
}

.countdown .cd-row:last-child {
  color: #e0e0e0;
}

.cd-urgent {
  color: #ff5252 !important;
  font-weight: bold;
}

.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  overflow: hidden;
}

.column {
  overflow-y: auto;
  padding: 4px 0;
  text-align: center;
  border-right: 1px solid #333;
}

.column:last-child {
  border-right: none;
}

.dep {
  padding: 2px 4px;
  font-size: 15px;
  color: #999;
}

.dep.next {
  color: #66bb6a;
  font-weight: bold;
}

.dep.future {
  color: #e0e0e0;
}

.dep.past {
  color: #555;
}
