/* Detail surfaces only; preserve map, sidebar width and mobile sheet geometry. */
#sidebar :is(#details,#norway-details,#finland-details,#station-board):not([hidden]){border:1px solid #35465d;border-radius:12px;background:#142236;padding:14px;margin:16px 0 12px;min-width:0;overflow-wrap:anywhere}
#sidebar :is(#details,#norway-details,#finland-details) .detailhead{align-items:center;margin-bottom:12px;gap:8px}
#sidebar :is(#details,#norway-details,#finland-details) .detailhead h2,#sidebar #station-name{font-size:clamp(19px,2vw,23px);line-height:1.28;margin:0;letter-spacing:-.3px}
#sidebar :is(#details,#norway-details,#finland-details) .detailhead button{flex:0 0 38px;min-width:38px;min-height:38px}
#sidebar :is(#details,#norway-details,#finland-details) h3{font-size:17px;line-height:1.4;margin:16px 0 10px}
#sidebar :is(#details,#norway-details,#finland-details) .journey-event{position:relative;margin:0 0 8px;padding:12px 10px 12px 20px;border:1px solid #33445b;border-radius:9px;background:#192a3e;min-width:0;line-height:1.45}
#sidebar .journey-event::before{content:'';position:absolute;left:8px;top:17px; width:6px;height:6px;border-radius:50%;background:#7ea8db}
#sidebar .journey-event:has(.tl-actual)::before{background:#22c55e}
#sidebar .journey-event strong{display:block;font-size:14px;margin-bottom:6px}
#sidebar .journey-event small{display:block;font-variant-numeric:tabular-nums;font-size:12px;line-height:1.5;margin:3px 0;white-space:normal}
#sidebar .tl-actual{color:#86efac}
#sidebar .tl-estimate:not(.late):not(.board-canceled){color:#a6ceff}
#sidebar .tl-canceled{color:#fca5a5!important}
#sidebar #station-board #station-name{margin:0 0 14px}
#sidebar #station-board :is(#favorite-station,#station-locate){width:100%;margin:0 0 7px;min-height:42px}
#sidebar #station-board .board-tabs{margin:10px 0}
#sidebar #board-rows .board-row{background:#192a3e;border:1px solid #35465d;border-radius:10px;margin:0 0 8px;padding:12px;min-width:0}
#sidebar .board-top{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:baseline;gap:8px;margin-bottom:6px}
#sidebar .board-top strong:first-child{color:#e5f1ff;font-size:17px;font-variant-numeric:tabular-nums}
#sidebar .board-top strong:last-child{font-size:14px;overflow-wrap:anywhere}
#sidebar #board-rows .board-row small{display:block;line-height:1.5;margin:3px 0}
#sidebar #board-rows .board-row button{width:100%;margin:8px 0 0;min-height:38px}
#sidebar .tl-loading,#sidebar .tl-empty,#sidebar .tl-error{border:1px solid #35465d;border-radius:8px;padding:10px;background:#192a3e;line-height:1.5}
#sidebar .tl-error{border-color:#805a32;color:#fbd38d}
#sidebar .tl-loading::before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-2px;border:2px solid #52667f;border-top-color:#86efac;border-radius:50%;animation:tl-spin .9s linear infinite}
@keyframes tl-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#sidebar .tl-loading::before{animation:none}}
@media(max-width:700px){#sidebar :is(#details,#norway-details,#finland-details,#station-board):not([hidden]){padding:10px;margin:10px 0}#sidebar .journey-event{padding-right:8px}#sidebar .board-top{grid-template-columns:48px minmax(0,1fr)}}
