#lifePanel {
  width: min(292px, calc(100vw - 24px));
  background: #fbf6e8;
  border: 1px solid #cbbf9f;
  border-radius: 16px;
  padding: 12px 15px;
  color: #193d32;
  box-shadow: 0 7px 26px #17312638;
  overscroll-behavior: contain;
}
#lifePanel [hidden] {display: none}
#lifePanel .life-heading {display:flex; align-items:center; justify-content:space-between; gap:8px}
#lifePanel .life-heading h2 {font:normal 23px/1.13 Georgia,serif; margin:4px 0 7px}
#lifePanel .life-dismiss {cursor:pointer; color:inherit; background:transparent; border:0; font:24px/1 system-ui; width:40px; height:40px; padding:0}
#lifePanel .life-row {display:flex; align-items:center; gap:9px; border-top:1px solid #d8cfb9; min-height:73px}
#lifePanel .life-model {width:51px; height:51px; flex:0 0 51px; background-size:800% 600%; background-position:71.42857% 0; background-repeat:no-repeat;}
#lifePanel .life-car {background-image:url('vehicules/berline-or.webp')}
#lifePanel .life-boat {background-image:url('vehicules/vedette.webp')}
#lifePanel .life-plane {background-image:url('vehicules/monomoteur.webp')}
#lifePanel .life-row > div {flex:1}
#lifePanel label {min-height:37px; gap:8px; display:flex; flex-direction:row-reverse; justify-content:space-between; cursor:pointer; font:600 15px/1.2 system-ui,sans-serif}
#lifePanel input {width:19px; height:19px; accent-color:#295744; cursor:pointer}
#lifePanel .life-row .find {display:block; width:auto; border:0; padding:0 5px 6px 0; min-height:32px; color:#903f25; background:none; font:500 14px/1.2 system-ui,sans-serif; text-align:left; text-decoration:underline; text-decoration-color:#bb8b6c; text-underline-offset:3px}
#lifePanel [data-play] {width:100%; margin-top:3px; border:1px solid #c2b79c; border-radius:8px; padding:10px; color:#193d32; background:#f1ebd8; text-align:center; font:600 14px/1.2 system-ui,sans-serif; min-height:43px}
#lifePanel .life-location {margin:1px 0 0; color:#365947; font-size:14px; font-weight:600}
#lifePanel .life-stop {padding:5px 0 9px; border:0; color:#903f25; text-decoration:underline; text-underline-offset:3px; font-size:14px}
#lifePanel button:focus-visible,#lifePanel input:focus-visible {outline:2px solid #a3482d; outline-offset:2px}
#lifePanel .sound-row {display:flex; align-items:center; gap:10px; margin:0 0 10px}
#lifePanel .sound-toggle {flex:none; display:flex; align-items:center; gap:7px; min-height:40px; border:1px solid #c2b79c; border-radius:8px; padding:8px 11px; color:#193d32; background:#f1ebd8; font:600 14px/1.2 system-ui,sans-serif}
#lifePanel .sound-toggle svg {width:20px; height:20px; fill:currentColor; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
#lifePanel .sound-toggle .sound-waves {fill:none; opacity:.3}
#lifePanel .sound-toggle[aria-pressed=true] {color:#fbf6e8; background:#193d32; border-color:#193d32}
#lifePanel .sound-toggle[aria-pressed=true] .sound-waves {opacity:1}
#lifePanel .sound-volume {flex:1; min-width:0; width:auto; height:28px}
#lifeBtn[data-tracking] {box-shadow:inset 0 0 0 2px #a3482d,0 2px 9px #17312633}
#lifePanel {max-height:70dvh; overflow-y:auto}

#sceneLayer {position:fixed; inset:0; width:100%; height:100%; pointer-events:none}
.scene-menu {margin:2px 0 12px}
.scene-menu-title {margin:0 0 8px; color:var(--mute); font:600 14px/1.25 system-ui,sans-serif}
.scene-menu-buttons {display:grid; grid-template-columns:1fr 1fr; gap:6px}
.scene-menu-buttons button {min-height:44px; border:1px solid #cabd9d; border-radius:8px; padding:8px 4px; color:#203e34; background:#eee6d0; font:600 14px/1.2 system-ui,sans-serif}
.scene-menu-buttons button:hover {background:#e6dcc1}
.scene-menu-buttons button[aria-pressed=true] {color:#fbf6e8; background:#193d32; border-color:#193d32}

#sceneCard {position:fixed; z-index:4; left:var(--left); bottom:calc(var(--bottom) + 56px); width:min(310px,calc(100vw - 2 * var(--left))); padding:12px 40px 12px 15px; color:#264137; background:#fff8e8; border:1px solid #c4b598; border-radius:12px; box-shadow:0 4px 20px #152c3340}
#sceneCard small,#sceneCard strong,#sceneCard output {display:block}
#sceneCard small {margin-bottom:5px; font:12px system-ui,sans-serif}
#sceneCard strong {font:22px Georgia,serif}
#sceneCard .leave {position:absolute; top:0; right:0; width:40px; height:40px; border:0; padding:0; background:none; font:24px/1 system-ui,sans-serif}
#sceneCard .station {margin-top:8px; font:14px system-ui,sans-serif}
#sceneCard select {max-width:185px; font:inherit}
#sceneCard .fit {display:block; margin-top:7px; border:0; padding:0; color:#903f25; background:none; font:500 14px/1.2 system-ui,sans-serif; text-decoration:underline; text-decoration-color:#bb8b6c; text-underline-offset:3px}
#sceneCard .sound-invite {display:block; margin-top:9px; border:0; padding:0; color:#903f25; background:none; font:500 14px/1.2 system-ui,sans-serif; text-decoration:underline; text-decoration-color:#bb8b6c; text-underline-offset:3px}
#sceneCard .sound-invite[hidden] {display:none}
#sceneCard output {margin-top:8px; color:#58625a; font-size:12px}
#sceneCard .departures {list-style:none; margin:4px 0 0; padding:0}
#sceneCard .departures li {display:flex; align-items:center; gap:8px; min-height:28px; border-top:1px solid #e3d9c0}
#sceneCard .departures b {flex:none; width:20px; height:20px; border-radius:50%; color:#162c39; font:700 12px/20px system-ui,sans-serif; text-align:center}
#sceneCard .departures span:first-of-type {flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
#sceneCard .departures .wait {flex:none; font-weight:600; font-variant-numeric:tabular-nums}
#sceneCard .departures .planned .wait {color:#58625a; font-weight:400}
#sceneCard button:focus-visible,#sceneCard select:focus-visible {outline:2px solid #a3482d; outline-offset:2px}
/* The mini-map would cover the plan, and on a phone the scene card. */
body.rx-metro .loc {visibility:hidden}
@media (max-width:700px) {
  body.rx-scene .loc,body.rx-scene #scale {visibility:hidden}
}
