/* Last stylesheet — responsive shell, no engine changes */
body.rv110{--rv-bg:#0c111b;--rv-panel:#141c29;--rv-card:#1d2838;--rv-input:#101926;--rv-text:#f3f6fc;--rv-muted:#b4c0d2;--rv-border:#303e52;--rv-accent:#e8ba58;--rv110-rail:84px;--rv110-nav:68px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;overflow:hidden; margin:0;background:var(--rv-bg);color:var(--rv-text)}
body.rv110[data-rv6-theme=light]{--rv-bg:#edf2f7;--rv-panel:#fff;--rv-card:#f2f5f9;--rv-input:#fff;--rv-text:#17253a;--rv-muted:#4d6075;--rv-border:#d4dde7;--rv-accent:#93600b}
.rv110 *{box-sizing:border-box}.rv110 > header{flex:0 0 auto;min-height:58px;padding:8px 18px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 0 var(--rv-border);z-index:8}.rv110 .brand h1{font-size:19px;letter-spacing:-.035em;margin:0}.rv110 .brand span{font-size:11px}.rv110 .rv6-header-actions button{min-height:38px;border-radius:10px}.rv110 .rv6-main{flex:1;min-height:0;height:auto;position:relative;display:grid;grid-template-columns:var(--rv110-rail) var(--rv6-panel-width,350px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;overflow:hidden;gap:0}.rv110 #map{grid-area:1/3/2/4;min-height:0;min-width:0}.rv110 .rv6-panel{grid-area:1/2/3/3;min-width:0;padding:16px;overflow:auto;scrollbar-width:thin;border-right:1px solid var(--rv-border);background:var(--rv-panel)}.rv110 .rv6-dock{grid-area:2/3/3/4;padding:10px 16px;max-height:36dvh;background:var(--rv-panel);border-top:1px solid var(--rv-border)}.rv110 .rv110-rail{grid-area:1/1/3/2;display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:10px 6px;background:var(--rv-bg);border-right:1px solid var(--rv-border);min-width:0;overflow:auto;z-index:9}.rv110 .rv6-tabs,.rv110 .rv110-extra{display:flex;flex-direction:column;gap:5px;position:static;padding:0;background:none}.rv110 .rv110-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;width:100%;padding:7px 2px;border:1px solid transparent;background:transparent;font-size:10px;font-weight:600;color:var(--rv-muted);border-radius:13px;white-space:normal;line-height:1.15}.rv110 .rv110-rail button.active,.rv110 .rv110-rail button[aria-pressed=true]{color:var(--rv-accent);background:var(--rv-card);border-color:var(--rv-border)}.rv110 .rv110-icon{width:22px;height:22px;flex:none}.rv110 .rv110-panel-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-16px;background:var(--rv-panel);padding:12px 0;z-index:3;border-bottom:1px solid var(--rv-border);margin-bottom:12px}.rv110 .rv110-panel-head strong{font-size:19px;letter-spacing:-.03em}.rv110 .rv110-close{font-size:24px;width:38px;height:38px;padding:0}.rv110 .rv6-view>h2{display:none}.rv110 .rv6-view h3{font-size:14px;letter-spacing:-.015em}.rv110 .rv6-view p,.rv110 .rv6-view label{line-height:1.5}.rv110 .rv6-view button,.rv110 .rv6-view select,.rv110 .rv6-view input:not([type=checkbox]):not([type=range]){min-height:42px;border-radius:11px}.rv110 .rv6-view input[type=checkbox]{width:18px;height:18px;accent-color:var(--rv-accent);vertical-align:middle}.rv110 .rv6-view input[type=range]{accent-color:var(--rv-accent);max-width:100%}.rv110 .rv110-primary{background:#e8ba58!important;color:#17202c!important;border:0!important;font-weight:700}.rv110 .rv6-metrics{gap:8px}.rv110 .rv6-metric,.rv110 .stat-card,.rv110 .rv6-train-row{border-radius:13px;padding:13px 9px}.rv110 .rv6-metric strong{font-size:24px}.rv110 .rv6-train-row{background:var(--rv-card);padding:13px;text-align:left}.rv110 .rv6-note{border-left:2px solid var(--rv-accent);font-size:12px!important}.rv110 .rv110-quick .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.rv110 .rv110-quick .toolbar button{white-space:normal;min-width:0;font-size:12px}.rv110 .rv110-setting-group{margin:0 0 10px;background:var(--rv-card);border:1px solid var(--rv-border);border-radius:14px;overflow:hidden}.rv110 .rv110-setting-group>summary{padding:15px;cursor:pointer;font-weight:650;font-size:14px;min-height:46px}.rv110 .rv110-setting-body{padding:0 12px 14px;min-width:0}.rv110 .rv110-setting-body section{margin-top:8px;min-width:0}.rv110 .rv110-setting-body label{overflow-wrap:anywhere}.rv110 .rv110-setting-body select{max-width:100%}.rv110 .rv6-dock-header{gap:8px}.rv110 .rv6-dock-header button{min-height:36px}.rv110 .simulation-panel button{min-height:36px}.rv110 #simulation-clock{color:var(--rv-accent);font-size:25px}.rv110 .rv096-toggle,.rv110 .rv09612-controls{border-radius:13px;box-shadow:0 4px 18px #0003;background:var(--rv-panel);color:var(--rv-text);border:1px solid var(--rv-border)}.rv110 .rv09612-controls{bottom:36px;left:12px}.rv110 .rv09612-controls button{background:var(--rv-card);color:var(--rv-text);border-color:var(--rv-border)}.rv110 .rv096-toggle{left:12px;top:12px;min-height:44px}.rv110 .rvlegal-bar.rv110-footer{position:relative;inset:auto;max-width:none;width:100%;border:0;border-top:1px solid var(--rv-border);border-radius:0;box-shadow:none;background:var(--rv-panel);color:var(--rv-muted);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 12px;flex:none;z-index:10}.rv110 .rvlegal-notice{margin:0;font-size:10px}.rv110 .rvlegal-footer button,.rv110 .rvlegal-bar button{font-size:11px;min-height:30px;white-space:normal}.rv110 dialog{border-radius:20px!important;max-height:90dvh!important;overscroll-behavior:contain;box-shadow:0 24px 80px #0005}.rv110 dialog button{min-height:44px}.rv110 dialog a{color:var(--rv-accent)}.rv110 .maplibregl-popup-content{border-radius:14px;box-shadow:0 10px 35px #0003;max-width:min(320px,76vw);max-height:50dvh;overflow:auto}.rv110 :focus-visible{outline:2px solid var(--rv-accent);outline-offset:2px}.rv110.rv110-wide-map .rv6-main,.rv110.rv6-collapsed .rv6-main{grid-template-columns:var(--rv110-rail) 0 minmax(0,1fr)}.rv110.rv110-wide-map .rv6-panel,.rv110.rv6-collapsed .rv6-panel{display:none}
@media(max-width:820px){body.rv110{--rv110-nav:65px}.rv110 > header{min-height:49px;padding:6px 10px}.rv110 .brand h1{font-size:16px}.rv110 .brand span{display:none}.rv110 .rv6-header-actions{display:none}.rv110 .rv6-main,.rv110.rv110-wide-map .rv6-main,.rv110.rv6-collapsed .rv6-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto var(--rv110-nav);}.rv110 #map{grid-area:1/1/2/2}.rv110 .rv6-dock{grid-area:2/1/3/2;max-height:34dvh;padding:7px 10px}.rv110 .rv110-rail{grid-area:3/1/4/2;flex-direction:row;padding:3px 4px;gap:2px;border-right:0;border-top:1px solid var(--rv-border);overflow:visible;align-items:stretch}.rv110 .rv6-tabs{display:contents}.rv110 .rv110-extra{display:contents}.rv110 .rv110-rail button{flex:1 1 0;min-width:0;min-height:54px;font-size:10px;border-radius:10px}.rv110 .rv110-icon{width:20px;height:20px}.rv110 .rv6-panel,.rv110.rv6-collapsed .rv6-panel,.rv110.rv110-wide-map .rv6-panel{display:none;position:absolute;bottom:var(--rv110-nav);left:0;right:0;top:auto;width:100%;height:min(56dvh,calc(100% - var(--rv110-nav)));max-height:none;z-index:7;border-radius:20px 20px 0 0;border:1px solid var(--rv-border);padding:12px 16px;box-shadow:0 -12px 45px #0004;overscroll-behavior:contain}.rv110.rv110-panel-open .rv6-panel{display:block}.rv110 .rv110-panel-head{top:-12px}.rv110 .rv6-view button,.rv110 .rv6-view select,.rv110 .rv6-view input:not([type=checkbox]):not([type=range]){min-height:44px;font-size:16px}.rv110 .rv09612-controls{bottom:32px;max-width:calc(100% - 72px);left:8px}.rv110 .rv096-toggle{top:8px;left:8px}.rv110 .rvlegal-bar.rv110-footer{padding:4px 8px env(safe-area-inset-bottom,0px);gap:5px}.rv110 .rvlegal-notice{font-size:9px}.rv110 .rvlegal-bar button{min-height:44px;max-width:42%}.rv110 .rv6-dock-header button{min-height:44px}.rv110 .rv6-dock .simulation-panel{gap:6px}.rv110 dialog{width:calc(100vw - 16px)!important;padding:14px!important}.rv110 .rv094-details{overflow:auto}.rv110 .rv094-dialog input{font-size:16px}.rv110 .rv09612-controls button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.rv110 *{scroll-behavior:auto!important;transition:none!important}}
/* The new Map button replaces the old collapse control visually. */
.rv110 > header .rv6-header-actions > button:first-child{display:none}.rv110:not(.rv110-panel-open) .rv110-rail [data-tab].active{background:transparent;border-color:transparent;color:var(--rv-muted)}.rv110 .rv110-rail button:disabled{opacity:.45}.rv110 [hidden]{display:none!important}
@media(max-width:820px){.rv110 .rv110-rail button{font-size:9px}.rv110 .rv6-panel{scroll-padding-top:60px}.rv110 .rv6-panel input[type=date]{max-width:100%}}

/* V1.1.1 — fixed selection inspector, shared by desktop and mobile. */
.rv111-inspector{position:absolute;z-index:6;left:12px;bottom:30px;width:min(352px,calc(100% - 76px));max-height:calc(100% - 86px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:14px;color:var(--rv-text,#f3f6fc);background:var(--rv-panel,#141c29);border:1px solid var(--rv-border,#303e52);border-radius:18px;box-shadow:0 12px 34px #0005;font-family:Inter,system-ui,sans-serif;font-size:13px;line-height:1.4;touch-action:pan-y;}
.rv111-inspector[hidden],.rv111-inspector [hidden]{display:none!important}.rv111-head{display:flex;align-items:center;gap:6px}.rv111-identity{min-width:0;flex:1;display:grid;gap:2px}.rv111-identity strong{font-size:17px;line-height:1.2;overflow-wrap:anywhere}.rv111-inspector small{color:var(--rv-muted,#b4c0d2);font-size:11px;line-height:1.4}.rv111-inspector button{font:inherit;color:inherit;background:var(--rv-card,#1d2838);border:1px solid var(--rv-border,#303e52);border-radius:10px;min-height:36px;padding:5px 8px;cursor:pointer}.rv111-inspector button:focus-visible,.rv111-inspector input:focus-visible{outline:2px solid var(--rv-accent,#e8ba58);outline-offset:2px}.rv111-head button{flex:0 0 36px;font-size:21px;padding:0;line-height:1}.rv111-metrics{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px}.rv111-speed,.rv111-state{border:1px solid var(--rv-border,#303e52);background:var(--rv-card,#1d2838);border-radius:12px;padding:10px;min-width:0}.rv111-speed strong{font-size:38px;line-height:1.05;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:var(--rv-accent,#e8ba58)}.rv111-speed>span{margin-left:5px;font-size:12px}.rv111-speed small,.rv111-state small{display:block;margin-top:4px}.rv111-state strong{font-size:14px;overflow-wrap:anywhere}.rv111-camera{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.rv111-camera button{font-size:11px;padding:4px 2px;min-width:0}.rv111-camera button[aria-pressed=true]{background:#e8ba58;border-color:#e8ba58;color:#17202c;font-weight:700}.rv111-orbit{display:grid;gap:4px;font-size:11px;color:var(--rv-muted,#b4c0d2)}.rv111-orbit input{width:100%;min-width:0;accent-color:var(--rv-accent,#e8ba58)}.rv111-details{display:grid;gap:7px;border-top:1px solid var(--rv-border,#303e52);padding-top:10px}.rv111-endpoints{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.rv111-endpoints strong{overflow-wrap:anywhere;font-size:13px}.rv111-endpoints strong:last-child{text-align:right}.rv111-details progress{width:100%;height:7px;accent-color:var(--rv-accent,#e8ba58);border-radius:10px}.rv111-details p,.rv111-details h3{margin:0;font-size:12px}.rv111-details ol{padding:0 0 0 17px;margin:0;max-height:130px;overflow:auto}.rv111-details li{padding:4px 0;border-bottom:1px solid var(--rv-border,#303e52);overflow-wrap:anywhere}.rv111-details li small{display:block}.rv111-warning{border-top:1px solid var(--rv-border,#303e52);padding-top:7px}.rv111-collapsed .rv111-warning{font-size:10px}.rv111-collapsed{gap:7px;padding:10px}.rv111-inspector .rv111-camera button:disabled{opacity:.5}
@media(max-width:820px){.rv111-inspector{left:8px;right:8px;bottom:27px;width:auto;max-height:min(58dvh,calc(100% - 58px));padding:10px;border-radius:15px;gap:7px}.rv111-inspector button{min-height:44px}.rv111-head button{flex-basis:44px}.rv111-speed strong{font-size:30px}.rv111-camera button{font-size:11px}.rv111-speed,.rv111-state{padding:7px}.rv111-details ol{max-height:100px}.rv111-identity strong{font-size:15px}.rv111-inspector .rv111-warning{font-size:10px}}
@media(max-height:480px){.rv111-inspector{max-height:calc(100% - 42px)}}
