/* RailPulse passenger experience. Accessible, responsive, no heavy framework. */
.experience-shortcuts{margin:13px 0 4px}
.shortcut{width:100%;padding:12px 13px;display:flex;align-items:center;gap:11px;text-align:left;border-radius:12px;
 border:1px solid #327782;background:linear-gradient(108deg,#153e49,#12252f);color:#d9fcf9;cursor:pointer}
.shortcut:hover{background:#1c5058}
.shortcut-icon{width:31px;height:31px;display:grid;place-items:center;background:#1b646e;border-radius:9px;
 color:#7dfff3;font-size:23px}
.shortcut strong{font-size:12px;display:block}
.shortcut small{font-size:10px;color:#abd1d4;display:block;margin-top:4px}
.shortcut>span:last-child{margin-left:auto;font-size:20px;color:#7ce9d9}
.shortcut-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.shortcut-pair button{display:flex;align-items:center;justify-content:center;gap:6px;color:#bfd7e1;
 background:var(--surface);border:1px solid var(--border);padding:10px 7px;border-radius:9px;font-weight:700;font-size:11px}
.shortcut-pair button:hover{border-color:#57abb8}
.shortcut-pair b{font-size:9px;color:#efbb76;font-variant-numeric:tabular-nums}
.experience-panel{position:absolute;z-index:780;right:20px;top:80px;bottom:18px;width:min(445px,calc(100% - 40px));
 background:rgba(10,22,33,.97);border:1px solid #345666;box-shadow:0 22px 80px #000a;
 border-radius:17px;display:flex;flex-direction:column;overflow:hidden;backdrop-filter:blur(24px);
 animation:enter .18s ease}
.experience-panel[hidden],.experience-view[hidden],.selected-station[hidden],.community-form[hidden]{display:none!important}
.experience-header{padding:21px 23px 14px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #243f50}
.experience-header h2{font:700 24px 'Space Grotesk',sans-serif;letter-spacing:-.7px;margin:8px 0 0;color:#eaf8fd}
#experience-close{width:34px;height:34px;border:1px solid #466273;border-radius:8px;background:#1c3342;color:#e7f7fc;font-size:24px}
.experience-tabs{display:flex;border-bottom:1px solid #2c4656;padding:8px 14px 0;gap:5px}
.experience-tabs button{flex:1;background:transparent;color:#9cb8c8;border:0;border-bottom:2px solid transparent;
 font-size:11px;padding:12px 3px;font-weight:700}
.experience-tabs button.active{color:#67e5e0;border-bottom-color:#54d5d3}
.experience-body{padding:17px 19px 23px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#385665 transparent}
.exp-lead{color:#abc4d0;line-height:1.65;font-size:12px;margin:2px 0 21px}
.field-label{display:block;color:#c6dce5;font-size:11px;font-weight:750;margin:12px 0 9px}
.field-label small{color:#8ba6b4;font-size:10px;font-weight:500}
.station-input-row{display:flex;gap:7px}
.station-input-row input,.time-input,.community-form input,.community-form select,.community-form textarea{
 background:#122836;border:1px solid #355463;border-radius:10px;color:#edfaff;min-width:0;
 padding:11px 12px;font-size:12px;outline:none;width:100%}
.station-input-row input:focus,.time-input:focus,.community-form textarea:focus{border-color:#36c7c4;box-shadow:0 0 0 2px #3de1d52b}
.station-input-row button{flex:0 0 40px;border-radius:9px;background:#1c4e58;color:#6feee2;font-size:22px;border:1px solid #4f7d85}
.station-suggestions{margin-top:7px;border-radius:11px;max-height:220px;overflow:auto}
.station-suggestions button{display:flex;width:100%;align-items:center;gap:8px;text-align:left;padding:10px 12px;
 border:1px solid #2d4858;background:#142632;color:#d7ecf3;font-size:12px;cursor:pointer}
.station-suggestions button+button{border-top:0}
.station-suggestions button:hover{background:#224353}
.station-suggestions button small{color:#92aebb;margin-left:auto;font-size:10px}
.selected-station{margin:12px 0;padding:12px 14px;background:#123d40;border:1px solid #31837e;border-radius:11px;color:#c0faf0;font-size:12px;font-weight:700;line-height:1.5}
.exp-status{color:#bdcfd8;background:#162b37;border:1px solid #2a4555;font-size:12px;padding:12px 13px;
 border-radius:11px;line-height:1.6;margin:14px 0}
.exp-status.error{color:#ffd4ba;background:#3b2925;border-color:#7f4b40}
.arrival-results,.alerts-list{display:flex;flex-direction:column;gap:9px}
.arrival-card,.notice-card{border:1px solid #30505f;background:#132735;border-radius:12px;padding:13px 14px}
.arrival-card{display:grid;grid-template-columns:74px 1fr;gap:10px;align-items:center}
.arrival-card time{color:#7ff6e1;font:700 21px 'Space Grotesk',sans-serif}
.arrival-card strong{font-size:12px;display:block;color:#edf8fc}
.arrival-card small{color:#95b4c2;font-size:11px;display:block;line-height:1.65;margin-top:4px}
.arrival-card.eligible{border-color:#2e9b83;background:#183c37}
.arrival-card.canceled{opacity:.65;border-color:#a65d58}
.notice-card{border-left:3px solid #d5a160}
.notice-card strong{font-size:11px;color:#f3c58e;display:block;margin-bottom:9px}
.notice-card p{color:#d3e3e9;font-size:12px;line-height:1.6;margin:0 0 9px;white-space:normal;overflow-wrap:anywhere}
.notice-card a{font-size:10px;color:#8becdf;text-decoration:none}
.exp-note{font-size:10px;line-height:1.6;color:#91aab8;padding:12px;background:#122533;border-radius:9px;margin:18px 0 0}
.exp-outline{border:1px solid #4d7b81;background:#173e46;border-radius:9px;color:#c6f3ec;font-size:11px;padding:10px 13px;cursor:pointer}
.exp-primary{background:#3ed0c5;color:#08222b;border:0;border-radius:10px;padding:12px 15px;font-size:12px;font-weight:800;cursor:pointer}
.exp-primary:disabled{background:#668a8e;cursor:not-allowed;color:#d9e5e7}
.community-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:13px 0}
.community-switch button{border:1px solid #34586a;color:#adc9d3;background:#132a39;padding:11px 6px;border-radius:9px;font-size:11px;font-weight:700}
.community-switch button.active{color:#c5fff3;border-color:#48afa7;background:#1e5352}
.community-messages{display:flex;flex-direction:column;gap:9px;max-height:300px;overflow:auto;scrollbar-width:thin;min-height:45px}
.community-msg{border:1px solid #2e4a59;background:#142936;border-radius:11px;padding:12px}
.community-msg header{display:flex;align-items:center;gap:6px;justify-content:space-between;font-size:11px}
.community-msg header strong{color:#ddf5f9}
.community-msg header small{color:#8aaab5}
.community-msg p{font-size:12px;line-height:1.6;color:#cadfe6;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}
.community-msg footer{display:flex;justify-content:space-between;align-items:center;color:#95aebd;font-size:10px}
.community-msg footer button{background:transparent;border:1px solid #446173;color:#bad5df;border-radius:6px;padding:5px 9px;font-size:10px}
.community-form{display:flex;flex-direction:column;gap:10px;margin-top:13px;padding-top:14px;border-top:1px solid #294657}
.community-form label{font-size:11px;color:#bbd3de;font-weight:700;display:flex;flex-direction:column;gap:7px;flex:1}
.community-form-row{display:flex;gap:8px}
.community-form textarea{resize:vertical;min-height:74px}
.train-extra-actions{display:flex;gap:8px;margin-top:12px}
.train-extra-actions button{flex:1;border:1px solid #416672;border-radius:8px;background:#173440;color:#bce7e7;
 padding:10px 5px;font-size:11px;font-weight:700}
.train-live-advisory{font-size:11px;color:#c4d4dd;line-height:1.6;border-left:2px solid #6db6ac;
 background:#17313a;padding:12px;margin-top:12px;border-radius:4px}
.train-live-advisory.warning{border-left-color:#e6ad71;color:#ffd5b7}
.experience-switcher{display:flex}
#experience-panel .turnstile-note{color:#92aab5;font-size:10px}
#experience-panel :disabled{opacity:.55;cursor:not-allowed}
body.light .shortcut{background:linear-gradient(115deg,#def2f2,#eff9f9);border-color:#b0d7d7;color:#143d45}
body.light .shortcut:hover{background:#d5edef}
body.light .shortcut small{color:#496874}
body.light .shortcut-icon{background:#bde4e3;color:#075c63}
body.light .shortcut>span:last-child{color:#2a6d73}
body.light .shortcut-pair button{background:#fff;color:#274b59;border-color:#bfced6}
body.light .experience-panel{background:rgba(252,254,255,.98);border-color:#abcbd3;box-shadow:0 18px 65px #30485e55}
body.light .experience-header{border-bottom-color:#cbdce2}
body.light .experience-header h2{color:#173443}
body.light #experience-close{background:#eaf3f5;color:#234351;border-color:#b9ced8}
body.light .experience-tabs{border-bottom-color:#cbdde4}
body.light .experience-tabs button{color:#4f6b78}
body.light .experience-tabs button.active{color:#087e80;border-color:#098989}
body.light .exp-lead,body.light .field-label,body.light .community-form label{color:#355363}
body.light .field-label small{color:#5a7480}
body.light .station-input-row input,body.light .time-input,body.light .community-form input,body.light .community-form select,body.light .community-form textarea{
 background:#fff;border-color:#b1c8d3;color:#1c3545}
body.light .station-input-row button{background:#d8eeee;color:#0d6c75;border-color:#a8cbce}
body.light .station-suggestions button{background:#fff;color:#193745;border-color:#c3d8df}
body.light .station-suggestions button:hover{background:#eaf4f6}
body.light .station-suggestions button small{color:#56707a}
body.light .selected-station{background:#dff3ee;color:#0b635a;border-color:#a4d4c9}
body.light .exp-status{background:#edf4f7;color:#365464;border-color:#c9dbe3}
body.light .exp-status.error{background:#fff0e6;border-color:#d7b09a;color:#8c4a26}
body.light .arrival-card,body.light .notice-card{background:#fff;border-color:#c5d8df}
body.light .arrival-card.eligible{background:#ecf8ee;border-color:#8fcaab}
body.light .arrival-card time{color:#087d7c}
body.light .arrival-card strong,body.light .notice-card p{color:#183745}
body.light .arrival-card small{color:#506b78}
body.light .notice-card{border-left-color:#bf844e}
body.light .notice-card strong{color:#925a25}
body.light .notice-card a{color:#08777e}
body.light .exp-note{color:#536e7b;background:#eef5f7}
body.light .exp-outline{background:#e1f2f3;color:#176976;border-color:#afd4d8}
body.light .community-switch button{background:#f3f7f9;color:#4d6774;border-color:#becfd8}
body.light .community-switch button.active{background:#d6f3ee;color:#0a6b68;border-color:#6bb8ac}
body.light .community-msg{background:#f3f8fa;border-color:#c4d9df}
body.light .community-msg header strong,body.light .community-msg p{color:#1c3a4a}
body.light .community-msg header small,body.light .community-msg footer{color:#55717b}
body.light .community-msg footer button{border-color:#adc8d2;color:#255d69}
body.light .community-form{border-color:#c6d9df}
body.light .train-live-advisory{background:#e6f5f3;color:#295a5c}
body.light .train-live-advisory.warning{background:#fff2e7;color:#8f512b}
body.light .train-extra-actions button{background:#e4f4f2;color:#176d71;border-color:#a5cdd1}
@media(max-width:1190px){.experience-panel{width:min(415px,calc(100% - 24px));right:12px;top:71px}}
@media(max-width:780px){
 .experience-panel{position:absolute;left:0;right:0;top:auto;bottom:65px;width:100%;height:min(82dvh,710px);
 border-radius:20px 20px 0 0;z-index:900;box-shadow:0 -10px 44px #000b}
 .experience-body{padding:15px 16px 19px}
 .experience-header{padding:17px 18px 12px}
 .experience-header h2{font-size:21px}
 .experience-shortcuts{margin-bottom:13px}
 .community-messages{max-height:220px}
}
@media(prefers-reduced-motion:reduce){.experience-panel{animation:none}}

/* More usable first-screen density on laptops. At least one real train should be visible without excessive scrolling. */
@media(min-width:781px) and (max-height:980px){
 .side-inner{padding-top:18px}
 .side-intro h1{font-size:26px;margin:8px 0 6px;line-height:1.06}
 .side-intro p{font-size:11px;line-height:1.4;margin-bottom:12px}
 .experience-shortcuts{margin:9px 0 4px}
 .shortcut{padding:9px 10px}
 .shortcut-icon{width:27px;height:27px}
 .shortcut-pair button{padding:7px 5px}
 .tabs{margin:10px 0 16px}
 .filters{gap:5px}
 .filters button{padding:9px 11px}
 .list-title{margin-top:19px;margin-bottom:10px}
 .train-card{padding-top:10px;padding-bottom:10px}
}
@media(max-width:780px) and (max-height:750px){
 .experience-panel{height:calc(100dvh - 90px)}
 .experience-header{padding-top:12px;padding-bottom:8px}
 .experience-tabs{padding-top:4px}
 .experience-tabs button{padding:9px 3px}
}

/* Live FGC coverage uses a separate filter and a fifth KPI without hiding primary information. */
.fgc-text{color:#f0a55b}
.dot.amber{background:#eea453;box-shadow:0 0 8px #ec9e5977}
@media(min-width:1151px){
 .stats{grid-template-columns:repeat(5,minmax(0,1fr));max-width:780px}
 .stats>div{padding:16px 13px 13px}
 .stats>div:nth-last-child(2){border-right:1px solid #233746}
 .stats small{font-size:8px}
}
@media(min-width:781px) and (max-width:1150px){
 .stats{grid-template-columns:repeat(3,minmax(0,1fr));max-width:580px}
 .stats>div{padding:12px}
 .stats>div:nth-child(3){border-right:0}
 .stats>div:nth-child(4){border-top:1px solid #2e424c}
 .stats>div:nth-child(5){border-top:1px solid #2e424c}
}
body.light .fgc-text,body.light .stats .fgc-text{color:#aa641d}
body.light .stats>div:nth-last-child(2){border-right-color:#cedce3}
@media(max-width:780px){
 .stats>div:nth-child(4),.stats>div:nth-child(5){display:none!important}
 .stats>div:nth-child(3){border-right:0!important}
}
