body .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 22rem) minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
}
body .header h2 { text-align: left; min-width: 0; }
body .header .station-context-badge {
    position: static;
    transform: none;
    white-space: normal;
}
body .header .header-links {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    margin: 0;
}
body .header .header-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    white-space: nowrap;
}
.header-links svg, .gr-shell .btn svg, .gr-primary svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body .header .header-station-form { margin: 0; min-width: 0; }
body .header .header-station-form select {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    margin: 0 !important;
    padding: .55rem 2rem .55rem .75rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: .7rem;
    background-color: #fff;
    color: #0057b8;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    cursor: pointer;
}
.header-station-form select:focus-visible { outline: 3px solid #8fc3fa; outline-offset: 3px; }
.header-station-form .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.gr-shell .btn, .gr-primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
@media (max-width: 58rem) {
    body .header { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    body .header h2 { text-align: center; }
    body .header .header-station-form { width: min(100%, 23rem); }
    body .header .header-links { justify-content: center; flex-wrap: wrap; }
}

/* Únicamente los iconos de Inicio y Cerrar sesión, compartidos por todos los roles. */
.header-links .header-nav-icon { color: #fff; stroke: currentColor; }
