:root {
    color-scheme: light dark;
    font: 1rem/1.5 system-ui, sans-serif;
}
main {
    max-width: 34rem;
    margin: 3rem auto;
    padding: 0 1rem;
}
ul {
    padding: 0;
    list-style: none;
}
li {
    margin-block: .6rem;
}
button, input {
    font: inherit;
    padding: .35rem .55rem;
}

.route-page {
    color-scheme: light;
    margin: 0;
    background: #f5f7fb;
    color: #192435;
}
.route-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem max(1rem, calc((100vw - 72rem) / 2));
    background: #fff;
    border-bottom: 1px solid #e0e6ef;
    font-weight: 800;
}
.route-header img {
    object-fit: contain;
}
.route-page main {
    box-sizing: border-box;
    max-width: 74rem;
    margin: 2rem auto;
    padding: 0 1rem;
}
.route-page h1 {
    margin: 0;
    font-size: 1.35rem;
}
.route-muted {
    color: #55657b;
}
.route-page [role="status"]:empty {
    display: none;
}
.route-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
.route-grid li {
    margin: 0;
}
.route-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    text-align: left;
    color: inherit;
    background: #fff;
    border: 2px solid #e0e6ef;
    border-radius: .65rem;
}
.route-tile.is-active {
    background: #ebf1fc;
    border-color: #315bff;
}
.route-tile:not(:disabled) {
    cursor: pointer;
}
.route-tile:not(:disabled):hover,
.route-tile:focus-visible {
    border-color: #315bff;
}
.route-health {
    color: #55657b;
    font-size: .875rem;
}
.route-health.up {
    color: #167044;
}
.route-health.down {
    color: #a42931;
}
.route-selection,
.route-page a {
    color: #244cd6;
}
.route-selection {
    font-size: .85rem;
    font-weight: 700;
}
.route-tile:disabled:not(.is-active) .route-selection {
    color: #55657b;
}
@media (max-width: 850px) {
    .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .route-grid { grid-template-columns: 1fr; }
}

.public-page .public-card {
    width: calc(100% - 2rem);
    max-width: 27rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: .75rem;
}
.public-card label {
    display: grid;
    gap: .3rem;
}
.public-card input {
    min-width: 0;
    border: 1px solid #9eaabd;
    border-radius: .4rem;
}
.public-card button {
    padding: .55rem 1rem;
    color: #fff;
    background: #244cd6;
    border: 0;
    border-radius: .4rem;
    cursor: pointer;
}
.public-card [role="alert"] {
    color: #a42931;
}
