/* One compact visual system for the train detail actions. */
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is(.smn-rail-summary-toggle,.smn-linked-follow,.smn-linked-return,[data-vx-tab]){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
 min-height:40px!important;height:40px!important;padding:0 13px!important;border:1px solid #dce5ef!important;border-radius:11px!important;
 background:#fff!important;color:#28445f!important;font-family:inherit!important;font-size:13px!important;font-weight:650!important;line-height:1.2!important;
 white-space:nowrap!important;text-decoration:none!important;box-shadow:0 1px 2px #102a4310!important;
 transition:background .15s,border-color .15s,box-shadow .15s!important;
}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-tool-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 17px!important;width:17px!important;height:17px!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;color:inherit!important;pointer-events:none}
.smn-linked-timetable-page .smn-tool-icon svg{display:block;width:17px;height:17px}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is([data-vx-tab],.smn-rail-summary-toggle,.smn-linked-return):hover{background:#f0f6ff!important;border-color:#b8cee9!important;color:#075ba8!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is([data-vx-tab].is-active,.smn-rail-summary-toggle[aria-expanded=true]){background:#eaf2ff!important;border-color:#9abcea!important;color:#075ba8!important;box-shadow:inset 0 0 0 1px #9abcea!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-linked-follow{background:#075fbd!important;border-color:#075fbd!important;color:#fff!important;box-shadow:0 2px 5px #075fbd20!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-linked-follow:hover{background:#064e9c!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is(button,a):focus-visible{outline:3px solid #76a9f0!important;outline-offset:3px!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-left .smn-linked-dir{display:inline-flex;align-items:center;min-height:32px;padding:0 9px;border-radius:8px;font-size:11px;font-weight:750;background:#edf2f7;color:#51667d}
@media(min-width:769px){
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row{gap:8px!important;padding-top:12px;border-top:1px solid #edf1f6}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row>.smn-vx-tabs{gap:8px!important}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row>.smn-vx-tabs>button{padding:0 11px!important}
}
:root[data-smn-theme=dark] .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is(.smn-rail-summary-toggle,.smn-linked-return,[data-vx-tab]){background:#11273c!important;border-color:#2b465f!important;color:#dceafa!important}
:root[data-smn-theme=dark] .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row{border-top-color:#2b465f}
:root[data-smn-theme=dark] .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row [data-vx-tab].is-active{background:#193b61!important;border-color:#6095d1!important}

/* 11.1.558: direction above the number, leaving mobile action labels visible. */
@media(max-width:768px){
 .smn-linked-timetable-page .smn-linked-number-badge.has-mobile-direction{flex-direction:column;gap:3px;padding:6px 10px}
 .smn-linked-timetable-page .smn-linked-number-badge>.smn-linked-dir{display:block!important;background:none!important;color:#fff!important;font-size:9px!important;font-weight:650!important;line-height:1!important;padding:0!important;margin:0!important;min-height:0!important;letter-spacing:.06em}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-left{display:contents!important}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row :is(.smn-linked-return,.smn-rail-summary-toggle,.smn-linked-follow){min-width:0!important;width:100%!important;box-sizing:border-box!important;font-size:clamp(10px,2.8vw,12px)!important;padding:0 5px!important;gap:4px!important;overflow:visible!important;text-overflow:clip!important;min-height:36px!important;height:36px!important}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-tool-icon{flex-basis:14px!important;width:14px!important;height:14px!important}
 .smn-linked-timetable-page .smn-linked-action-row .smn-tool-icon svg{width:14px;height:14px}
}
@media(max-width:360px){
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row>.smn-linked-follow{grid-column:1/-1}
}

/* Follow uses one icon + one short label in both states. */
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-linked-follow{overflow:hidden!important;flex-shrink:0!important}
.smn-linked-timetable-page .smn-linked-hero .smn-linked-action-row .smn-linked-follow .smn-follow-label{display:block!important;position:static!important;transform:none!important;white-space:nowrap!important;line-height:1.2!important;font-size:inherit!important;background:none!important;padding:0!important;margin:0!important;min-width:0}

/* 11.1.560: mobile direction as a book-spine strip on the number badge. */
@media(max-width:768px){
 .smn-linked-timetable-page .smn-linked-number-badge.has-mobile-direction{
  position:relative!important;flex-direction:row!important;min-height:44px!important;
  padding:8px 11px 8px 27px!important;overflow:hidden!important;isolation:isolate;
 }
 .smn-linked-timetable-page .smn-linked-number-badge.has-mobile-direction>.smn-linked-dir{
  position:absolute!important;left:0!important;top:0!important;bottom:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:19px!important;height:auto!important;min-height:0!important;margin:0!important;padding:3px 0!important;
  writing-mode:vertical-rl!important;text-orientation:mixed!important;transform:rotate(180deg)!important;
  background:#064b91!important;color:#fff!important;border:0!important;border-left:1px solid #ffffff38!important;
  border-radius:0!important;font-size:8px!important;font-weight:750!important;line-height:1!important;letter-spacing:.09em!important;
 }
}
