html, body {
  margin: 0;
  padding: 0;
  background: #f4f2ed;
  color: #1d1d1d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

body {
  min-width: 300px;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}

.topbar,
.panel,
.station {
  background: #ffffff;
  border: 1px solid #c8c3b8;
  margin-bottom: 12px;
}

.topbar {
  padding: 12px;
  overflow: hidden;
}

.brand {
  float: left;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.stamp {
  float: right;
  font-size: 16px;
  color: #4d4d4d;
  margin-top: 9px;
  text-align: right;
}

.nav {
  clear: both;
  padding-top: 12px;
}

.button,
.nav a,
.nav span {
  display: inline-block;
  min-width: 82px;
  margin: 0 5px 6px 0;
  padding: 10px 12px;
  border: 1px solid #8b8579;
  background: #eee9df;
  color: #111111;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.small-button {
  min-width: 0;
  margin-top: 8px;
  padding: 6px 9px;
}

.nav .active {
  background: #da2b1f;
  border-color: #9c1d15;
  color: #ffffff;
}

.station-head {
  padding: 11px 12px;
  border-bottom: 1px solid #d7d2c8;
  background: #fbfaf7;
}

.station-head table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.station-head td {
  padding: 0;
  border: 0;
  vertical-align: middle;
}

.station-title-cell {
  width: 38%;
}

.station-walk-cell {
  width: 24%;
}

.station-lines-cell {
  width: 38%;
}

.station-name {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

.station-walk {
  color: #1d1d1d;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.station-lines {
  color: #555555;
  font-size: 16px;
  text-align: right;
}

table.departures {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

table.departures td {
  padding: 10px 8px;
  border-bottom: 1px solid #e0ddd6;
  text-align: left;
  vertical-align: top;
}

.col-line {
  width: 74px;
}

.col-min {
  width: 176px;
  text-align: right;
  padding-right: 18px;
  white-space: nowrap;
  font-size: 0;
}

.line {
  display: inline-block;
  min-width: 48px;
  padding: 4px 6px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  border-radius: 3px;
}

.u1 { background: #d9232e; }
.u2 { background: #7a2c88; }
.u3 { background: #ef7d00; color: #111111; }
.u4 { background: #009540; }
.u5 { background: #36a9e1; color: #111111; }
.u6 { background: #9d6930; }
.tram { background: #c82032; }
.bus { background: #1b6da8; }

.minutes {
  display: inline-block;
  width: 42px;
  font-size: 24px;
  font-weight: bold;
  text-align: right;
  white-space: nowrap;
}

.next {
  display: inline-block;
  width: 30px;
  color: #666666;
  font-size: 24px;
  font-weight: normal;
  text-align: right;
  white-space: nowrap;
}

.sep {
  display: inline-block;
  width: 24px;
  color: #999999;
  font-size: 22px;
  font-weight: normal;
  text-align: center;
}

.soon {
  color: #b22018;
}

.status {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  background: #f6df72;
  color: #111111;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #d6b840;
}

.ok {
  background: #dfead3;
  border-color: #b8c9a2;
  color: #254215;
}

.notice {
  background: #fff6c7;
  border: 1px solid #d2ba5c;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice-line {
  margin-top: 4px;
}

.empty {
  padding: 14px 12px;
  color: #555555;
}

.footer {
  color: #666666;
  font-size: 14px;
  padding: 4px 0 16px;
}

.panel {
  padding: 12px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.field {
  margin-bottom: 12px;
}

.field label,
.station-option strong {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

input[type="text"],
select {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #9e988c;
  background: #ffffff;
  color: #1d1d1d;
  font-size: 18px;
}

.small-input {
  max-width: 170px;
}

.hint {
  color: #666666;
  font-size: 14px;
}

.diagnostics {
  margin: 10px 0 12px;
  padding: 8px;
  background: #f7f7f7;
  border: 1px solid #d0ccc4;
  color: #444444;
  font-size: 14px;
}

.station-option {
  padding: 10px 0;
  border-top: 1px solid #e0ddd6;
}

.line-option {
  margin: 8px 0 0 24px;
}

.directions {
  margin: 4px 0 0 24px;
  color: #444444;
  font-size: 16px;
}

.form-actions {
  padding-top: 8px;
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .brand,
  .station-name,
  .stamp {
    float: none;
    display: block;
    text-align: left;
  }

  .brand {
    font-size: 24px;
  }

  .stamp {
    margin-top: 4px;
  }

  .station-head {
    padding-left: 8px;
    padding-right: 8px;
  }

  .station-name {
    font-size: 17px;
  }

  .station-walk,
  .station-lines {
    font-size: 13px;
  }

  .nav a,
  .nav span,
  .button {
    min-width: 67px;
    padding-left: 8px;
    padding-right: 8px;
  }

  table.departures td {
    padding: 9px 6px;
  }

  .col-line {
    width: 62px;
  }

  .col-min {
    width: 154px;
    padding-right: 16px;
  }

  .line {
    min-width: 38px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .minutes {
    width: 34px;
    font-size: 19px;
  }

  .next {
    width: 26px;
    font-size: 19px;
  }

  .sep {
    width: 18px;
    font-size: 18px;
  }
}
