.wrap {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px 24px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(23,45,82,.08);
  margin-bottom: 12px;
}

.title {
  font-size: 1.2rem;
  font-weight: 800;
}

.station-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.station-logo-card {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23,45,82,.08);
  overflow: hidden;
}

.station-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

.station-logo-card.no-logo {
  background: #eef4fb;
  color: #29415f;
  font-weight: 900;
  letter-spacing: .04em;
}

.sub {
  color: var(--muted);
  margin-top: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(160px,1fr));
  gap: 10px;
  margin-top: 12px;
}

.box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.k {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.v {
  margin-top: 5px;
  font-size: .92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid #e3ebf5;
  padding: 10px;
  text-align: left;
  font-size: .92rem;
}

th {
  background: #edf3fc;
  color: #42516b;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  min-width: 980px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.warn {
  color: #7b2f2f;
  background: #ffe9e9;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  padding: 10px;
}

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

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cfe2fb;
  border-radius: 999px;
  background: #ecf5ff;
  color: #1f3f6d;
  font-size: .9rem;
  font-weight: 800;
}

.source-card {
  font-size: .9rem;
  color: #5d6b82;
}

.schedule-highlight {
  margin-top: 10px;
  background: #ecf5ff;
  border: 1px solid #cfe2fb;
  border-radius: 10px;
  padding: 10px 12px;
}

.schedule-highlight .k { margin: 0; }

.schedule-highlight .v {
  margin-top: 4px;
  font-weight: 700;
  color: #1f3f6d;
}

#station-mini-map {
  height: 260px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap {
    margin: 12px auto;
    padding: 0 12px 18px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
  }

  .title {
    font-size: 1.08rem;
  }

  .station-logo-card {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }

  .station-logo-card img {
    max-width: 44px;
    max-height: 44px;
  }

  #station-mini-map {
    height: 220px;
  }

  table {
    min-width: 620px;
  }

  th,
  td {
    padding: 9px;
    font-size: .84rem;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .service-badge {
    font-size: .84rem;
  }
}

.inactive-warning {
  background: #fff7e6;
  border-color: #ffd899;
  color: #63420c;
  line-height: 1.45;
}

.inactive-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #4f3300;
}
