/* Lifetime totals only; preserve the existing section controls and area table. */
#lifetimePanel .lifetime-totals{gap:12px}
#lifetimePanel .lifetime-totals>.lifetime-metric{position:relative;overflow:hidden;padding:18px 20px;background:#fffef9;border-color:#dce2d4;border-radius:16px}
#lifetimePanel .lifetime-metric-art{display:block;object-fit:contain;object-position:left center;width:76px;height:50px;margin-bottom:12px;transition:transform .22s ease}
#lifetimePanel .lifetime-metric>span{display:block;color:#56644f;font-size:.875rem;line-height:1.45}
#lifetimePanel .lifetime-metric>strong{display:block;color:#203b2f;font-family:inherit;font-size:clamp(1.4rem,2.05vw,1.9rem);font-weight:650;letter-spacing:-.035em;line-height:1.25;overflow-wrap:anywhere;margin:7px 0 10px}
#lifetimePanel .lifetime-metric>small{display:block;color:#586452;font-size:.8125rem;line-height:1.5}
#lifetimePanel .lifetime-metric>small b{font-weight:650;color:#365a41}#lifetimePanel .lifetime-metric>small span{display:block;font-size:.75rem}
#lifetimePanel .lifetime-totals>.lifetime-metric-2{background:#edf2e7;border-color:#bfceb2}
.lifetime-journey{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);gap:24px;border:1px solid #d8e0d0;border-radius:18px;background:#f8faf4;padding:14px;margin:0 0 18px;align-items:center;min-width:0}
.lifetime-journey-copy{min-width:0;max-width:620px;padding:0 4px 0 6px}.lifetime-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.7rem;font-weight:700;letter-spacing:.065em;color:#4e6345;margin:0 0 8px;text-transform:uppercase}.lifetime-eyebrow>span{font-size:.6rem;letter-spacing:.045em;background:#e5ecdd;border-radius:20px;padding:4px 7px}
.lifetime-journey h4{font-family:inherit;font-size:clamp(1.1rem,1.5vw,1.3rem);font-weight:500;line-height:1.35;letter-spacing:-.025em;margin:0 0 8px;color:#203b2f}.lifetime-journey h4 strong{font-weight:700}.lifetime-remaining{margin:0 0 10px;color:#586452;font-size:.875rem}.lifetime-remaining>strong{font-size:1.45rem;line-height:1.3;letter-spacing:-.04em;font-weight:650;color:#203b2f;font-variant-numeric:tabular-nums}
.lifetime-leg{display:flex;justify-content:space-between;gap:12px;font-size:.75rem;color:#586452;margin-bottom:7px}.lifetime-leg>span:last-child{text-align:right}.lifetime-journey progress{display:block;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;background:#e0e6d8;accent-color:#58774a}.lifetime-journey progress::-webkit-progress-bar{background:#e0e6d8;border-radius:10px}.lifetime-journey progress::-webkit-progress-value{background:#58774a;border-radius:10px}.lifetime-journey progress::-moz-progress-bar{background:#58774a;border-radius:10px}.lifetime-journey-note{font-size:.78rem;line-height:1.6;color:#586452;margin:8px 0 0;max-width:520px}
.lifetime-map-button{display:block;width:100%;min-width:0;padding:0;border:1px solid #cbd7c3;border-radius:13px;background:#edf2ed;color:#203b2f;overflow:hidden;text-align:left;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.lifetime-route-map{display:block;width:100%;height:auto;overflow:hidden}.lifetime-map-button>.lifetime-route-map{height:164px}.lifetime-route-map text{font:600 14px system-ui,sans-serif;fill:#324d35;paint-order:stroke;stroke:#edf2ed;stroke-width:3;stroke-linejoin:round}.lifetime-map-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#fffef9;font-size:.75rem;line-height:1.4}.lifetime-map-caption b{display:inline-flex;align-items:center;gap:7px;font-size:.75rem;white-space:nowrap}.lifetime-map-caption b>span{font-size:1.1rem}.lifetime-map-button:focus-visible,.lifetime-close:focus-visible{outline:3px solid #b58b41;outline-offset:3px}.lifetime-map-button:active{border-color:#527347;background:#e3eadb}
.lifetime-journey-dialog{width:min(850px,calc(100vw - 28px));max-width:850px;max-height:calc(100dvh - 32px);padding:26px;border:1px solid #d5dfce;border-radius:22px;background:#fffef9;color:#203b2f;overflow:auto;box-sizing:border-box}.lifetime-journey-dialog::backdrop{background:#132a24a6;backdrop-filter:blur(3px)}.lifetime-dialog-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.lifetime-dialog-head .kicker{margin:0 0 5px;font-size:.7rem}.lifetime-dialog-head h2{font-size:1.8rem;margin:0}.lifetime-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #d3ddcb;background:#f1f4eb;color:#203b2f;font-size:1.6rem;border-radius:50%;cursor:pointer}.lifetime-dialog-lead{font-size:.875rem;line-height:1.6;margin:14px 0 20px}.lifetime-dialog-lead strong{font-size:1.1rem;font-variant-numeric:tabular-nums}.lifetime-journey-dialog .lifetime-route-map{border:1px solid #d5dfce;border-radius:16px}.lifetime-route-explanation,.lifetime-source{font-size:.8rem;line-height:1.65;color:#586452;margin:16px 0}.lifetime-source a{color:inherit;text-underline-offset:3px}.lifetime-stop-list{list-style:none;padding:0;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.lifetime-stop-list li{display:flex;gap:12px;align-items:center;padding:13px 5px;border-bottom:1px solid #e3e7dc;min-width:0}.lifetime-stop-dot{width:9px;height:9px;border:2px solid #9daa92;border-radius:50%;flex:0 0 9px}.lifetime-stop-list .is-reached .lifetime-stop-dot{background:#69855a;border-color:#69855a}.lifetime-stop-list .is-next .lifetime-stop-dot{background:#bb8248;border-color:#bb8248;box-shadow:0 0 0 4px #eee2cf}.lifetime-stop-list .is-next{background:#f6f0e6;border-radius:10px;padding-inline:9px}.lifetime-stop-list li>span:nth-child(2){min-width:0}.lifetime-stop-list strong{display:block;font-size:.875rem}.lifetime-stop-list small{display:block;font-size:.72rem;line-height:1.5;color:#586452}.lifetime-stop-list li>b{margin-left:auto;font-size:.8125rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(hover:hover) and (pointer:fine){.lifetime-metric:hover .lifetime-metric-art{transform:translateY(-3px) rotate(-2deg)}.lifetime-map-button:hover{border-color:#718e62;box-shadow:0 4px 15px #233c2910}}
@media(max-width:700px){#lifetimePanel .lifetime-totals>.lifetime-metric{padding:14px;border-radius:13px}#lifetimePanel .lifetime-metric-art{width:65px;height:44px;margin-bottom:9px}#lifetimePanel .lifetime-metric>span{font-size:.8rem}#lifetimePanel .lifetime-metric>strong{font-size:clamp(1.2rem,4.6vw,1.55rem)}#lifetimePanel .lifetime-metric>small{font-size:.75rem}.lifetime-journey{grid-template-columns:1fr;padding:12px;gap:10px}.lifetime-journey-copy{padding:0}.lifetime-journey h4{font-size:1.15rem}.lifetime-remaining{margin-bottom:9px}.lifetime-journey-note{max-width:none}.lifetime-map-button>.lifetime-route-map{height:128px}.lifetime-map-caption{font-size:.72rem;padding:8px 10px}.lifetime-map-caption b{font-size:.72rem}.lifetime-journey-dialog{padding:19px;max-height:calc(100dvh - 24px)}.lifetime-dialog-head h2{font-size:1.5rem}.lifetime-stop-list{grid-template-columns:1fr}.lifetime-journey-dialog .lifetime-route-map{min-height:180px;object-fit:contain}}
@media(prefers-reduced-motion:reduce){.lifetime-metric-art,.lifetime-map-button{transition:none}.lifetime-metric:hover .lifetime-metric-art{transform:none}}
@media print{.lifetime-map-button{border-color:#aaa}.lifetime-journey-dialog{display:none!important}}
