/* Stage 8 source-level accessibility corrections; live device acceptance is pending. */
.workspace{scroll-margin-top:12px}
.app-shell .table-scroll[tabindex="0"]{max-width:100%;overscroll-behavior-x:contain}
.app-shell .table-scroll[tabindex="0"]:focus-visible{outline:3px solid #176a98;outline-offset:3px}
.agm-dialog{overflow:auto;overscroll-behavior:contain;max-height:86dvh}
.agm-dialog-heading h2{min-width:0;overflow-wrap:anywhere}
.agm-dialog-heading>button{flex-shrink:0}
.agm-dialog-content{min-width:0;overflow-wrap:anywhere}
.top-actions,.top-actions>*{max-width:100%}
.app-shell :is(button,input,select,summary){scroll-margin-block:12px}
@media screen and (min-width:821px){
  html{scroll-padding-top:calc(var(--agm-header-height,82px) + 12px)}
  .app-shell .sidebar{top:var(--agm-header-height,82px);height:calc(100dvh - var(--agm-header-height,82px))}
}
@media screen and (max-width:760px){
  .agm-route-stations{display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:visible;padding-bottom:0}
  .agm-route-stations li{min-width:0;max-width:none}
  .agm-route-stations li:before{top:36px;bottom:-5px;left:19px;right:auto;width:3px;height:auto}
  .agm-route-stations button{flex-direction:row;align-items:center;gap:12px;min-height:54px;padding:7px 0;width:100%;font-size:.88rem}
  .agm-route-stations button>span:last-child{min-width:0;overflow-wrap:anywhere}
  .agm-route-stations .agm-station{width:40px;height:40px}
  .agm-context-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agm-example-tag{white-space:normal;overflow-wrap:anywhere;max-width:100%}
  .agm-transfer-notice{flex-wrap:wrap}
  .agm-dialog-heading{gap:12px}
}
@media (pointer:coarse){
  .app-shell :is(.primary-action,.secondary-action,.quiet-action,.danger-action,.icon-action),.app-shell .subtabs button{min-height:44px;min-width:44px}
}
@media (forced-colors:active){
  .agm-route-stations [aria-current="step"] .agm-station{border-width:4px}
  .agm-sidebar [aria-pressed="true"],.app-shell .subtabs [aria-pressed="true"],.app-shell .season-tabs [aria-pressed="true"]{outline:2px solid CanvasText;outline-offset:-3px}
}
@media print{
  .workspace{scroll-margin:0}
  .app-shell .table-scroll[tabindex="0"]{outline:0}
}
