.live-bus{margin:0 0 18px;padding:17px 20px;background:#f4f8f3;border:1px solid #dbe6d7;border-radius:14px;color:#1c3024}
.live-bus-heading{display:flex;align-items:center;gap:8px;font-size:13px}.live-bus-dot{width:7px;height:7px;background:#558556;border-radius:50%}
.live-bus-route{font-size:12px;color:#566459;margin:7px 0 12px}.live-bus-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.live-bus-number{font-size:21px;letter-spacing:-.4px}
.app .sheet-heading{position:relative}
.live-bus-timing{font-size:12px;font-weight:650;padding:5px 9px;border-radius:7px;background:#e9ede8}.live-bus-timing.ontime{color:#326541;background:#e3efe2}.live-bus-timing.late{color:#8a372a;background:#fbe7e0}.live-bus-timing.early{color:#7b591c;background:#fff0ca}
.live-bus-map-button{margin-left:auto;background:white;border:1px solid #d4dfd0;padding:9px 12px;border-radius:9px;min-height:44px;font-family:inherit;font-size:12px;line-height:1.3;font-weight:600;color:inherit;cursor:pointer}
.live-bus-updated{display:block;margin-top:10px;font-size:11px;color:#647065}.live-bus-empty{font-size:13px;margin:0;color:#647065}
.live-bus-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;padding:0;border:1px solid #d8e0d5;border-radius:18px;width:min(760px,calc(100vw - 28px));max-width:none;max-height:90dvh;background:#fff;color:#19291f;z-index:1000}.live-bus-dialog::backdrop{background:#13231db3}
.live-bus-dialog-heading{padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.live-bus-dialog-heading button{width:44px;height:44px;border:1px solid #d8e0d5;background:white;border-radius:10px;font-size:24px;cursor:pointer}.live-bus-dialog-body{display:block}.live-bus-map{width:100%;height:min(68dvh,560px);min-height:360px;background:#eef1ef}.live-bus-details{display:none}.live-bus-map .leaflet-control-attribution{font-size:9px}.live-bus-map-note{display:none}.live-bus-dialog-heading{padding:10px 14px;font-size:15px;display:flex;align-items:center;gap:10px}.live-bus-dialog-heading>strong{margin-right:0}.live-bus-dialog-heading button{width:38px;height:38px;font-size:20px}.live-bus-dialog-live{margin-left:auto;display:inline-flex;align-items:center;gap:5px;color:#47704c;font-size:11px;font-weight:650;white-space:nowrap}.live-bus-dialog-live-dot{width:7px;height:7px;border-radius:50%;background:#5d9b62;box-shadow:0 0 0 3px #5d9b6226}
.live-bus button:focus-visible,.live-bus-dialog button:focus-visible{outline:3px solid #477359;outline-offset:3px}
@media(max-width:700px){.live-bus-dialog-body{display:block}.live-bus-map{height:48dvh;min-height:260px}.live-bus-details{border-left:0;border-top:1px solid #e1e7e0;padding:16px 18px}.live-bus-details dl{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.live-bus-details dl>div{padding:8px 0}}@media(max-width:600px){.live-bus{padding:14px}.live-bus-map-button{margin-left:0}.live-bus-number{font-size:19px}}
@media print{.live-bus,.live-bus-dialog{display:none!important}}

.live-bus-dot.is-idle{background:#929d92}

.live-bus-test{font-size:12px;line-height:1.5;padding:10px 0}.live-bus-test p{margin:0 0 10px;color:#76571e}.live-bus-test label{display:grid;gap:5px}.live-bus-test select{width:100%;min-width:0;max-width:100%;padding:10px;background:white;border:1px solid #d4dfd0;border-radius:8px;font:inherit;color:inherit}

.run-identifiers{flex-wrap:wrap}.live-bus-inline{color:inherit!important;background:transparent!important;border:0!important;border-left:1px solid #d4dfd0!important;border-radius:0!important;cursor:pointer;min-height:40px;font:inherit;padding:8px 10px!important}.live-bus-inline strong{font-size:17px}.live-bus-inline-status{align-self:center;font-size:11px;font-weight:650;padding:5px 8px;margin:4px;border-radius:6px;background:#ecefeb;color:#586358}.live-bus-inline-status.late{background:#fbe7e0;color:#8a372a}.live-bus-inline-status.early{background:#fff0ca;color:#7b591c}.live-bus-inline-status.ontime{background:#e3efe2;color:#326541}.live-bus-test-tag{align-self:center;margin:4px 8px 4px 0;font-size:10px;color:#76571e}.service-live-identifiers{display:flex;align-items:center;flex-wrap:wrap;gap:0}.service-live-identifiers:empty{display:none}.live-bus-inline:focus-visible{outline:2px solid #477359;outline-offset:-2px}@media print{.live-bus-inline,.live-bus-inline-status,.live-bus-test-tag{display:none!important}}

.service-live-mat{margin-top:8px;margin-bottom:0;display:inline-flex}.live-bus-inline{position:relative!important}.service-live-identifiers .live-bus-inline{display:inline-flex;align-items:center;gap:7px}.live-bus-inline.is-live{box-shadow:none}.app .run-identifiers .live-bus-inline.is-live .run-label{color:#536448}.live-bus-signal{position:absolute;top:4px;right:6px;display:inline-flex;align-items:flex-end;gap:2px;width:12px;height:10px;pointer-events:none}.live-bus-signal i{display:block;width:2px;border-radius:2px;background:#329663;transform-origin:bottom;animation:live-bus-signal-pulse 1.2s ease-in-out infinite}.live-bus-signal i:nth-child(1){height:3px;animation-delay:0s}.live-bus-signal i:nth-child(2){height:6px;animation-delay:.16s}.live-bus-signal i:nth-child(3){height:9px;animation-delay:.32s}@keyframes live-bus-signal-pulse{0%,55%,100%{transform:scaleY:.25);opacity:.45}25%{transform:scaleY(1);opacity:1}}
.live-bus-marker{background:transparent;border:0}.live-bus-marker span{display:block;width:18px;height:18px;background:#d32231;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 7px #17231d80}

/* Een ontbrekend materieelnummer blijft als rustige BUS-waarde zichtbaar. */
.live-bus-inline.is-unavailable{cursor:default;color:#71353a!important;background:#fff9f9!important}
.live-bus-unavailable-trigger{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;cursor:pointer!important;color:#8f2f38!important;background:linear-gradient(135deg,#fffafa,#fff5f6)!important;border-left-color:#edc8cb!important;min-width:146px;padding:7px 11px!important}
.live-bus-unavailable-wrap{position:relative;display:inline-flex;flex:0 0 auto;align-items:center}
.live-bus-unavailable-trigger:hover{background:linear-gradient(135deg,#fff6f6,#ffe9eb)!important}
.live-bus-unavailable-trigger:focus-visible{outline:2px solid #b52f39;outline-offset:-2px}
.live-bus-unavailable-icon{display:grid;width:30px;height:30px;place-items:center;flex:0 0 30px;border:1px solid #efc6ca;border-radius:9px;background:#fdebed;color:#c62c39;box-shadow:0 3px 8px #8f1f2912}
.live-bus-unavailable-icon svg{display:block;width:18px;height:18px}
.live-bus-unavailable-copy{display:flex;align-items:center;gap:6px;min-width:0;text-align:left;line-height:1}
.live-bus-unavailable-copy .run-label{display:inline-flex;align-items:center;min-height:18px;padding:2px 5px;border-radius:999px;background:#f8e6e8;color:#8c5960!important;font-size:8px!important;font-weight:800;letter-spacing:.07em}
.live-bus-unavailable-copy strong{color:#67262d!important;font-size:11px!important;font-weight:780!important;line-height:1.2!important;white-space:nowrap}
.live-bus-unavailable-note{position:absolute;z-index:20;right:0;top:calc(100% + 5px);width:min(300px,calc(100vw - 32px));margin:0;padding:10px 11px;border:1px solid #e8c7c9;border-radius:10px;background:#fffafa;color:#754047;font-size:11px;font-weight:600;line-height:1.4;box-shadow:0 10px 26px #2b1d1d24}
.live-bus-unavailable-note strong,.live-bus-unavailable-note>span{display:block}
.live-bus-unavailable-note strong{margin-bottom:3px;font-size:12px;color:#67262d}
.live-bus-unavailable-note ul{margin:6px 0 0;padding-left:17px;font-weight:500}
.live-bus-unavailable-note li{margin:2px 0}
.live-bus-inline.is-stale{color:#59645d!important;background:#f3f5f2!important}
.app .run-identifiers .live-bus-inline.is-unavailable .run-label{color:#657168}
.live-bus-inline.is-unavailable strong{font-size:11px!important;font-weight:650;line-height:1.15;white-space:nowrap}
:root.dark-mode .live-bus-inline.is-unavailable{color:#f1c4c7!important;background:#342326!important}
:root.dark-mode .live-bus-unavailable-trigger{color:#ffc4c8!important;background:linear-gradient(135deg,#382629,#302124)!important;border-left-color:#74434a!important}
:root.dark-mode .live-bus-unavailable-trigger:hover{background:linear-gradient(135deg,#472b30,#3d2529)!important}
:root.dark-mode .live-bus-unavailable-icon{border-color:#704047;background:#4a292e;color:#ff929a;box-shadow:none}
:root.dark-mode .live-bus-unavailable-copy .run-label{color:#d5a5a9!important}
:root.dark-mode .live-bus-unavailable-copy .run-label{background:#543036}
:root.dark-mode .live-bus-unavailable-copy strong{color:#ffd7d9!important}
:root.dark-mode .live-bus-unavailable-note{border-color:#74434a;background:#3a2225;color:#ffb9bd}
:root.dark-mode .live-bus-unavailable-note strong{color:#ffd5d7}
:root.dark-mode .app .run-identifiers .live-bus-inline.is-unavailable .run-label{color:#aebbb2}

.app .source-foot{justify-content:center;text-align:center}

@keyframes live-bus-dialog-pulse{0%,100%{box-shadow:0 0 0 0 #5d9b6244}50%{box-shadow:0 0 0 4px #5d9b6222}}
.live-bus-dialog-live-dot{animation:live-bus-dialog-pulse 2s ease-out infinite}
@media(prefers-reduced-motion:reduce){.live-bus-dialog-live-dot{animation:none}}

@media(max-width:600px){.run-identifiers{display:grid;grid-template-columns:1fr 1fr;justify-content:center;width:max-content;max-width:100%}.run-identifiers>.run-field{min-width:0}.run-identifiers>.run-field:nth-child(3){grid-column:1 / -1;border-left:0!important;border-top:1px solid #d4dfcc;min-width:120px;justify-self:center}.run-identifiers>.run-field:nth-child(3) .live-bus-inline{border-left:0!important}}

@media(max-width:600px){.run-identifiers{display:flex;flex-wrap:nowrap;width:100%;max-width:100%;justify-content:stretch}.run-identifiers>.run-field{flex:1 1 0;min-width:0;padding:6px 5px!important;gap:4px}.run-identifiers>.run-field:nth-child(3){grid-column:auto;border-left:1px solid #d4dfcc!important;border-top:0;min-width:0;justify-self:auto}.run-identifiers .run-label{font-size:8px!important;letter-spacing:.2px}.run-identifiers strong{font-size:16px!important}}

@media(max-width:600px){.run-identifiers>.run-field{justify-content:flex-start}.run-identifiers>.run-field:first-child{flex:0 0 88px}.run-identifiers>.run-field.run-block{flex:0 0 102px;padding-left:9px!important}.run-identifiers>.run-field:nth-child(3){justify-content:center}}

@media(max-width:600px){.run-identifiers{display:inline-flex;width:max-content;max-width:100%;flex-wrap:nowrap}.run-identifiers>.run-field,.run-identifiers>.run-field:first-child,.run-identifiers>.run-field.run-block{flex:0 0 auto;min-width:0;width:auto;padding:6px 8px!important;white-space:nowrap}.run-identifiers>.run-field:first-child{justify-content:flex-start}.run-identifiers>.run-field.run-block{justify-content:flex-start;padding-left:10px!important;padding-right:10px!important}.run-identifiers>.run-field:nth-child(3){justify-content:center;min-width:78px}}

/* Op mobiel blijft het BUS-vak altijd binnen de kaart. Alleen lange
   omloopnummers worden compacter weergegeven. */
@media(max-width:600px){
  .run-identifiers:has(.live-bus-inline){display:flex;width:100%;max-width:100%}
  .run-identifiers:has(.live-bus-inline)>.run-field:first-child{flex:0 1 auto}
  .run-identifiers:has(.live-bus-inline)>.run-block{flex:1 1 auto;min-width:0}
  .run-identifiers:has(.live-bus-inline)>.live-bus-inline,
  .run-identifiers:has(.live-bus-inline)>.live-bus-unavailable-wrap{flex:0 0 auto;min-width:0}
  .run-identifiers:has(.has-long-block)>.run-block{gap:4px;padding-left:7px!important;padding-right:7px!important}
  .app .run-identifiers:has(.has-long-block)>.run-block strong{min-width:0;font-size:13px!important;letter-spacing:-.25px;white-space:normal;overflow-wrap:anywhere}
  .live-bus-unavailable-trigger{min-width:140px;padding:6px 9px!important}
  .live-bus-unavailable-icon{width:28px;height:28px;flex-basis:28px}
}

.app .source-foot{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;justify-content:center;text-align:center;line-height:1.4}
@media(max-width:600px){.app .source-foot{font-size:10px!important;padding-left:10px;padding-right:10px}}

@media(max-width:600px){.app .source-foot{display:block!important;width:100%;height:auto;min-height:38px;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;padding:10px 12px!important}.app .source-foot svg{display:inline-block;vertical-align:middle;margin-right:4px}}

/* Tijdlijnstatus: afgerond blijft leesbaar, de actieve regel draagt de aandacht. */
.timeline-leg-state{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.app .leg{transition:opacity .2s ease,background-color .2s ease,box-shadow .2s ease,background-size 1.1s linear}
.app .leg-time{display:flex;align-self:stretch;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;font-variant-numeric:tabular-nums}
.app .leg-time strong,.app .leg-time span{width:100%;text-align:center}
.app .leg-time strong::after{content:"–";display:block;margin:3px 0 -1px;color:#a5ada7;font-size:10px;font-weight:400;line-height:1}
:root.dark-mode .app .leg-time strong::after{color:#73877a}
.app .leg.is-past{opacity:.52}
.app .leg.is-past .leg-time strong{font-weight:400!important}
.app .leg.is-past:hover,.app .leg.is-past:focus-within{opacity:.76}
.app .leg.is-current{background-image:linear-gradient(90deg,rgba(216,41,55,.13),rgba(92,176,112,.18)),linear-gradient(90deg,#fff4f3 0,#fffaf9 58%,transparent 100%);background-size:var(--timeline-progress,0%) 100%,100% 100%;background-repeat:no-repeat;border-radius:12px;box-shadow:inset 0 0 0 2px #d82937;margin-left:-12px;margin-right:-8px;padding:38px 8px 20px 12px}
:root.dark-mode .app .timeline .leg.is-current{background-image:linear-gradient(90deg,rgba(225,59,73,.16),rgba(93,190,119,.16)),linear-gradient(100deg,#382328 0%,#241d20 55%,#1b2622 100%)!important;background-size:var(--timeline-progress,0%) 100%,100% 100%!important;background-repeat:no-repeat!important}
.app .leg.is-current::after{display:none!important}
.app .leg.is-current .timeline-dot{width:12px;height:12px;margin-top:1px;border:3px solid #fff;background:#d82937;box-shadow:0 0 0 3px #d8293730}
.app .leg.is-current::before{--timeline-live-dot:#fff;content:attr(data-timeline-status);position:absolute;z-index:2;top:8px;right:10px;display:inline-flex;align-items:center;white-space:pre;padding:7px 11px 5px 30px;border-radius:999px;background-color:#d82937;background-image:radial-gradient(circle,var(--timeline-live-dot) 0 3px,transparent 4px);background-repeat:no-repeat;background-position:11px 50%;background-size:8px 8px;color:#fff;font-size:12px;font-weight:500;line-height:1.1;letter-spacing:0;font-variant-numeric:tabular-nums;box-shadow:0 1px 3px #6e121c24;animation:timeline-live-badge 2.4s ease-in-out infinite}
.app .leg.is-current{scroll-margin-top:76px}
/* Kleine, aanklikbare route-indicatie: uitsluitend bij de actuele rit. */
.app .leg.is-current .live-route-preview{position:absolute;right:14px;bottom:14px;z-index:3;width:218px;min-height:52px;padding:6px 8px 5px;border:1px solid #d4e1d5;border-radius:8px;background:#f8fbf8;color:#304538;cursor:pointer;text-align:left;font:inherit;box-shadow:0 1px 2px #18372210}.live-route-preview:hover{border-color:#83ad8b;background:#f1f8f1}.live-route-preview:focus-visible{outline:3px solid #477359;outline-offset:3px}.live-route-preview-label{display:block;margin-bottom:3px;color:#527059;font-size:9px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.live-route-preview-track{position:relative;display:block;height:8px;margin:0 4px;background:linear-gradient(90deg,#75a47c 0%,#75a47c var(--live-route-progress),#cbd9cd var(--live-route-progress),#cbd9cd 100%);border-radius:999px}.live-route-preview-track::before,.live-route-preview-track::after{content:"";position:absolute;top:50%;width:5px;height:5px;border:2px solid #fff;border-radius:50%;background:#77a27f;transform:translateY(-50%);box-shadow:0 0 0 1px #6f9b77}.live-route-preview-track::before{left:-3px}.live-route-preview-track::after{right:-3px;background:#fff;box-shadow:0 0 0 1px #8eab93}.live-route-preview-track i{position:absolute;top:50%;left:var(--live-route-progress);width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#d82937;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #d8293733;animation:live-route-preview-pulse 2s ease-out infinite}.live-route-preview-track b{position:absolute;top:50%;left:var(--live-route-progress);width:0;height:0;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:5px solid #fff;transform:translate(-45%,-50%)}.live-route-preview-stops{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:4px;margin-top:4px;color:#607064;font-size:8px;line-height:1.15}.live-route-preview-stops span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-route-preview-stops span:nth-child(2){color:#335f3e;font-weight:700;text-align:center}.live-route-preview-stops span:last-child{text-align:right}@keyframes live-route-preview-pulse{0%,100%{box-shadow:0 0 0 2px #d8293733}50%{box-shadow:0 0 0 5px #d8293700}}:root.dark-mode .app .leg.is-current .live-route-preview{border-color:#48614e;background:#1f2d25;color:#dce9df}:root.dark-mode .live-route-preview-label{color:#a8c9ad}:root.dark-mode .live-route-preview-track{background:linear-gradient(90deg,#6baa78 0%,#6baa78 var(--live-route-progress),#506557 var(--live-route-progress),#506557 100%)}:root.dark-mode .live-route-preview-stops{color:#aec0b2}:root.dark-mode .live-route-preview-stops span:nth-child(2){color:#b9e2c1}@media(max-width:700px){.app .leg.is-current .live-route-preview{display:none}}@media(prefers-reduced-motion:reduce){.live-route-preview-track i{animation:none}}
.app .leg.is-gap{padding-top:76px;scroll-margin-top:76px}
/* Alleen een zachte contour; de voortgangskleur van de rit blijft zichtbaar. */
.app .leg.is-current .live-route-preview{border:1px solid #6f9a7952!important;border-radius:7px;background:transparent!important}.live-route-preview:hover{border-color:#6f9a7980!important}:root.dark-mode .app .leg.is-current .live-route-preview{border-color:#85ac8d70!important}
/* De route-preview is uitsluitend inhoud; de live-voortgang van de rit kleurt erdoorheen. */
.app .leg.is-current .live-route-preview{border:0!important;background:transparent!important;box-shadow:none!important}.live-route-preview:hover{background:transparent!important}.live-route-preview-track{opacity:1}
.app .leg.is-current .live-route-preview{border:1px solid #6f9a7952!important;border-radius:7px;background:transparent!important}.live-route-preview:hover{border-color:#6f9a7980!important}:root.dark-mode .app .leg.is-current .live-route-preview{border-color:#85ac8d70!important}
/* Geen los kaartje: de routebalk ligt direct op het live-vlak van de rit. */
.app .leg.is-current .live-route-preview{border:0;border-radius:0;background:transparent;box-shadow:none}.live-route-preview:hover{border-color:transparent;background:#ffffff26}.live-route-preview:focus-visible{outline-offset:1px}.live-route-preview-track{opacity:.88}:root.dark-mode .app .leg.is-current .live-route-preview{border:0;background:transparent}
/* Ruimer en stiller dan de hoofdstatus: de actuele rit houdt visueel voorrang. */
.app .leg.is-current .live-route-preview{right:16px;bottom:13px;width:332px;min-height:48px;padding:5px 10px 4px;border-color:#dce7de;background:#ffffffc9;box-shadow:none}.live-route-preview:hover{border-color:#9bbca1;background:#ffffffe8}.live-route-preview-label{margin-bottom:2px;color:#607b65;font-size:8px;letter-spacing:.055em}.live-route-preview-track{height:6px;margin-inline:3px}.live-route-preview-track::before,.live-route-preview-track::after{width:4px;height:4px}.live-route-preview-track i{width:9px;height:9px}.live-route-preview-stops{margin-top:4px;font-size:8.5px;color:#68766c}.live-route-preview-stops span:nth-child(2){font-weight:650}:root.dark-mode .app .leg.is-current .live-route-preview{background:#1f2d25e8;border-color:#43594a}
.app .leg.is-current .live-route-preview{border:1px solid #6f9a7966!important;border-radius:9px!important;background:transparent!important;padding:7px 11px 6px!important}.live-route-preview-label{font-size:9px!important;font-weight:800}.live-route-preview-stops{font-size:10px!important;font-weight:600;line-height:1.2}.live-route-preview-stops span:nth-child(2){font-weight:800}.live-route-preview-track{margin-inline:4px}:root.dark-mode .app .leg.is-current .live-route-preview{border-color:#94bb9c78!important}
.app .leg.is-gap::before{--timeline-live-dot:#238b52;content:attr(data-timeline-status) "   ·   " attr(data-timeline-detail);position:absolute;z-index:2;top:15px;left:0;display:inline-flex;align-items:center;min-height:40px;padding:9px 14px 9px 36px;border:1px solid #9bcaae;border-radius:10px;background-color:#e8f5ec;background-image:radial-gradient(circle,var(--timeline-live-dot) 0 3px,transparent 4px);background-repeat:no-repeat;background-position:14px 50%;background-size:8px 8px;color:#214b33;font-size:13px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums;box-shadow:inset 4px 0 0 #2d8b57,0 3px 10px #205d3817;animation:timeline-live-gap 2.4s ease-in-out infinite}
.app .leg.is-gap::after{top:84px}
@property --timeline-live-dot{syntax:"<color>";inherits:false;initial-value:#238b52}
@keyframes timeline-live-badge{0%,100%{--timeline-live-dot:#fff}50%{--timeline-live-dot:#ffffff70}}
@keyframes timeline-live-gap{0%,100%{--timeline-live-dot:#238b52}50%{--timeline-live-dot:#79c99d}}
.timeline-return-now{position:fixed;z-index:35;right:22px;bottom:22px;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid #c91f2d;border-radius:999px;background:#d82937;color:#fff;font:inherit;box-shadow:0 8px 24px #59101830;cursor:pointer}
.timeline-return-now:hover{background:#bd1f2b}.timeline-return-now:focus-visible{outline:3px solid #7d2430;outline-offset:3px}
.timeline-return-now strong{font-size:12px}.timeline-return-now small{padding-left:7px;border-left:1px solid #ffffff66;font-size:11px;font-variant-numeric:tabular-nums}.timeline-return-dot{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #ffffff30}
.app .leg.is-past .run-identifiers{background:#f3f5f1;border-color:#e2e6df}
.app .leg.is-past .run-identifiers .run-field+.run-field,.app .leg.is-past .live-bus-inline{border-color:#dde2da!important}
.app .live-bus-inline.is-history{cursor:default}
@media(max-width:600px){.app .leg.is-current{margin-left:-6px;margin-right:-4px;padding:36px 4px 17px 6px;scroll-margin-top:66px}.app .leg.is-current::before{top:7px;right:7px;padding:7px 9px 5px 30px;font-size:11px}.app .leg.is-gap{padding-top:70px;scroll-margin-top:66px}.app .leg.is-gap::before{top:13px;left:0;min-height:36px;padding:7px 10px 7px 36px;font-size:12px}.app .leg.is-gap::after{top:77px}.timeline-return-now{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.app .leg{transition:none}.app .leg.is-current::before,.app .leg.is-gap::before{animation:none}}
@media print{.app .leg.is-past{opacity:1}.app .leg.is-current{background:none;box-shadow:none;margin-left:0;margin-right:0;padding:7px 0}.app .leg.is-gap{padding-top:7px}.app .leg.is-current::before,.app .leg.is-gap::before,.timeline-leg-state,.timeline-return-now{display:none!important}}
/* Live signaal: balkjes bouwen van klein naar groot. */
@keyframes live-bus-signal-pulse-fixed{0%,55%,100%{transform:scaleY(.25);opacity:.45}25%{transform:scaleY(1);opacity:1}}
.live-bus-signal i{animation-name:live-bus-signal-pulse-fixed}
/* Live signaal: rustigere animatie, iets hoger en rood. */
.live-bus-signal{top:2px}
.live-bus-signal i{background:#c94141;animation-duration:2.4s}
.live-bus-signal i:nth-child(1){animation-delay:0s}
.live-bus-signal i:nth-child(2){animation-delay:.32s}
.live-bus-signal i:nth-child(3){animation-delay:.64s}
/* Afgeronde ritten tonen geen live-signaal meer. */
.app .leg.is-past .live-bus-signal{display:none}
/* Live-radarstip: middelpunt met twee pulserende ringen. */
.live-bus-signal{top:2px;right:5px;display:block;width:14px;height:14px}
.live-bus-signal i{position:absolute;left:50%;top:50%;display:block;border:1.5px solid #329663;border-radius:50%;background:transparent;transform:translate(-50%,-50%) scale(.35);animation:live-bus-radar-pulse 2.4s ease-out infinite}
.live-bus-signal i:nth-child(1){width:6px;height:6px;animation-delay:0s}
.live-bus-signal i:nth-child(2){width:12px;height:12px;animation-delay:.55s}
.live-bus-signal i:nth-child(3){width:3px;height:3px;border:0;background:#329663;transform:translate(-50%,-50%);animation:none}
@keyframes live-bus-radar-pulse{0%{opacity:1;transform:translate(-50%,-50%) scale(.35)}70%,100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
/* Radaricoon uitgelijnd: vast middelpunt, alleen de twee ringen bewegen. */
.live-bus-signal{top:2px;right:5px;width:14px;height:14px;display:block;position:absolute}
.live-bus-signal::before{content:"";position:absolute;left:50%;top:50%;width:3px;height:3px;border-radius:50%;background:#329663;transform:translate(-50%,-50%)}
.live-bus-signal i{position:absolute!important;left:50%!important;top:50%!important;display:block!important;box-sizing:border-box;width:6px;height:6px;border:1.5px solid #329663;border-radius:50%;background:transparent;transform:translate(-50%,-50%) scale(.35);animation:live-bus-radar-pulse-fixed 2.4s ease-out infinite}
.live-bus-signal i:nth-child(1){width:6px;height:6px;animation-delay:0s}
.live-bus-signal i:nth-child(2){width:12px;height:12px;animation-delay:.55s}
.live-bus-signal i:nth-child(3){display:none!important}
@keyframes live-bus-radar-pulse-fixed{0%{opacity:1;transform:translate(-50%,-50%) scale(.35)}70%,100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
/* Signaalrichting: vaste stip onderaan, pulserende bogen erboven. */
.live-bus-signal{top:2px;right:5px;width:14px;height:14px;display:block;position:absolute}
.live-bus-signal::before{content:"";position:absolute;left:50%;bottom:0;width:3px;height:3px;border-radius:50%;background:#329663;transform:translateX(-50%)}
.live-bus-signal i{position:absolute!important;left:50%!important;display:block!important;box-sizing:border-box;width:6px;height:4px;border:1.5px solid #329663;border-bottom:0;border-radius:8px 8px 0 0;background:transparent;transform:translateX(-50%) scaleX(.35);transform-origin:center bottom;animation:live-bus-signal-arc 2.4s ease-out infinite}
.live-bus-signal i:nth-child(1){bottom:4px;width:6px;height:4px;animation-delay:0s}
.live-bus-signal i:nth-child(2){bottom:4px;width:12px;height:8px;animation-delay:.55s}
.live-bus-signal i:nth-child(3){display:none!important}
@keyframes live-bus-signal-arc{0%{opacity:1;transform:translateX(-50%) scaleX(.35)}70%,100%{opacity:0;transform:translateX(-50%) scaleX(1)}}
/* Radar definitief gecentreerd: stip in het midden, ringen rondom hetzelfde centrum. */
.live-bus-signal{top:2px;right:5px;width:14px;height:14px;display:block;position:absolute}
.live-bus-signal::before{content:"";position:absolute;z-index:3;left:50%;top:50%;width:3px;height:3px;border-radius:50%;background:#329663;transform:translate(-50%,-50%)}
.live-bus-signal i{position:absolute!important;z-index:1;left:50%!important;top:50%!important;bottom:auto!important;display:block!important;box-sizing:border-box;width:6px;height:6px;border:1.5px solid #329663;border-radius:50%;background:transparent;transform:translate(-50%,-50%) scale(.2);transform-origin:center;animation:live-bus-radar-outward 2.4s ease-out infinite}
.live-bus-signal i:nth-child(1){width:6px;height:6px;animation-delay:0s}
.live-bus-signal i:nth-child(2){width:12px;height:12px;animation-delay:.55s}
.live-bus-signal i:nth-child(3){display:none!important}
@keyframes live-bus-radar-outward{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}70%,100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}

/* Compacte mobiele navigatie: rustig aanwezig, met behoud van 44px tikdoelen. */
@media(max-width:700px){
  .app .bottom-nav{padding:4px 8px max(6px,env(safe-area-inset-bottom));}
  .app .bottom-nav button{display:grid!important;grid-template-rows:20px 14px;align-content:center;justify-items:center;height:48px;min-height:48px;gap:3px;padding:4px 2px;border-radius:9px;font-size:11px;line-height:1.2;text-align:center;}
  .app .bottom-nav button>svg{grid-row:1;width:20px!important;height:20px!important;margin:0;align-self:center;stroke-width:1.6px;}
  .app .bottom-nav button>.wallboard-nav-icon{grid-row:1;display:grid;width:20px!important;height:20px!important;flex-basis:auto!important;margin:0;place-items:center;align-self:center;}
  .app .bottom-nav button>.wallboard-nav-icon svg{width:20px!important;height:20px!important;}
  .app .bottom-nav button>span:last-child{grid-row:2;margin:0;align-self:center;font-size:11px!important;font-weight:550;line-height:14px;letter-spacing:0;white-space:nowrap;}
  .app .bottom-nav .app-live-ov-nav{align-items:center!important;justify-content:center!important;}
  .app .bottom-nav .active{color:#e52330;background:#fff7f6;border:1px solid #e52330;}
  .app .bottom-nav .active>span:last-child{color:currentColor!important;}
  .app .content{padding-bottom:76px;}
  .timeline-return-now{bottom:calc(60px + env(safe-area-inset-bottom));}
}
@media(max-width:370px){.app .bottom-nav button>span:last-child{font-size:10px!important}}
@media(max-width:340px){.app .bottom-nav button>span:last-child{font-size:9px!important;letter-spacing:-.1px}}

/* Active navigation is recognisable through its red accent; the label itself
   stays in the normal ink colour for a calmer reading hierarchy. */
.app .nav-item.active{color:var(--foreground,#233233);border:1px solid #e52330;}
.app .nav-item.active svg{color:#e52330;}

.live-bus-loading{align-items:center;gap:7px;margin:4px 5px;padding:7px 9px;border:1px solid #cbdcc8;border-radius:8px;background:#f9fcf8;color:#526257;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;display:inline-flex}.live-bus-loading i{width:7px;height:7px;border-radius:50%;background:#5b9664;animation:live-bus-loading-pulse 1.2s ease-in-out infinite}@keyframes live-bus-loading-pulse{50%{opacity:.3;transform:scale(.72)}}

/* Nieuwe busdetail-API: route, haltes en ritinformatie in één kaartvenster. */
.live-bus-dialog{width:min(980px,calc(100vw - 28px))}
.live-bus-dialog-route{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5e6b62;font-size:12px;font-weight:600}
.live-bus-context-warning{display:flex;align-items:center;justify-content:center;margin:8px 14px;padding:10px 12px;border:1px solid #ead087;border-left:4px solid #d19a16;border-radius:10px;background:#fff9e8;box-shadow:0 2px 8px #4e3c1012}.live-bus-context-copy{display:flex;min-width:0;align-items:center;justify-content:center;gap:16px;white-space:nowrap}.live-bus-context-copy .live-bus-context-title,.live-bus-context-copy .live-bus-context-fact{display:inline-flex!important;align-items:center;gap:7px;margin:0;font-size:13px!important;font-weight:650;line-height:1.25!important}.live-bus-context-copy .live-bus-context-title{color:#26352b;font-weight:750}.live-bus-context-copy .live-bus-context-fact{color:#94640b}.live-bus-context-glyph{display:inline-block;flex:0 0 18px;width:18px;height:18px;background:currentColor;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;mask-position:center;mask-repeat:no-repeat;mask-size:contain}.live-bus-context-glyph.is-alert{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v6M12 17h.01' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v6M12 17h.01' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")}.live-bus-context-glyph.is-bus{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 17V6c0-2 2-3 6-3s6 1 6 3v11M6 10h12M8 17h8M8 20v-2M16 20v-2M9 14h.01M15 14h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 17V6c0-2 2-3 6-3s6 1 6 3v11M6 10h12M8 17h8M8 20v-2M16 20v-2M9 14h.01M15 14h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.live-bus-context-glyph.is-clock{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.live-bus-dialog-live.is-stale{color:#6f786f}
.live-bus-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) 350px}
.live-bus-details{display:block;max-height:min(68dvh,560px);overflow:auto;padding:15px 16px;border-left:1px solid #e1e7e0;background:#fbfcfb}
.live-bus-details h3,.live-bus-details h4{margin:0 0 12px}.live-bus-details h4{margin-top:18px;font-size:13px}
.live-bus-details dl{margin:0}.live-bus-details dl>div{padding:7px 0;border-bottom:1px solid #e8ece8}.live-bus-details dt{color:#69766d;font-size:10px;text-transform:uppercase;letter-spacing:.45px}.live-bus-details dd{margin:3px 0 0;font-size:12px;font-weight:650;line-height:1.35}
.live-bus-trip-details{margin:0 0 12px}.live-bus-trip-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:8px 10px;border:1px solid #dce4dc;border-radius:9px;background:#f2f6f2;color:#20372b;font-size:13px;font-weight:750;cursor:pointer;list-style:none}.live-bus-trip-details summary::-webkit-details-marker{display:none}.live-bus-trip-details summary::after{content:'Bekijken  ›';color:#477057;font-size:10px;font-weight:700;white-space:nowrap}.live-bus-trip-details[open] summary{margin-bottom:5px;background:#edf4ee}.live-bus-trip-details[open] summary::after{content:'Sluiten  ⌃'}.live-bus-trip-details summary:focus-visible{outline:3px solid #2d7860;outline-offset:2px}.live-bus-details>.live-bus-trip-details+h4{margin-top:0}
.live-bus-stop-list{list-style:none;margin:0;padding:0}.live-bus-stop-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px;border-left:3px solid transparent;border-bottom:1px solid #e8ece8;font-size:11px}.live-bus-stop-list li.is-current{border-left-color:#269157;background:#e8f5ec}.live-bus-stop-list li.is-next{border-left-color:#2776bd;background:#edf6ff}.live-bus-stop-list time{font-variant-numeric:tabular-nums;font-weight:700}.live-bus-details-note{font-size:11px;color:#66736a}
.live-bus-stop-marker{background:transparent;border:0}.live-bus-stop-dot{display:block;width:9px;height:9px;margin:2.5px;border:2px solid #2776bd;border-radius:50%;background:#fff;box-shadow:0 1px 3px #1c2b2338}.live-bus-stop-dot.passed{border-color:#8f9a93;background:#dfe4e0}.live-bus-stop-dot.current{width:13px;height:13px;margin:.5px;border-color:#fff;background:#269157;box-shadow:0 0 0 2px #269157}.live-bus-stop-dot.next{width:13px;height:13px;margin:.5px;border-color:#fff;background:#2776bd;box-shadow:0 0 0 2px #2776bd;animation:live-bus-next-stop-pulse 1.8s ease-in-out infinite}@keyframes live-bus-next-stop-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 2px #2776bd}50%{transform:scale(1.1);box-shadow:0 0 0 4px #2776bd45}}@media(prefers-reduced-motion:reduce){.live-bus-stop-dot.next{animation:none}}
.live-bus-vehicle-marker{background:transparent;border:0}.live-bus-vehicle-pin{position:relative;display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:5px;border:2px solid #fff;border-radius:50%;background:#17232a;font-size:16px;line-height:1;box-shadow:0 2px 8px #14211d62,0 0 0 1.5px #17232a}.live-bus-vehicle-pin b{position:relative;font:inherit}
.live-bus-primary-status dd{color:#24704b;font-size:14px}.live-bus-primary-status.is-warning dd{color:#ad3b2f}
:root.dark-mode .live-bus-details{background:#1b2622;border-color:#35453d}:root.dark-mode .live-bus-details dl>div,:root.dark-mode .live-bus-stop-list li{border-bottom-color:#35453d}:root.dark-mode .live-bus-dialog-route,:root.dark-mode .live-bus-details dt,:root.dark-mode .live-bus-details-note{color:#b9c7bd}:root.dark-mode .live-bus-stop-list li.is-current{background:#203a2d}:root.dark-mode .live-bus-stop-list li.is-next{background:#203243}
:root.dark-mode .live-bus-trip-details summary{border-color:#405047;background:#24342c;color:#e1eee4}:root.dark-mode .live-bus-trip-details[open] summary{background:#293a31}:root.dark-mode .live-bus-trip-details summary::after{color:#a9c9b1}
:root.dark-mode .live-bus-context-warning{border-color:#806928;border-left-color:#e0aa2c;background:#3e351d}:root.dark-mode .live-bus-context-copy .live-bus-context-title{color:#fff0bd}:root.dark-mode .live-bus-context-copy .live-bus-context-fact{color:#e7b94f}
@media(max-width:700px){.live-bus-dialog-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto}.live-bus-dialog-route{grid-column:1 / -1;grid-row:2}.live-bus-dialog-body{display:block}.live-bus-map{height:48dvh;min-height:280px}.live-bus-details{max-height:28dvh;border-left:0;border-top:1px solid #e1e7e0;padding:14px 16px}.live-bus-details dl{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.live-bus-details dl>div{padding:6px 0}}
@media(max-width:700px){.live-bus-context-warning{margin:6px 8px;padding:8px 9px;border-left-width:3px;border-radius:8px}.live-bus-context-copy{gap:7px 11px;white-space:normal;flex-wrap:wrap}.live-bus-context-copy .live-bus-context-title,.live-bus-context-copy .live-bus-context-fact{font-size:11.5px!important}.live-bus-context-glyph{flex-basis:16px;width:16px;height:16px}}
.live-bus-context-copy .live-bus-context-fact{color:#26352b}.live-bus-context-glyph.is-bus{color:#24745f}.live-bus-context-glyph.is-clock{color:#b86620}:root.dark-mode .live-bus-context-copy .live-bus-context-fact{color:#fff0bd}:root.dark-mode .live-bus-context-glyph.is-bus{color:#6fd0b0}:root.dark-mode .live-bus-context-glyph.is-clock{color:#f0a964}

/* Kop van de kaart: bus, lijn en bestemming vormen één rustig uitgelijnde rij. */
.live-bus-dialog-heading{gap:12px}
.live-bus-dialog-heading>strong{font-size:24px;line-height:38px;letter-spacing:-.35px;white-space:nowrap}
.live-bus-dialog-route{display:inline-flex;align-items:center;align-self:center;min-width:0;max-width:min(52vw,530px);min-height:38px;padding:0 11px;border:1px solid #d7e2d8;border-radius:9px;background:#f7faf7;color:#283b2e;font-size:14px;font-weight:650;line-height:1.2;overflow:hidden;white-space:nowrap}
.live-bus-dialog-route-line{flex:0 0 auto;font-weight:800}
.live-bus-dialog-route-destination{min-width:0;margin-left:9px;padding-left:9px;border-left:1px solid #ccd9ce;overflow:hidden;text-overflow:ellipsis;color:#56675b;font-weight:650}
:root.dark-mode .live-bus-dialog-route{border-color:#43564b;background:#223029;color:#f5faf6}:root.dark-mode .live-bus-dialog-route-destination{border-color:#4d6255;color:#c8d8cc}
@media(max-width:700px){.live-bus-dialog-heading>strong{font-size:20px;line-height:34px}.live-bus-dialog-route{grid-column:1 / -1;grid-row:2;max-width:100%;min-height:34px;font-size:13px}}

/* De halte-afwijking staat direct naast de verwachte tijd, zonder de naam te verdringen. */
.live-bus-stop-list li{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.live-bus-stop-name{min-width:0}
.live-bus-stop-time{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.live-bus-stop-deviation{display:inline-flex;align-items:center;min-height:19px;padding:2px 5px;border-radius:5px;background:#eef1ed;color:#59685e;font-size:10px;font-weight:800;line-height:1}
.live-bus-stop-deviation.late{background:#fbe4df;color:#a7392c}
.live-bus-stop-deviation.early{background:#e4f3e6;color:#287244}
.live-bus-stop-deviation.ontime{background:#e9eee8;color:#526156}
:root.dark-mode .live-bus-stop-deviation.late{background:#512d29;color:#ffc1b8}:root.dark-mode .live-bus-stop-deviation.early{background:#203d2d;color:#a7e5bc}:root.dark-mode .live-bus-stop-deviation.ontime{background:#34433a;color:#d1ddd4}

.pause-countdown{display:inline-flex;align-items:center;gap:6px;margin-top:7px;color:#9f2631;font-size:11.5px;font-weight:650;font-variant-numeric:tabular-nums}
.pause-countdown::before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#d62f3c}
:root.dark-mode .pause-countdown{color:#ff9da3}

/* Heldere samenvatting van de bussen die aan deze dienst zijn gekoppeld. */
.sheet-tools.duty-buses{display:flex;align-items:center;flex-wrap:nowrap;gap:16px;min-height:62px;padding-block:10px;overflow:visible;white-space:normal}
.sheet-tools.duty-buses>strong{flex:0 0 154px;min-width:0;color:#31473a;font-size:12px;font-weight:700;line-height:1.35}
.duty-bus-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.duty-bus-status::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#36a267;box-shadow:0 0 0 0 #36a26766;animation:duty-bus-pulse 1.8s ease-out infinite}
.sheet-tools.duty-buses.is-other-date strong{color:#65716a}
.sheet-tools.duty-buses.is-other-date .duty-bus-status::before{background:#9aa39d;box-shadow:none;animation:none}
.sheet-tools.duty-buses.is-other-date .duty-bus-numbers{display:none}
.sheet-tools.duty-buses.is-demo:not(.is-other-date) strong{color:#73591d}
.sheet-tools.duty-buses.is-demo:not(.is-other-date) .duty-bus-status::before{background:#c58a24;box-shadow:none;animation:none}
.live-bus-inline.is-demo{cursor:default!important;color:#73591d!important;background:#fff8df!important;border-color:#e6d8aa!important}
@keyframes duty-bus-pulse{0%{box-shadow:0 0 0 0 #36a26766}65%,100%{box-shadow:0 0 0 6px #36a26700}}
@media(prefers-reduced-motion:reduce){.duty-bus-status::before{animation:none}}
.app .sheet-tools .duty-bus-numbers{display:flex;flex:1 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:7px;overflow:visible;color:#253a2d;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.duty-bus-assignment{display:inline-grid;flex:0 0 auto;gap:3px;min-width:104px;padding:7px 10px 8px;border:1px solid #dce5df;border-radius:10px;background:#fff;line-height:1.15;white-space:nowrap;box-shadow:0 2px 7px rgba(35,58,45,.045)}
.duty-bus-time{color:#53645a;font-size:10.5px;font-weight:650;letter-spacing:.01em}
.duty-bus-separator{display:none}
.duty-bus-number{display:flex;align-items:baseline;gap:4px;color:#173e2b;font-size:13px;font-weight:800}
.duty-bus-prefix{color:#77847c;font-size:8px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
:root.dark-mode .sheet-tools.duty-buses strong{color:#b9c7bd}
:root.dark-mode .sheet-tools.duty-buses.is-other-date strong{color:#a5b1a9}
:root.dark-mode .sheet-tools.duty-buses.is-demo:not(.is-other-date) strong{color:#e9ca7a}
:root.dark-mode .live-bus-inline.is-demo{color:#f0d588!important;background:#352f20!important;border-color:#65552d!important}
:root.dark-mode .sheet-tools .duty-bus-numbers{color:#edf3ee}
:root.dark-mode .duty-bus-assignment{border-color:#405449;background:#223028;box-shadow:none}
:root.dark-mode .duty-bus-time{color:#b9c7bd}
:root.dark-mode .duty-bus-number{color:#edf3ee}
:root.dark-mode .duty-bus-prefix{color:#91a59a}
@media(max-width:700px){
  .app .sheet-tools.duty-buses{display:flex;flex-wrap:nowrap;gap:4px;min-height:38px;padding-block:6px;overflow:hidden}
  .sheet-tools.duty-buses>strong{flex:0 1 auto;font-size:12px}
  .app .sheet-tools .duty-bus-numbers{flex:1 1 auto;justify-content:flex-end;gap:2px;overflow:visible;font-size:9px}
  .duty-bus-time,.duty-bus-separator,.duty-bus-prefix{display:none}
  .duty-bus-assignment{min-width:0;padding:3px 4px;text-align:center}
  .duty-bus-number{font-size:12px}
}

/* Compacte dienstsamenvatting op mobiel, zonder de grote-tekststand te beperken. */
@media(max-width:700px){
  .app:not(.large-text) .metrics{margin:0 15px;padding:6px 0 7px}
  .app:not(.large-text) .metrics>div{padding-top:1px;padding-bottom:1px}
  .app:not(.large-text) .metrics span{margin-bottom:2px;font-size:8px;line-height:1.1;letter-spacing:.045em}
  .app:not(.large-text) .metrics strong{font-size:22px;line-height:1.08;letter-spacing:-.35px}
  .app .sheet-tools.duty-buses{min-height:34px;gap:6px;padding-block:4px}
  .sheet-tools.duty-buses>strong,.duty-bus-number{font-size:12px;line-height:1.2}
  .duty-bus-status{gap:6px}
  .duty-bus-status::before{width:7px;height:7px;flex-basis:7px}
  .duty-bus-assignment{padding:3px 6px}
}

/* Mobiel: een rustige uitklapper in plaats van de brede desktop-routebalk. */
.live-route-mobile{display:none}
@media(max-width:700px){
  .live-route-mobile{grid-column:1 / -1;display:block;min-width:0;margin-top:2px;color:#42664b}
  .live-route-mobile summary{display:flex;align-items:center;min-height:30px;gap:7px;cursor:pointer;font-size:11px;font-weight:750;list-style:none}
  .live-route-mobile summary::-webkit-details-marker{display:none}
  .live-route-mobile-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#d82937;box-shadow:0 0 0 3px #d8293720}
  .live-route-mobile-current{min-width:0;margin-left:auto;color:#597160;font-size:10px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .live-route-mobile summary::after{content:'⌄';margin-left:2px;color:#5a7560;font-size:14px;line-height:1;transition:transform .15s ease}
  .live-route-mobile[open] summary::after{transform:rotate(180deg)}
  .live-route-mobile-content{display:block;width:100%;padding:4px 5px 7px;border:0;background:transparent;color:inherit;text-align:left}
  .live-route-mobile-content .live-route-preview-track{height:5px;margin-inline:4px}
  .live-route-mobile-content .live-route-preview-stops{margin-top:5px;font-size:9px}
  .live-route-mobile-content .live-route-preview-stops span:nth-child(2){font-weight:700}
  :root.dark-mode .live-route-mobile{color:#b8d4be}
  :root.dark-mode .live-route-mobile-current{color:#a7c4ad}
}
@media(prefers-reduced-motion:reduce){.live-route-mobile summary::after{transition:none}}

/* Mobiel: de live-route neemt de plaats in van de ritregel, zonder extra hoogte. */
@media(max-width:600px){
  .app .leg.is-current .leg-main .run-trip{display:none}
  .app .leg.is-current .live-route-mobile{position:absolute;z-index:5;right:18px;bottom:12px;left:92px;display:block;min-height:0;margin:0;padding:0;border:0;background:transparent;color:#42664b;text-align:left}
  .live-route-mobile .live-route-preview-label{margin:0 0 2px;font-size:8px}
  .live-route-mobile .live-route-preview-track{height:5px;margin-inline:4px}
  .live-route-mobile .live-route-preview-stops{margin-top:4px;font-size:9px}
  .live-route-mobile .live-route-preview-stops span:nth-child(2){font-weight:750}
  :root.dark-mode .app .leg.is-current .live-route-mobile{background:transparent;color:#b8d4be}
}

@media(max-width:600px){
  .app .leg.is-current .live-route-mobile{position:absolute;z-index:5;bottom:12px;left:152px;display:block;margin:0}
  .live-route-mobile summary{min-height:24px;font-size:10px;gap:6px}
  .live-route-mobile-current{display:none}
  .live-route-mobile summary::after{font-size:12px}
  .live-route-mobile[open] .live-route-mobile-content{position:absolute;left:-8px;bottom:25px;width:220px;padding:7px 8px;border:1px solid #6f9a7952;border-radius:8px;background:#ffffffdc;box-shadow:0 3px 12px #17301b1c}
  :root.dark-mode .live-route-mobile[open] .live-route-mobile-content{border-color:#587360;background:#1d2a22ee}
}

@media(max-width:600px){.app .leg.is-current{padding-bottom:50px}.app .leg.is-current.is-mat{padding-bottom:20px}.app .leg.is-current .live-route-mobile{top:auto;right:16px;bottom:10px;left:16px;padding:0;border:0;background:transparent}.live-route-mobile .live-route-preview-label{display:none}.live-route-mobile .live-route-preview-stops{margin-top:5px}}

@property --live-route-progress{syntax:"<percentage>";inherits:true;initial-value:0%}
/* De positie wordt elke seconde bijgewerkt; interpoleer die stapjes rustig. */
.live-route-preview,.live-route-mobile{transition:--live-route-progress .85s linear}.live-route-preview-track i,.live-route-preview-track b{will-change:left;transition:left .85s linear}.live-route-preview-stops{grid-template-columns:minmax(0,.45fr) minmax(0,3.6fr) minmax(0,.45fr);gap:3px}
@media(prefers-reduced-motion:reduce){.live-route-preview,.live-route-mobile,.live-route-preview-track i,.live-route-preview-track b{transition:none}}

:root:not(.dark-mode) .live-route-preview-label,:root:not(.dark-mode) .live-route-preview-stops,:root:not(.dark-mode) .live-route-preview-stops span:nth-child(2){color:#111827!important}
:root.dark-mode .live-route-preview-label{color:#c7dfcc!important}
:root.dark-mode .live-route-preview-stops{color:#d5e2d8!important}
:root.dark-mode .live-route-preview-stops span:nth-child(2){color:#d8f2dd!important}
/* The compact route has enough horizontal room for more legible stop labels. */
.live-route-preview-stops{font-size:11px!important}
.live-route-preview-stops>span:first-child,.live-route-preview-stops>span:last-child{font-size:8.5px;font-weight:600}
.live-route-preview-stops{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;gap:4px;margin-inline:4px}.live-route-preview-stops>span.live-route-current-stop{justify-self:center;max-width:100%;padding:1px 7px;border:1px solid #cbd9cf;border-radius:999px;background:#ffffffb8;box-sizing:border-box;color:#111827!important;font-size:clamp(8.5px,2.5vw,10px);font-weight:700;line-height:1.25;text-align:center}.live-route-preview-stops .live-route-flag{position:relative;display:block;width:12px;height:14px;overflow:visible;pointer-events:none}.live-route-preview-stops .live-route-flag::before{content:'';position:absolute;top:0;width:1.5px;height:14px;border-radius:1px;background:#405047}.live-route-preview-stops .live-route-flag.is-start{justify-self:start}.live-route-preview-stops .live-route-flag.is-start::before{left:0}.live-route-preview-stops .live-route-flag.is-start::after{content:'';position:absolute;top:0;left:1px;width:10px;height:7px;background:#3f4b44;clip-path:polygon(0 0,100% 10%,82% 50%,100% 90%,0 100%)}.live-route-preview-stops .live-route-flag.is-finish{justify-self:end}.live-route-preview-stops .live-route-flag.is-finish::before{right:0}.live-route-preview-stops .live-route-flag.is-finish::after{content:'';position:absolute;top:0;right:1px;width:11px;height:8px;background:repeating-conic-gradient(#202823 0 25%,#fff 0 50%) 0 0/4px 4px;clip-path:polygon(0 0,100% 8%,86% 50%,100% 92%,0 100%);box-shadow:inset 0 0 0 1px #69736c}:root.dark-mode .live-route-preview-stops>span.live-route-current-stop{border-color:#587160;background:#24362bbb;color:#d8f2dd!important}:root.dark-mode .live-route-preview-stops .live-route-flag.is-start::after{background:#b9c7bd}:root.dark-mode .live-route-preview-stops .live-route-flag::before{background:#aab8ae}
.live-route-preview-stops span:nth-child(2){justify-self:center;max-width:100%;padding:1px 6px;border:1px solid #cbd9cf;border-radius:999px;background:#ffffffb8;box-sizing:border-box;font-size:clamp(8.5px,2.5vw,10px);font-weight:700;line-height:1.25}
:root.dark-mode .live-route-preview-stops span:nth-child(2){border-color:#587160;background:#24362bbb}

/* High-contrast route marker: red chevron on white instead of white on white. */
.live-route-preview-track i{width:13px;height:13px;border:2px solid #d82937;background:#fff;box-shadow:0 0 0 2px #fff,0 1px 3px #6e121c2e;animation:none}
.live-route-preview-track b{width:4px;height:4px;border:0;border-top:1.5px solid #d82937;border-right:1.5px solid #d82937;transform:translate(-70%,-50%) rotate(45deg)}
:root.dark-mode .live-route-preview-track i{border-color:#f0525e;background:#fff;box-shadow:0 0 0 2px #1f2d25,0 1px 4px #0008}
:root.dark-mode .live-route-preview-track b{border-color:#d82937}

/* Subtle start and end ticks on the compact progress line. */
.live-route-preview-track::before,.live-route-preview-track::after{top:50%;width:1px;height:8px;border:0;border-radius:1px;background:#6f8f7b;box-shadow:none;opacity:.72;transform:translateY(-50%)}
.live-route-preview-track::before{left:0}
.live-route-preview-track::after{right:0}
:root.dark-mode .live-route-preview-track::before,:root.dark-mode .live-route-preview-track::after{background:#9bbca4;opacity:.8}
.live-route-preview-track i,.live-route-preview-track b{transition:left 1s linear}
@media(prefers-reduced-motion:reduce){.live-route-preview-track i,.live-route-preview-track b{transition:none}}

.live-bus-stop-list time,.live-bus-stop-deviation{font-weight:400!important}

.live-bus-dialog-route-destination{font-weight:800}

.live-bus-map .live-bus-next-stop-label{padding:4px 7px;border:1px solid #8bb596;border-radius:6px;background:#f8fcf8;color:#183c22;font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap;box-shadow:0 2px 7px #193d2224;pointer-events:none}.live-bus-map .live-bus-next-stop-label::before{border-top-color:#8bb596}:root.dark-mode .live-bus-map .live-bus-next-stop-label{border-color:#5e8c69;background:#203229;color:#d8efdc}

/* KV8 stop details: clear state plus separate planned and expected times. */
.live-bus-stop-list li{grid-template-columns:minmax(105px,1fr) max-content;gap:10px;padding:7px 8px}.live-bus-stop-name{display:flex;min-width:0;flex-direction:column;gap:3px}.live-bus-stop-name strong{overflow-wrap:break-word;word-break:normal;hyphens:auto;font-size:11px;line-height:1.22}.live-bus-stop-state{box-sizing:border-box;width:max-content;max-width:100%;overflow:hidden;padding:2px 5px;border-radius:999px;background:#dcefe2;color:#1f6d3e;font-size:7.5px;font-weight:800;letter-spacing:.025em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.live-bus-stop-list li.is-next .live-bus-stop-state{background:#dcecff;color:#1e5f9b}.live-bus-stop-time{display:flex;align-items:center;justify-content:flex-end;gap:6px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.live-bus-stop-time>span{display:inline-flex;align-items:baseline;gap:3px}.live-bus-stop-time small{color:#7a867e;font-size:7px;text-transform:uppercase}.live-bus-stop-time time{font-size:9.5px}.live-bus-stop-time .is-expected time{font-weight:750!important}.live-bus-stop-time .is-planned time{color:#768078}.live-bus-stop-deviation{justify-self:auto;padding:1px 5px;border-radius:999px;font-size:7.5px}.live-bus-stop-deviation.ontime{background:#edf4ef;color:#3d6548}.live-bus-stop-deviation.late{background:#fff0f0;color:#a52832}.live-bus-stop-deviation.early{background:#edf5ff;color:#275f99}
.live-bus-map .leaflet-popup-content-wrapper{border-radius:9px}.live-bus-map .leaflet-popup-content{margin:10px 12px}.live-bus-stop-popup{display:grid;min-width:145px;gap:3px;color:#263b30;font:11px/1.35 system-ui,sans-serif}.live-bus-stop-popup>strong{font-size:10px;line-height:1.2}.live-bus-stop-popup-expected{font-weight:700}.live-bus-stop-popup-expected.is-ontime{color:#238553}.live-bus-stop-popup-expected.is-late{color:#d92735}.live-bus-stop-popup-expected.is-early{color:#2471a9}.live-bus-stop-popup-status{width:max-content;margin-bottom:2px;padding:2px 5px;border-radius:999px;background:#e4f2e8;color:#276a3f;font-size:8px;font-weight:800;text-transform:uppercase}:root.dark-mode .live-bus-stop-state{background:#284a35;color:#c8ebd2}:root.dark-mode .live-bus-stop-list li.is-next .live-bus-stop-state{background:#243f5b;color:#c8e3ff}:root.dark-mode .live-bus-stop-time small,:root.dark-mode .live-bus-stop-time .is-planned time{color:#aab8ae}:root.dark-mode .live-bus-stop-deviation.ontime{background:#294234;color:#c6e6ce}:root.dark-mode .live-bus-stop-deviation.late{background:#542b30;color:#ffc4c8}:root.dark-mode .live-bus-stop-deviation.early{background:#263e58;color:#c8e3ff}:root.dark-mode .live-bus-stop-popup-expected.is-ontime{color:#7fd29a}:root.dark-mode .live-bus-stop-popup-expected.is-late{color:#ff8f97}:root.dark-mode .live-bus-stop-popup-expected.is-early{color:#84bfff}:root.dark-mode .live-bus-map .leaflet-popup-content-wrapper,:root.dark-mode .live-bus-map .leaflet-popup-tip{background:#1f2d25}:root.dark-mode .live-bus-stop-popup{color:#e4eee7}
.live-bus-map .live-bus-location-control{display:flex;align-items:center;gap:6px;width:auto;height:34px;padding:0 10px;border:1px solid #cbd5ce;border-radius:7px;background:#fff;color:#263b30;box-shadow:0 1px 5px #14251f2e;font:11px/1 system-ui,sans-serif;cursor:pointer}.live-bus-map .live-bus-location-control:hover{background:#f3f7f4}.live-bus-map .live-bus-location-control.is-following{border-color:#79a987;background:#f2faf4;color:#23663b}.live-bus-map .live-bus-location-control:focus-visible{outline:2px solid #2471a9;outline-offset:2px}.live-bus-map .live-bus-location-control span{font-size:13px}.live-bus-map .live-bus-location-control strong{font:700 11px/1 system-ui,sans-serif}:root.dark-mode .live-bus-map .live-bus-location-control{border-color:#4b5e52;background:#1f2d25;color:#e4eee7}:root.dark-mode .live-bus-map .live-bus-location-control:hover{background:#293a31}:root.dark-mode .live-bus-map .live-bus-location-control.is-following{border-color:#60956e;background:#243b2d;color:#bde6c7}
@media(max-width:700px){.live-bus-stop-list li{grid-template-columns:minmax(105px,1fr) max-content}.live-bus-stop-popup{min-width:132px}}

/* The dialog lives inside .leg-main. Keep the global large-text duty rules
   from inflating this deliberately compact timetable. */
.app .live-bus-dialog .live-bus-stop-name strong{font-size:11px!important;font-weight:700;line-height:1.22!important}
.app .live-bus-dialog .live-bus-stop-state{font-size:7.5px!important;line-height:1.2!important}
.app .live-bus-dialog .live-bus-stop-time small{font-size:7px!important;line-height:1.2!important}
.app .live-bus-dialog .live-bus-stop-time time{font-size:9.5px!important;line-height:1.2!important}

/* Vast standaardformaat en compact gestapelde halte-tijden. */
@media(min-width:701px){
  .live-bus-dialog{width:min(980px,calc(100vw - 28px))}
  .live-bus-dialog-body{grid-template-columns:minmax(0,630px) minmax(0,350px)}
  .live-bus-map,.live-bus-details{box-sizing:border-box;height:min(560px,calc(100dvh - 86px));max-height:none}
}
.live-bus-stop-name strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;hyphens:none}
.live-bus-stop-time{display:grid;grid-template-columns:max-content max-content;grid-template-rows:auto auto;align-items:center;gap:2px 6px}
.live-bus-stop-time>span{justify-self:end}
.live-bus-stop-time .is-expected{grid-column:1;grid-row:1}
.live-bus-stop-time .is-planned{grid-column:1;grid-row:2}
.live-bus-stop-time .live-bus-stop-deviation{grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end}
.app .live-bus-dialog .live-bus-stop-deviation{display:inline-flex!important;align-self:center;align-items:center;justify-content:center;box-sizing:border-box;min-width:36px;min-height:20px;padding:0 5px;font-size:7.5px!important;line-height:1!important;text-align:center}

/* Duidelijk afgebakend overzicht van de eerstvolgende haltes. */
.live-bus-upcoming{padding:10px;border:1px solid #d9e2da;border-radius:11px;background:#fff;box-shadow:0 1px 3px #1a35200a}
.live-bus-details .live-bus-upcoming h4{display:flex;align-items:center;gap:7px;margin:0 0 9px;padding:0 2px 9px;border-bottom:1px solid #dfe6e0;color:#172b20;font-size:14px;font-weight:800;letter-spacing:-.1px}
.live-bus-details .live-bus-upcoming h4::before{content:'';width:4px;height:16px;border-radius:999px;background:#2878bd}
.live-bus-upcoming .live-bus-stop-list{display:grid;gap:6px}
.live-bus-upcoming .live-bus-stop-list li{margin:0;padding:8px;border:1px solid #e0e7e1;border-left:3px solid #aab8ae;border-radius:8px;background:#fbfcfb;box-shadow:0 1px 2px #18331e08}
.live-bus-upcoming .live-bus-stop-list li.is-current{border-color:#9ccbad;border-left-color:#269157;background:#edf8f0}
.live-bus-upcoming .live-bus-stop-list li.is-next{border-color:#a9cbea;border-left-color:#2776bd;background:#eef6ff}
.live-bus-upcoming .live-bus-stop-name strong{color:#172b20;font-weight:750!important}
.live-bus-upcoming .live-bus-details-note{margin:4px 2px 2px}
:root.dark-mode .live-bus-upcoming{border-color:#405047;background:#202d27;box-shadow:none}
:root.dark-mode .live-bus-details .live-bus-upcoming h4{border-bottom-color:#405047;color:#edf4ef}
:root.dark-mode .live-bus-upcoming .live-bus-stop-list li{border-color:#405047;border-left-color:#718078;background:#1b2821}
:root.dark-mode .live-bus-upcoming .live-bus-stop-list li.is-current{border-color:#3f7050;border-left-color:#58a873;background:#203a2d}
:root.dark-mode .live-bus-upcoming .live-bus-stop-list li.is-next{border-color:#3e6280;border-left-color:#5598d0;background:#203243}
:root.dark-mode .live-bus-upcoming .live-bus-stop-name strong{color:#edf4ef}

.live-bus-open-live-ov{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;margin:0 0 12px;padding:8px 12px;border:1px solid #b9d1c0;border-radius:9px;background:#edf5ef;color:#20543a;font:inherit;font-size:12px;font-weight:750;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}
.live-bus-open-live-ov:hover{border-color:#7eaa8b;background:#e2f0e6}
.live-bus-open-live-ov:active{transform:translateY(1px)}
.live-bus-open-live-ov>span{font-size:15px;line-height:1}
.live-bus-open-live-ov:focus-visible{outline:3px solid #477359;outline-offset:2px}
:root.dark-mode .live-bus-open-live-ov{border-color:#496451;background:#263b2d;color:#d5ebd9}
:root.dark-mode .live-bus-open-live-ov:hover{background:#304b39}
@media(prefers-reduced-motion:reduce){.live-bus-open-live-ov{transition:none}}

/* Het busvenster gebruikt dezelfde rustige kaarttaal als Live OV. */
.live-bus-dialog{overflow:hidden;border-color:rgba(45,78,94,.15);background:#fff;box-shadow:0 18px 52px rgba(18,48,61,.24)}
.live-bus-dialog::backdrop{background:rgba(19,35,29,.68);backdrop-filter:blur(2px)}
.live-bus-dialog-heading{min-height:58px;box-sizing:border-box;padding:10px 13px 10px 16px;border-bottom:1px solid #e4ebe6;background:rgba(255,255,255,.97)}
.live-bus-dialog-heading>strong{font-size:16px;line-height:1.2;letter-spacing:-.1px}
.live-bus-dialog-heading button{display:grid;width:36px;height:36px;min-height:36px;padding:0;place-items:center;border:1px solid rgba(45,78,94,.13);border-radius:50%;background:#f3f6f5;color:#43545e;box-shadow:0 3px 10px rgba(24,53,66,.08);font:400 20px/1 system-ui,sans-serif;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.live-bus-dialog-heading button:hover{border-color:rgba(44,114,148,.32);background:#fff;color:#173d50;transform:translateY(-1px)}
.live-bus-dialog-route{min-height:34px;border-color:#dbe5df;border-radius:10px;background:#f7faf8;font-size:12px}
.live-bus-dialog-live{color:#287a4a;font-size:10px;font-weight:750}
.live-bus-map{border-bottom:1px solid #dce5df}
.live-bus-details{background:#f8faf9}
.live-bus-trip-details summary{min-height:40px;border-color:#dbe5df;border-radius:10px;background:#fff;color:#354b40;font-size:12px;box-shadow:0 2px 8px rgba(32,60,42,.04)}
.live-bus-trip-details summary::after{content:'';flex:0 0 7px;width:7px;height:7px;margin-right:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:#607168;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
.live-bus-trip-details[open] summary{background:#fff}
.live-bus-trip-details[open] summary::after{content:'';transform:translateY(2px) rotate(225deg)}
.live-bus-open-live-ov{min-height:40px;border-color:#c6d9cc;border-radius:10px;background:#f2f8f4;color:#28563d;box-shadow:0 2px 8px rgba(32,60,42,.035)}
.live-bus-upcoming{border-color:#dbe5df;border-radius:10px;box-shadow:0 2px 8px rgba(32,60,42,.04)}
.live-bus-details .live-bus-upcoming h4{margin-bottom:4px;padding:0 2px 8px;border-bottom:0;color:#50645a;font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.live-bus-details .live-bus-upcoming h4::before{display:none}
.live-bus-upcoming .live-bus-stop-list{gap:0}
.live-bus-upcoming .live-bus-stop-list li{min-height:30px;margin:0;padding:7px 4px;border:0;border-top:1px solid #e5ebe7;border-radius:0;background:transparent;box-shadow:none}
.live-bus-upcoming .live-bus-stop-list li:first-child{border-top:0}
.live-bus-upcoming .live-bus-stop-list li.is-current,.live-bus-upcoming .live-bus-stop-list li.is-next{margin:0 -4px;padding-right:8px;padding-left:8px;border:0;border-radius:6px}
:root.dark-mode .live-bus-dialog{border-color:rgba(183,218,201,.15);background:#1b2622;box-shadow:0 18px 54px rgba(0,0,0,.36)}
:root.dark-mode .live-bus-dialog-heading{border-bottom-color:#405047;background:#1b2622}
:root.dark-mode .live-bus-dialog-heading button{border-color:rgba(183,218,201,.16);background:#24342e;color:#e7f0eb}
:root.dark-mode .live-bus-details{background:#1b2622}
:root.dark-mode .live-bus-trip-details summary,:root.dark-mode .live-bus-trip-details[open] summary{border-color:#405047;background:#223028;color:#edf3ee;box-shadow:none}
@media(max-width:700px){
  .live-bus-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 26px);border-radius:18px}
  .live-bus-dialog-heading{grid-template-columns:minmax(0,1fr) auto auto;gap:9px;padding:9px 11px 9px 14px}
  .live-bus-dialog-heading>strong{font-size:15px;line-height:1.2}
  .live-bus-dialog-route{min-height:34px;font-size:12px}
  .live-bus-map{height:46dvh;min-height:260px}
  .live-bus-details{max-height:31dvh;padding:12px 14px}
}

/* Calm, professional current-duty treatment. Status stays in the badge and dot. */
.app .timeline .leg.is-current{
  margin-left:-10px;
  margin-right:-6px;
  padding:42px 12px 20px 10px;
  border:1px solid #d8e4e8;
  border-left:1px solid #d8e4e8;
  border-radius:14px;
  background-image:linear-gradient(90deg,rgba(137,207,240,.18),rgba(104,183,130,.12)),linear-gradient(90deg,#fbfdfe,#fff)!important;
  background-size:var(--timeline-progress,0%) 100%,100% 100%!important;
  background-repeat:no-repeat!important;
  box-shadow:0 8px 24px rgba(25,51,67,.06)!important;
}
.app .timeline .leg.is-current::before{
  top:9px;
  right:11px;
  padding:7px 11px 6px 29px;
  border:1px solid #f0bec3;
  background-color:#fff2f3;
  background-image:radial-gradient(circle,#dc3442 0 3px,transparent 4px);
  color:#a9222f;
  font-size:11px;
  font-weight:680;
  box-shadow:none;
}
.app .timeline .leg.is-current .timeline-dot{width:11px;height:11px;border:3px solid #fff;background:#dc3442;box-shadow:0 0 0 2px rgba(220,52,66,.18)}
.app .timeline .leg.is-current .run-identifiers{border-color:#d5e2d8;background:#f3f8f3;box-shadow:none}
.app .timeline .leg.is-current .run-identifiers .run-field+.run-field{border-color:#d5e2d8}
.app .timeline .leg.is-current .run-label{color:#607361!important;font-weight:650!important}
.app .timeline .leg.is-current .run-identifiers strong{color:#1b342a!important;font-weight:720!important}
.app .timeline .leg:not(.is-current){border-color:#e5ebed}
.app .timeline .leg:not(.is-current) .timeline-dot{border-color:#aebdb1;background:#fff}
@media(max-width:600px){
  .app .timeline .leg.is-current{margin-left:-5px;margin-right:-3px;padding:40px 7px 17px 5px}
  .app .timeline .leg.is-current::before{top:8px;right:8px;padding:6px 9px 5px 27px}
}

/* Route en ritnummer vormen altijd één begrensde regel. */
.app .leg-main:has(> .run-identifiers){display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.app .leg-main:has(> .run-identifiers)> .run-identifiers{grid-column:1 / -1}
.app .leg-main:has(> .run-identifiers)> .route-title{grid-column:1;min-width:0;overflow:hidden;flex-wrap:nowrap}
.app .leg-main:has(> .run-identifiers)> .route-title strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app .leg-main:has(> .run-identifiers)> .run-trip{grid-column:2;margin:0!important;justify-self:end;white-space:nowrap}
.app .leg-main:has(> .run-identifiers)> .leg-note{grid-column:1 / -1}

/* Op smalle schermen krijgt de live-route een eigen rij in plaats van een
   absolute laag die over de route- en rittekst kan vallen. */
@media(max-width:700px){
  .app .leg.is-current{padding-bottom:17px}
  .app .leg.is-current .run-identifiers:has(> .live-route-mobile){display:grid;width:100%;max-width:100%;grid-template-columns:auto auto minmax(78px,1fr);align-items:stretch;overflow:hidden}
  .app .leg.is-current .run-identifiers:has(> .live-route-mobile)> .run-field{min-width:0;width:auto;padding:6px 7px!important}
  .app .leg.is-current .run-identifiers:has(> .live-route-mobile)> .live-route-mobile{position:static!important;z-index:auto;grid-column:1 / -1;display:block;width:100%;min-width:0;min-height:34px;margin:0;padding:7px 8px 6px!important;border:0!important;border-top:1px solid #d5e2d8!important;border-radius:0;background:transparent!important;color:#42664b;text-align:left;box-shadow:none!important}
  .app .leg.is-current .run-identifiers:has(> .live-route-mobile)> .live-route-mobile .live-route-preview-label{display:none}
  .app .leg.is-current .leg-main .run-trip{display:block}
  .app .leg-main:has(> .run-identifiers){column-gap:8px;row-gap:7px}
  :root.dark-mode .app .leg.is-current .run-identifiers:has(> .live-route-mobile)> .live-route-mobile{border-top-color:#40564a!important;color:#b8d4be}
}

/* Mobiele actuele rit: tijd en live-status delen de kopregel. De inhoud
   daaronder gebruikt de volledige kaartbreedte. */
@media(max-width:700px){
  .app .timeline .leg.is-current{grid-template-columns:minmax(0,1fr);padding:52px 10px 18px}
  .app .timeline .leg.is-current>.leg-time{position:absolute;z-index:3;top:10px;left:12px;display:flex;width:auto;min-height:30px;align-self:auto;flex-direction:row;align-items:center;justify-content:flex-start;gap:0;color:#263746!important;font-size:13px!important;font-weight:700;line-height:1;white-space:nowrap}
  .app .timeline .leg.is-current>.leg-time strong{display:inline;width:auto;color:#263746!important;font-size:13px!important;font-weight:750!important;line-height:1}
  .app .timeline .leg.is-current>.leg-time strong::after{content:"–";display:inline;margin:0 6px;color:#8b9890;font-size:11px;font-weight:500;line-height:1}
  .app .timeline .leg.is-current>.leg-time span{display:inline;width:auto;color:#5f6e75!important;font-size:12px!important;line-height:1}
  .app .timeline .leg.is-current>.timeline-dot{display:none}
  .app .timeline .leg.is-current>.leg-main{grid-column:1;min-width:0;width:100%}
  .app .timeline .leg.is-current>.leg-main>.route-title{margin-left:64px}
  .app .timeline .leg.is-current::before{top:9px;right:10px}
  :root.dark-mode .app .timeline .leg.is-current>.leg-time strong{color:#edf3ee!important}
  :root.dark-mode .app .timeline .leg.is-current>.leg-time span{color:#b9c7bd!important}
}

@media(max-width:360px){
  .app .timeline .leg.is-current>.leg-time{left:9px;font-size:12px!important}
  .app .timeline .leg.is-current>.leg-time strong{font-size:12px!important}
  .app .timeline .leg.is-current>.leg-time span{font-size:11px!important}
  .app .timeline .leg.is-current::before{right:8px}
}

/* Een MAT-regel heeft alleen Omloop en Bus. Houd die combinatie
   inhoudsbreed en gebruik voor een verouderde busstatus geen grijs vlak. */
@media(max-width:700px){
  .app .service-live-mat.run-identifiers:has(.live-bus-inline){display:inline-flex;width:max-content;max-width:100%;align-items:stretch;background:#f0f5e9}
  .app .service-live-mat.run-identifiers:has(.live-bus-inline)>.run-block{flex:0 1 auto;min-width:0}
  .app .service-live-mat.run-identifiers:has(.live-bus-inline)>.live-bus-inline{flex:0 0 auto;min-width:0;background:transparent!important}
  :root.dark-mode .app .service-live-mat.run-identifiers:has(.live-bus-inline){background:#22342a}

}

/* Zonder ingebouwde live-route bepaalt de inhoud de breedte. De groene rand
   stopt daardoor direct na het busnummer, ook bij korte of lange waarden. */
@media(max-width:700px){
  .app .run-identifiers:has(> .live-bus-inline):not(:has(> .live-route-mobile)){display:inline-flex;width:max-content;max-width:100%;align-items:stretch;justify-content:flex-start}
  .app .run-identifiers:has(> .live-bus-inline):not(:has(> .live-route-mobile))> .run-field:first-child,
  .app .run-identifiers:has(> .live-bus-inline):not(:has(> .live-route-mobile))> .run-block{flex:0 1 auto;min-width:0}
  .app .run-identifiers:has(> .live-bus-inline):not(:has(> .live-route-mobile))> .live-bus-inline{flex:0 0 auto;min-width:0}
}

/* Desktop: de live-balk hoort bij de voertuiggegevens en krijgt daar een
   eigen rij. Zo blijft de gewone routeregel vrij voor bestemming + ritnummer. */
@media(min-width:701px){
  .app .leg.is-current .run-identifiers:has(> .live-route-preview){overflow:hidden}
  .app .leg.is-current .run-identifiers:has(> .live-route-preview)> .live-route-preview{
    position:relative!important;
    inset:auto!important;
    flex:1 0 100%;
    box-sizing:border-box;
    width:100%;
    min-height:45px;
    margin:0;
    padding:6px 10px 5px!important;
    border:0!important;
    border-top:1px solid #d5e2d8!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  :root.dark-mode .app .leg.is-current .run-identifiers:has(> .live-route-preview)> .live-route-preview{border-top-color:#40564a!important}
}

/* Mobiel: toelichting en plaatscodes volgen steeds dezelfde verticale
   leesvolgorde als de routeregel erboven. */
@media(max-width:700px){
  .app .timeline .leg.is-current>.leg-main>.leg-note{grid-column:1;margin-left:64px}
  .app .timeline .leg.service>.leg-main{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-items:start}
  .app .timeline .leg.service>.leg-main>.activity,
  .app .timeline .leg.service>.leg-main>p,
  .app .timeline .leg.service>.leg-main>.service-live-identifiers{grid-column:1;width:auto;max-width:100%}
  .app .timeline .leg.service>.leg-main>p{margin:5px 0 0;text-align:left}
  .app .timeline .leg.service>.leg-main>.service-live-identifiers{margin-top:8px}
}

/* MAT gebruikt overal dezelfde volgorde: titel, voertuiggegevens, route. */
.app .timeline .leg.service>.leg-main:has(> .service-live-mat){display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-items:start}
.app .timeline .leg.service>.leg-main:has(> .service-live-mat)> .activity{order:1;grid-column:1}
.app .timeline .leg.service>.leg-main:has(> .service-live-mat)> .service-live-mat{order:2;grid-column:1;margin-top:8px}
.app .timeline .leg.service>.leg-main:has(> .service-live-mat)> p{order:3;grid-column:1;margin:7px 0 0;text-align:left}
.app .service-live-mat.run-identifiers:has(.live-bus-inline){display:inline-flex;width:max-content;max-width:100%;align-items:stretch;background:#f0f5e9}
.app .service-live-mat.run-identifiers:has(.live-bus-inline)> .run-block{flex:0 1 auto;min-width:0}
.app .service-live-mat.run-identifiers:has(.live-bus-inline)> .live-bus-inline{flex:0 0 auto;min-width:0;background:transparent!important}
:root.dark-mode .app .service-live-mat.run-identifiers:has(.live-bus-inline){background:#22342a}

/* Keep live bus identifiers neutral and route status legible in both themes. */
.live-route-preview-track{background:linear-gradient(90deg,#244f7a 0%,#244f7a var(--live-route-progress),#cbd4dc var(--live-route-progress),#cbd4dc 100%)}
:root.dark-mode .live-route-preview-track{background:linear-gradient(90deg,#4679ad 0%,#4679ad var(--live-route-progress),#455363 var(--live-route-progress),#455363 100%)}
.app .run-identifiers:has(.live-bus-inline){background:transparent!important;border-color:#d6e0e8!important}
.app .run-identifiers:has(.live-bus-inline)>.run-field+.run-field{border-color:#d6e0e8!important}
:root.dark-mode .app .run-identifiers:has(.live-bus-inline){background:transparent!important;border-color:#46515e!important}
:root.dark-mode .app .run-identifiers:has(.live-bus-inline)>.run-field+.run-field{border-color:#46515e!important}
.app .leg.is-current .run-identifiers:has(> .live-route-preview)>.live-route-preview{border-top-color:#d6e0e8!important}
.app .leg.is-current .run-identifiers:has(> .live-route-mobile)>.live-route-mobile{border-top-color:#d6e0e8!important}
:root.dark-mode .app .leg.is-current .run-identifiers:has(> .live-route-preview)>.live-route-preview{border-top-color:#46515e!important}
:root.dark-mode .app .leg.is-current .run-identifiers:has(> .live-route-mobile)>.live-route-mobile{border-top-color:#46515e!important}
:root.dark-mode .live-route-preview-stops>span.live-route-current-stop{border-color:#64748b;background:#263241;color:#fff!important}
:root.dark-mode .app .leg.is-current .live-route-preview-track{background:linear-gradient(90deg,#356b96 0%,#356b96 var(--live-route-progress),#465463 var(--live-route-progress),#465463 100%)!important}
