body.theme-standard {
  background: #1b1b1b;
  color: #f5f7fb;
}

.theme-standard .standard-shell {
  width: min(1180px, calc(100vw - 0.75rem));
  margin: 0 auto;
  padding: 0.35rem 0 1rem;
}

.theme-standard .standard-top-panel,
.theme-standard .standard-panel {
  background: #1b1b1b;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.theme-standard .standard-top-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 0.55rem;
}

.theme-standard .standard-top-copy {
  display: grid;
  gap: 0.2rem;
}

.theme-standard .standard-kicker {
  margin: 0;
  color: #9d9d9d;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-standard .standard-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  line-height: 1;
  color: #ffffff;
}

.theme-standard .standard-top-side {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.theme-standard .standard-clock-panel {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem 0.4rem;
  border-radius: 0.95rem;
  border: 4px solid #ffffff;
  background: #1120b8;
  color: #ffffff;
}

.theme-standard .standard-clock-main,
.theme-standard .standard-clock-seconds {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.theme-standard .standard-clock-main {
  font-size: 2.1rem;
}

.theme-standard .standard-clock-seconds {
  font-size: 1.1rem;
  color: #ffd743;
}

.theme-standard .standard-main {
  display: grid;
  gap: 0.4rem;
}

.theme-standard .standard-controls-panel,
.theme-standard .standard-board-panel {
  background: #1b1b1b;
  padding: 0;
}

.theme-standard .standard-search-row,
.theme-standard .standard-favorites-row,
.theme-standard .standard-lines-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-standard .standard-favorites-row,
.theme-standard .standard-lines-row {
  margin-top: 0.35rem;
}

.theme-standard .standard-inline-label {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.theme-standard .standard-select-trigger,
.theme-standard .standard-search-input,
.theme-standard .station-favorite-toggle,
.theme-standard .line-button,
.theme-standard .ghost-button,
.theme-standard .favorite-toggle,
.theme-standard .favorite-station-button {
  border: 1px solid #555;
  border-radius: 0.25rem;
  background: #5a5a5a;
  color: #fff;
  box-shadow: none;
}

.theme-standard .standard-select-trigger {
  width: 2.55rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.theme-standard .standard-search-field {
  position: relative;
  flex: 1 1 280px;
  max-width: 430px;
}

.theme-standard .standard-search-input {
  width: 100%;
  height: 2.35rem;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  background: #3b3b3b;
  font-weight: 700;
}

.theme-standard .search-results {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid #555;
  background: #262626;
}

.theme-standard .search-item,
.theme-standard .favorite-station-button {
  border-radius: 0.25rem;
  border: 1px solid #666;
  background: #404040;
  color: #fff;
}

.theme-standard .search-item:hover,
.theme-standard .search-item.active,
.theme-standard .favorite-station-button.active,
.theme-standard .favorite-toggle.active,
.theme-standard .line-button.active,
.theme-standard .ghost-button:hover {
  background: #606060;
  border-color: #9a9a9a;
}

.theme-standard .favorite-station-button {
  width: auto;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  justify-content: center;
  font-size: 0.88rem;
}

.theme-standard .favorite-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.theme-standard .favorite-station-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.theme-standard .favorite-station-meta {
  display: none;
}

.theme-standard .station-favorite-toggle,
.theme-standard .favorite-toggle {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  font-size: 1rem;
  color: #ffd743;
}

.theme-standard .favorite-toggle {
  width: 2rem;
  height: 2rem;
}

.theme-standard .section-text,
.theme-standard .search-item-codes,
.theme-standard .refresh-time,
.theme-standard .footer {
  color: #b3b3b3;
}

.theme-standard .section-text.compact {
  margin: 0;
  font-size: 0.86rem;
}

.theme-standard .standard-lines-row .line-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.theme-standard .standard-all-lines,
.theme-standard .line-button {
  min-height: 2.55rem;
  padding: 0.35rem 0.55rem;
}

.theme-standard .line-button {
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-standard .standard-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.2rem;
  border-radius: 0.22rem;
  background: var(--line-color, #1f9a52);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.theme-standard .standard-board-panel {
  overflow: hidden;
}

.theme-standard .standard-board-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 0.3rem;
}

.theme-standard .standard-board-heading {
  display: none;
}

.theme-standard .status-pill {
  border-radius: 999px;
  border: 1px solid #565656;
  background: #3b3b3b;
  color: #e6e6e6;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
}

.theme-standard .status-pill.ok {
  background: #3b3b3b;
  border-color: #565656;
}

.theme-standard .status-pill.error {
  background: #632e2e;
  border-color: #a84c4c;
}

.theme-standard .messages {
  margin: 0 0 0.35rem;
  display: grid;
  gap: 0.3rem;
}

.theme-standard .message-card {
  padding: 0.55rem 0.7rem;
  border-radius: 0.2rem;
  border: 1px solid #6f4d4d;
  background: #402020;
}

.theme-standard .standard-board {
  display: grid;
  gap: 0;
}

.theme-standard .station-row {
  display: grid;
  grid-template-columns: 84px 100px 46px minmax(0, 1fr) 66px;
  gap: 0.55rem;
  align-items: center;
  min-height: 4rem;
  padding: 0.2rem 0.3rem 0.2rem 0.45rem;
  border: 0;
  border-radius: 0;
}

.theme-standard .station-row.tone-a {
  background: #1f67ad;
}

.theme-standard .station-row.tone-b {
  background: #0f4b81;
}

.theme-standard .station-row.cancelled,
.theme-standard .station-row.delayed {
  background: #8a3d42;
}

.theme-standard .station-row-mission {
  display: grid;
  gap: 0.05rem;
  align-content: center;
}

.theme-standard .station-row-mission-code {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
}

.theme-standard .station-row-status {
  font-size: 0.78rem;
  line-height: 1.05;
  color: #ffffff;
  font-weight: 700;
}

.theme-standard .station-row-time {
  color: #fff159;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.theme-standard .station-row-time.small {
  font-size: 1.6rem;
}

.theme-standard .station-row-line {
  display: flex;
  justify-content: center;
}

.theme-standard .station-row-main {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  align-content: center;
}

.theme-standard .station-row-destination {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
}

.theme-standard .station-row-stops {
  min-width: 0;
}

.theme-standard .station-row-marquee {
  overflow: hidden;
}

.theme-standard .station-row-marquee-track {
  display: inline-flex;
  gap: 1.6rem;
  min-width: 100%;
  white-space: nowrap;
}

.theme-standard .station-row-marquee-track.is-scrolling {
  animation: marquee-slide 17s linear infinite;
}

.theme-standard .station-row-marquee-track span {
  color: #8ec2ee;
  font-size: 0.84rem;
  font-weight: 600;
}

.theme-standard .station-row-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 0.15rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: rgba(6, 37, 66, 0.32);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
}

.theme-standard .station-row-empty {
  display: block;
  padding: 0.75rem;
  background: #2d2d2d;
}

.theme-standard .station-row-empty-copy {
  display: grid;
  gap: 0.2rem;
}

.theme-standard .footer {
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

.theme-standard .footer > span {
  min-height: 1.9rem;
}

.theme-standard .footer-language .language-switcher {
  border-color: #4a4a4a;
  background: #2b2b2b;
}

.theme-standard .footer-language .language-link {
  color: #d6d6d6;
}

.theme-standard .footer-language .language-link:hover,
.theme-standard .footer-language .language-link.is-active,
.theme-standard .footer-theme a.is-active,
.theme-standard .footer-theme a:hover {
  color: #fff159;
  background: #4f4f4f;
}

.theme-standard .footer-current-theme {
  color: #fff159;
}

@media (max-width: 920px) {
  .theme-standard .standard-shell {
    width: min(100vw - 0.5rem, 100%);
  }

  .theme-standard .standard-top-panel {
    display: grid;
  }

  .theme-standard .standard-top-side {
    justify-content: space-between;
  }

  .theme-standard .station-row {
    grid-template-columns: 74px 88px 40px minmax(0, 1fr) 60px;
  }
}

@media (max-width: 760px) {
  .theme-standard .standard-top-side {
    display: grid;
    justify-content: start;
  }

  .theme-standard .standard-clock-main {
    font-size: 1.65rem;
  }

  .theme-standard .station-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "mission time platform"
      "line line line"
      "main main main";
    gap: 0.4rem 0.7rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .theme-standard .station-row-mission {
    grid-area: mission;
  }

  .theme-standard .station-row-time {
    grid-area: time;
    font-size: 1.45rem;
  }

  .theme-standard .station-row-line {
    grid-area: line;
    justify-content: flex-start;
  }

  .theme-standard .station-row-main {
    grid-area: main;
  }

  .theme-standard .station-row-platform {
    grid-area: platform;
    min-width: 3rem;
    min-height: 3rem;
    font-size: 1.55rem;
  }

  .theme-standard .station-row-destination {
    font-size: 1.55rem;
  }
}
