/* BER refined surfaces v1 — one dominant panel, quieter nested levels. */
html[data-lb-v4-live="1"] body.lb-v3{--ber-line:rgba(85,194,213,.17);--ber-line-soft:rgba(85,194,213,.09);--ber-surface-inset:rgba(5,30,44,.34)}
/* Global section materials: neutral outline reserved for the outermost card. */
html[data-lb-v4-live="1"] body.lb-v3 :is(#favTrainsWidget.lbmj-page,.command-console.app-page,#carte.media-section){--ber-nested-border:var(--ber-line-soft)}
/* Journey: date and morning/night are controls, not another nested card. */
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-controls{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:4px 2px 10px!important;margin:0 0 9px!important;border-bottom:1px solid var(--ber-line)!important}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-datebar{border-top-color:var(--ber-line-soft)!important}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-inline .lb-train-profile__hero{border-color:var(--ber-line-soft)!important;box-shadow:none!important;background:rgba(3,27,39,.33)!important}
/* Single prominent card, inside cards use material separation, not concentric outlines. */
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-inline :is(.lb-train-profile__route-card,.lb-train-profile__card,.lb-train-profile__timeline){border-color:var(--ber-line-soft)!important;box-shadow:none!important}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-inline .lb-train-profile__route-card{background:transparent!important;border:0!important;border-radius:0!important;padding:5px 1px!important}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-inline .lb-train-profile__timeline{background:rgba(3,22,32,.25)!important;border:0!important;border-radius:10px!important}
/* Plan B: one touchable row instead of a highlighted box within a highlighted box. */
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbpb-profile{border:1px solid var(--ber-line)!important;background:var(--ber-surface-inset)!important;box-shadow:none!important;border-radius:11px!important;overflow:hidden}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbpb-profile-toggle{min-height:43px!important}
html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbpb-profile-option{border-color:var(--ber-line-soft)!important;background:rgba(5,27,39,.35)!important;box-shadow:none!important}
/* Other pages: make sections read as a continuous workspace. */
html[data-lb-v4-live="1"] body.lb-v3 :is(#search,#stats).command-console>.console-section{border-color:var(--ber-line)!important;box-shadow:none!important}
html[data-lb-v4-live="1"] body.lb-v3 :is(#search,#stats) :is(.section-content,.stats-shell){box-shadow:none!important}
html[data-lb-v4-live="1"] body.lb-v3 #carte .map-embed-shell{border:1px solid var(--ber-line)!important;border-radius:13px!important;box-shadow:none!important;overflow:hidden}
/* Keep status badges, active states and accessibility/keyboard styling authoritative. */
@media(max-width:720px){
 html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-controls{padding-bottom:8px!important;margin-bottom:7px!important}
 html[data-lb-v4-live="1"] body.lb-v3 #favTrainsWidget.lbmj-page .lbmj-inline .lb-train-profile__route-card{padding:3px 0!important}
}
