/* ===== MeasureX Stations ===== */
*{ box-sizing:border-box; }

.stations-page{
    min-height: calc(100vh - 80px);
    padding: 28px 18px 60px;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: #fff;
    background:
            radial-gradient(1200px 700px at 15% 0%, rgba(45,42,122,.55) 0%, transparent 55%),
            radial-gradient(900px 600px at 85% 10%, rgba(22,1,87,.55) 0%, transparent 55%),
            linear-gradient(180deg, #070014 0%, #0f023f 55%, #070014 100%);
}

.stations-hero{
    max-width: 1100px;
    margin: 0 auto 14px;
    padding: 10px 2px;
}
.stations-hero h1{
    margin: 0 0 6px;
    font-size: clamp(26px, 3.4vw, 40px);
}
.stations-hero p{
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
}

.card{
    max-width: 1100px;
    margin: 12px auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.card h2{
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

.register-form{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}

.register-form input{
    flex: 1 1 260px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
}

.register-form input::placeholder{ color: rgba(255,255,255,0.55); }

.register-form button{
    padding: 11px 16px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, #0f023f, #160157);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform .08s ease, filter .2s ease;
}
.register-form button:hover{ filter: brightness(1.06); }
.register-form button:active{ transform: translateY(1px); }

.hint{
    margin: 10px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.alert{
    max-width: 1100px;
    margin: 12px auto;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
}
.alert.success{
    border-color: rgba(120,255,170,0.25);
}
.alert.danger{
    border-color: rgba(255,120,140,0.25);
    background: rgba(253,236,239,0.10);
}

.empty{
    color: rgba(255,255,255,0.78);
    margin: 6px 0 0;
}

.stations-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.station-tile{
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.serial{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 12px;
}

.chip{
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(135,206,235,.16);
    border: 1px solid rgba(135,206,235,.35);
}
.serial-value{
    font-weight: 900;
    letter-spacing: .4px;
    color: rgba(255,255,255,0.92);
}

.station-tile label{
    display:block;
    margin: 10px 0 6px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.station-tile input,
.station-tile textarea{
    width: 100%;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
}

.station-tile textarea{ resize: vertical; }

.save-btn{
    margin-top: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    transition: transform .08s ease, filter .2s ease;
}
.save-btn:hover{ filter: brightness(1.07); }
.save-btn:active{ transform: translateY(1px); }

@media (max-width: 980px){
    .stations-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
    .stations-grid{ grid-template-columns: 1fr; }
}
