:root{--panel: rgba(18, 22, 28, .82);--text: #e8ecf1;--muted: #9aa5b1;--accent: #4dabf7;--ink: #2b333d;--line: #d5dae0}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#cfd8e3;font-family:system-ui,Hiragino Sans,Noto Sans JP,sans-serif;color:var(--text)}#app{display:grid;grid-template-areas:"scene" "dia" "bar";grid-template-rows:minmax(0,1fr) 0 auto;height:100%;height:100dvh}#app.view-dia,#app.scene-out{grid-template-rows:0 minmax(0,1fr) auto}#app.detached:not(.scene-out){grid-template-rows:minmax(0,1fr) 0 auto}#scene-pane{grid-area:scene;position:relative;min-height:0;overflow:hidden}#viewport{position:absolute;inset:0}#splitter{grid-area:bar;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:3px 8px;background:#1f252c;color:var(--text);font-size:13px;user-select:none}#splitter .bar-info{display:contents}#splitter .speeds,#splitter .speed-ctl{display:inline-flex;align-items:center;gap:3px}#splitter .speed-ctl{margin-left:6px}#splitter #clock{font-size:16px;min-width:70px;margin-right:0}#splitter #cash{margin:0 4px}#splitter #profit{margin-right:4px}#splitter #profit.good{color:#8ce99a}#splitter #profit.bad{color:#ff8787}#splitter .split-btns{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:3px;margin-left:auto}#splitter button{padding:2px 10px;font-size:12px;line-height:1.5;white-space:nowrap}#splitter .split-btns button{padding:2px 14px}#splitter button.on{border-color:var(--accent);color:var(--accent)}#splitter button[hidden]{display:none}#away-note{grid-area:dia;display:grid;place-content:center;text-align:center;color:var(--ink);background:#e9edf2;font-size:15px}#away-note[hidden]{display:none}#away-note .sub{color:#6b7580;font-size:12px}body.lts-editor{background:#fbfbf8}body.lts-editor #world{background:transparent;place-items:stretch}body.lts-editor #world .dlg{width:100%;max-height:none;height:100dvh;border-radius:0;box-shadow:none}.pw-reopen{position:fixed;top:10px;left:50%;transform:translate(-50%);z-index:60;padding:8px 14px;border-radius:8px;background:#1c7ed6;color:#fff;font-size:13px;box-shadow:0 6px 20px #0000004d;pointer-events:none}#hud button[hidden]{display:none}#app>#diagram-pane{grid-area:dia;overflow:hidden}#diagram-pane{display:grid;grid-template-columns:1fr 320px;grid-template-rows:100%;min-height:0;background:#fbfbf8;color:var(--ink)}#diagram-wrap{position:relative;min-width:0;min-height:0}#diagram{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}#editor{border-left:1px solid var(--line);padding:10px 12px;overflow-y:auto;font-size:13px}#editor button,#editor select,#editor input{background:#fff;color:var(--ink);border:1px solid #c3cad2}#editor button.warn{background:#fff5f5;border-color:#e03131;color:#c92a2a}#editor button.stale{background:#fff9db;border-color:#f59f00;color:#7a4a00;font-weight:600}#editor button.on{background:#fff4e6;border-color:#f08c00;color:#a35a00}#editor h3{font-size:14px;margin:12px 0 6px}#editor table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}#editor th{text-align:left;font-weight:500;color:#6b7580;font-size:12px}#editor td,#editor th{padding:2px 3px}#editor td:first-child,#editor th{white-space:nowrap}#editor td input[type=text]{width:64px;padding:2px 4px;border-radius:4px}#editor .field{display:grid;grid-template-columns:70px minmax(0,1fr);gap:4px 8px;align-items:center;margin-bottom:4px}#editor .field input,#editor .field select{padding:3px 6px;border-radius:4px;min-width:0}.warn{color:#c92a2a;margin:4px 0}.hint{color:#6b7580;line-height:1.6}.hint kbd{border:1px solid #c3cad2;border-radius:3px;padding:0 4px;font-size:11px}#hud,#info{position:absolute;background:var(--panel);border-radius:8px;padding:10px 12px;font-size:13px}#hud{top:12px;left:12px}#hud:has(>#alerts[hidden]){display:none}#info{top:12px;right:12px;width:280px}.row{display:flex;gap:6px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.row.small button{font-size:12px}#clock{font-size:20px;font-variant-numeric:tabular-nums;margin-right:4px;min-width:82px}button,select{background:#2b333d;color:var(--text);border:1px solid #47525e;border-radius:6px;padding:4px 8px;font:inherit;cursor:pointer}button.on{border-color:var(--accent);color:var(--accent)}#info h2{font-size:15px;margin:0 0 8px}#info h2{cursor:pointer}#info h2 .type-tag{display:inline-block;padding:0 5px;border:1.5px solid var(--muted);border-radius:4px;line-height:1.4}#info h2:after{content:" ▾";color:var(--muted);font-size:12px}#info.folded h2{margin:0}#info.folded h2:after{content:" ▸ 詳しく"}#info.folded dl{display:none}#info dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0}#info dt{color:var(--muted)}#info dd{margin:0;font-variant-numeric:tabular-nums}.slip,.late{color:#ff8787}.fuel-gauge{display:inline-block;width:56px;height:8px;border:1px solid var(--muted);border-radius:2px;vertical-align:middle;overflow:hidden}.fuel-gauge i{display:block;height:100%;background:var(--accent)}.fuel-gauge.low i{background:#ff8787}.hint.touch{display:none}@media (pointer: coarse){.hint.pc{display:none}.hint.touch{display:block}}#hud .hint{margin-top:6px;font-size:11px;opacity:.7}#alerts{max-width:360px;color:#ffb4a9;font-size:12px}#alerts p{margin:4px 0 0}.aspect{display:inline-block;padding:0 6px;border-radius:4px;font-size:11px;font-weight:600;color:#111}.aspect.r{background:#ff5a4f}.aspect.y{background:#ffc300}.aspect.yy{background:linear-gradient(90deg,#ffc300 44%,#6b5200 44% 56%,#ffc300 56%)}.aspect.yg{background:linear-gradient(90deg,#ffc300 50%,#2bd96b 50%)}.aspect.g{background:#2bd96b}.aspect.gg{background:linear-gradient(90deg,#2bd96b 44%,#0d5a2a 44% 56%,#2bd96b 56%)}.dim{color:#8a939c;font-size:12px}ul.waits{margin:4px 0 0;padding-left:18px;font-size:12px;color:#5c6670}#train-form h4{margin:12px 0 0;font-size:13px}#train-form select[data-track]{font-size:12px;padding:1px 2px}#train-form .start-guide{border:1px solid #a5d8ff;background:#f1f8ff;border-radius:6px;padding:8px 12px;margin-bottom:10px;font-size:13px;line-height:1.6}#train-form .start-guide h3{margin:0 0 4px;font-size:14px}#train-form .start-guide p{margin:4px 0}#train-form .start-guide ol{margin:4px 0;padding-left:20px}#train-form .start-guide li.done{color:#6b7580;text-decoration:line-through}#train-form .start-guide .dim{color:#6b7580;font-size:12px}#train-form .start-guide button{padding:0 8px}#editor select.need{border-color:#e8590c;color:#c2410c}#editor select.flash{outline:3px solid #ffa94d;outline-offset:1px}#new-formation,#f-formation{flex:1 1 100%;min-width:0}#new-cars,#f-cars{flex:none}:is(#designer,#loco-designer){position:fixed;inset:0;z-index:20;background:#14181e73;display:grid;place-items:center;color:var(--ink)}#designer[hidden]{display:none}#designer .dlg{width:min(1500px,100vw - 24px);height:min(940px,100vh - 24px);background:#fbfbf8;border-radius:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 12px 40px #00000059}#designer header{display:flex;align-items:baseline;gap:14px;padding:10px 16px;border-bottom:1px solid var(--line)}#designer header h2{margin:0;font-size:17px}#designer header .sub{color:#6b7580;font-size:12px;flex:1}#designer .close{font-size:20px;line-height:1;padding:2px 10px}#designer .dlg-body{display:grid;grid-template-columns:230px 1fr 400px;min-height:0}#designer .d-list,#designer .d-edit,#designer .d-stats{overflow:auto;min-height:0;padding:12px 14px}#designer .d-list{border-right:1px solid var(--line)}#designer .d-stats{border-left:1px solid var(--line);display:grid;grid-template-rows:240px auto;gap:10px;align-content:start}#designer h3{margin:4px 0 8px;font-size:14px}#designer h3 small{font-weight:400;color:#6b7580;font-size:12px;margin-left:6px}#designer h4{margin:12px 0 4px;font-size:13px}#designer .d-list ul{list-style:none;margin:0 0 10px;padding:0}#designer .d-list li{display:grid;grid-template-columns:14px 1fr;column-gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px}#designer .d-list li:hover{background:#eef1f4}#designer .d-list li.on{background:#dbe9f7}#designer .d-list .sw{width:14px;height:14px;border-radius:3px;margin-top:2px;grid-row:span 2}#designer .d-list .meta{color:#6b7580;font-size:11px}:is(#designer,#loco-designer) .d-list>button.primary{width:100%;margin-bottom:8px}:is(#designer,#loco-designer) .d-list li.grp,:is(#designer,#loco-designer) .d-list li.none{display:block;cursor:default;padding:8px 8px 2px;font-size:11px;color:#6b7580;white-space:normal}:is(#designer,#loco-designer) .d-list li.grp{font-weight:600}:is(#designer,#loco-designer) .d-list li.grp:hover,:is(#designer,#loco-designer) .d-list li.none:hover{background:none}:is(#designer,#loco-designer) .d-list em{color:#d9480f;font-style:normal;font-size:11px}#designer section{margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #ebeef1}#designer .grid{display:grid;grid-template-columns:130px 1fr;gap:6px 10px;align-items:start;font-size:13px}#designer .grid>label{padding-top:4px;color:#4a535c}#designer .grid input[type=number]{width:90px}#designer .grid input[type=text]{width:240px}#designer .note{display:block;color:#7a838c;font-size:11px;margin-top:2px}#designer .chk{margin-right:12px}#designer .row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}#designer .msg{background:#e7f5ff;border:1px solid #a5d8ff;border-radius:6px;padding:6px 10px;font-size:13px}#designer .errors{color:#c92a2a;font-size:13px}#designer footer{display:flex;gap:8px;align-items:center;position:sticky;bottom:-12px;background:#fbfbf8;padding:10px 0}#designer footer .grow{flex:1}#designer button.primary{background:#1c7ed6;color:#fff;border-color:#1c7ed6}#designer button:disabled{opacity:.45;cursor:default}#designer .d-strip{overflow-x:auto;padding:4px 0}#designer .d-strip .car{cursor:pointer}#designer .d-strip .body{stroke:#3b434c;stroke-width:1}#designer .d-strip .car.on .body{stroke:#f08c00;stroke-width:3}#designer .d-strip .door{fill:#59616a}#designer .d-strip .door.plug{fill:#c2c9d0}#designer .d-strip .panto{fill:none;stroke:#222;stroke-width:1.5}:is(#designer,#loco-designer) .d-strip .panto .pan{stroke-width:2;stroke-linecap:round}:is(#designer,#loco-designer) .d-strip .m{fill:#2b333d}#designer .d-strip .t{fill:#fff;stroke:#2b333d}#designer .d-strip .lbl,#designer .d-strip .wc{font-size:10px;text-anchor:middle;fill:#2b333d}#designer .d-strip .wc{fill:#fff;font-weight:700}#designer .d-strip .deckwall{stroke:#fff;stroke-width:1.5;stroke-dasharray:3 2}#designer .d-tabs{display:flex;gap:4px;margin:4px 0 10px;border-bottom:1px solid var(--line)}#designer .d-tabs button{border-radius:6px 6px 0 0;padding:5px 14px;margin-bottom:-1px}#designer .d-tabs button.on{background:#1c7ed6;border-color:#1c7ed6;color:#fff;font-weight:700}#designer.xray .d-stats{grid-template-rows:440px auto}#designer .note .sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-2px;border:1px solid rgba(0,0,0,.2)}#designer .d-carinfo{margin-top:10px;font-size:13px;border-collapse:collapse}#designer .d-carinfo th{text-align:left;font-weight:400;color:#4a535c;padding:2px 10px 2px 0}#designer .d-carinfo td{padding:2px 18px 2px 0}#designer .d-preview{position:relative;border-radius:8px;overflow:hidden;min-height:0}#designer .d-preview canvas{display:block;width:100%;height:100%}#designer .d-numbers table{width:100%;border-collapse:collapse;font-size:13px}#designer .d-numbers th{text-align:left;font-weight:400;color:#4a535c;padding:2px 0}#designer .d-numbers td{text-align:right;white-space:nowrap;padding:2px 0 2px 8px}#designer .delta{font-size:11px;color:#6b7580}#designer .good,#designer .delta.good{color:#2b8a3e}#designer .bad,#designer .delta.bad{color:#c92a2a}#designer .sat{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}#designer .sat ul{margin:2px 0 0;padding-left:16px}#designer .hint{font-size:12px;color:#6b7580;line-height:1.5}#hud .money{font-size:13px;gap:8px;align-items:center}#hud label.draw{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#c9d1d9}#hud label.draw select{background:#ffffff14;color:inherit;border:1px solid rgba(255,255,255,.25);border-radius:4px;padding:2px 4px;font:inherit}#hud label.draw option{color:#1f2328}#world .w-canvas{position:relative;max-width:480px}#world .w-zoom{position:absolute;top:8px;right:8px;display:flex;gap:4px}#world .w-zoom button{min-width:34px;padding:4px 8px;border-radius:4px;background:#ffffffeb;font-weight:600}#hud .money .good{color:#8ce99a}#hud .money .bad{color:#ff8787}:is(#company,#stations){position:fixed;inset:0;z-index:20;background:#14181e73;display:grid;place-items:center;color:var(--ink)}:is(#company,#stations)[hidden]{display:none}:is(#company,#stations) .dlg{width:min(1500px,100vw - 24px);height:min(940px,100vh - 24px);background:#fbfbf8;border-radius:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 12px 40px #00000059}:is(#company,#stations) header{display:flex;align-items:baseline;gap:14px;padding:10px 16px;border-bottom:1px solid var(--line)}:is(#company,#stations) header h2{margin:0;font-size:17px}:is(#company,#stations) header .sub{color:#6b7580;font-size:12px;flex:1}:is(#company,#stations) .close{font-size:20px;line-height:1;padding:2px 10px}:is(#company,#stations) .c-body{display:grid;grid-template-columns:1fr 1.15fr 1.15fr;min-height:0}:is(#company,#stations) .c-col{overflow:auto;min-height:0;padding:12px 16px;border-right:1px solid var(--line)}:is(#company,#stations) .c-col:last-child{border-right:none}:is(#company,#stations,.c-embed) section{margin-bottom:16px}:is(#company,#stations,.c-embed) h3{margin:4px 0 8px;font-size:14px}:is(#company,#stations,.c-embed) h3 small,:is(#company,#stations,.c-embed) th small{font-weight:400;color:#6b7580;font-size:11px;margin-left:6px}:is(#company,#stations,.c-embed) th small.fac{display:block;margin-left:0;white-space:normal;max-width:18em;line-height:1.35}:is(#company,#stations,.c-embed) h4{margin:10px 0 4px;font-size:13px}:is(#company,#stations,.c-embed) table{width:100%;border-collapse:collapse;font-size:13px}:is(#company,#stations,.c-embed) th{text-align:left;font-weight:400;color:#4a535c;padding:3px 0;white-space:nowrap}:is(#company,#stations,.c-embed) td{text-align:right;white-space:nowrap;padding:3px 0 3px 10px}:is(#company,#stations,.c-embed) thead th{font-size:12px;color:#6b7580;border-bottom:1px solid var(--line)}:is(#company,#stations,.c-embed) thead th:not(:first-child){text-align:right}:is(#company,#stations,.c-embed) .list tbody tr:nth-child(2n){background:#f1f3f0}:is(#company,#stations,.c-embed) .money th{white-space:normal}:is(#company,#stations,.c-embed) .money th small{display:block;white-space:normal}:is(#company,#stations,.c-embed) .money tr.sum th,:is(#company,#stations,.c-embed) .money tr.sum td{border-top:1px solid var(--line);font-weight:600;color:var(--ink)}:is(#company,#stations,.c-embed) .money tr.total th,:is(#company,#stations,.c-embed) .money tr.total td{font-size:15px}:is(#company,#stations,.c-embed) .c-summary{display:grid;gap:6px}:is(#company,#stations,.c-embed) .c-summary .k{font-size:15px;font-weight:600}:is(#company,#stations,.c-embed) .c-summary .lbl{display:inline-block;width:110px;color:#6b7580;font-size:12px}:is(#company,#stations,.c-embed) .big{font-size:20px;font-weight:600}:is(#company,#stations,.c-embed) .good{color:#2b8a3e}:is(#company,#stations,.c-embed) .bad{color:#c92a2a}:is(#company,#stations,.c-embed) .muted{color:#9aa5b1}:is(#company,#stations,.c-embed) .hint{font-size:12px;color:#6b7580;line-height:1.5;margin:6px 0}:is(#company,#stations,.c-embed) .msg{background:#e7f5ff;border-radius:6px;padding:6px 10px;font-size:13px;margin:4px 0}:is(#company,#stations,.c-embed) .row{display:flex;gap:8px;margin-top:6px}:is(#company,#stations,.c-embed) button.primary{background:#1c7ed6;color:#fff;border-color:#1c7ed6;padding:6px 16px}:is(#company,#stations,.c-embed) button:disabled{opacity:.45}:is(#company,#stations,.c-embed) .grid{display:flex;gap:16px;font-size:13px}:is(#company,#stations,.c-embed) .grid input{width:70px}:is(#company,#stations,.c-embed) .fare td,:is(#company,#stations,.c-embed) .fare th,:is(#company,#stations,.c-embed) .fare thead th:not(:first-child){font-size:12px;text-align:center}:is(#company,#stations,.c-embed) .fare-set{display:flex;flex-direction:column;gap:6px;font-size:13px}:is(#company,#stations,.c-embed) .fare-set input{width:56px}:is(#company,#stations,.c-embed) .surcharge-table{margin:8px 0 12px;padding:8px 10px;border:1px solid rgba(128,128,128,.3);border-radius:6px}:is(#company,#stations,.c-embed) .surcharge-table .st-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}:is(#company,#stations,.c-embed) .surcharge-table .st-head small{opacity:.7}:is(#company,#stations,.c-embed) .surcharge-table .st-head button{margin-left:auto}:is(#company,#stations,.c-embed) table.surcharge-ladder{width:auto;margin-top:6px}:is(#company,#stations,.c-embed) .surcharge-ladder td{white-space:nowrap;padding:2px 8px}:is(#company,#stations,.c-embed) .fare small.child{display:block;font-size:10px;opacity:.65}:is(#company,#stations,.c-embed) .btns button{margin-left:4px}:is(#company,#stations,.c-embed) .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}:is(#company,#stations,.c-embed) .bar{width:40%}:is(#company,#stations,.c-embed) .bar span{display:block;height:8px;background:#4dabf7;border-radius:4px}:is(#company,#stations,.c-embed) .towns th small{display:block;margin-left:0}:is(#company,#stations,.c-embed) .towns td small,:is(#company,#stations,.c-embed) .towns thead th small{display:block;margin-left:0;font-size:11px}:is(#company,#stations,.c-embed) .town-log{margin:2px 0;padding-left:18px;font-size:13px;line-height:1.6}:is(#company,#stations,.c-embed) .day-notes{margin:2px 0 6px;padding-left:18px;font-size:12px;line-height:1.6}:is(#company,#stations,.c-embed) .day-crowd th small{display:block;margin-left:0;font-size:11px;font-weight:400}:is(#company,#stations,.c-embed) .day-crowd{width:100%;table-layout:fixed}:is(#company,#stations,.c-embed) .day-crowd th{white-space:normal}:is(#company,#stations,.c-embed) .day-crowd th:last-child,:is(#company,#stations,.c-embed) .day-crowd td{width:6.5em;white-space:nowrap;text-align:right}:is(#company,#stations,.c-embed) .day-crowd thead th:last-child{white-space:normal}:is(#company,#stations,.c-embed) .complaints{margin:2px 0;padding-left:18px;font-size:13px}:is(#company,#stations,.c-embed) .c-hist line{stroke:#adb5bd}:is(#company,#stations,.c-embed) .c-hist .pos{fill:#51cf66}:is(#company,#stations,.c-embed) .c-hist .neg{fill:#ff6b6b}#tt-panel{position:fixed;inset:0;z-index:20;background:#14181e73;display:grid;place-items:center;color:var(--ink)}#tt-panel[hidden]{display:none}#tt-panel .dlg{width:min(1500px,100vw - 24px);height:min(940px,100vh - 24px);background:#fbfbf8;border-radius:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 12px 40px #00000059}#tt-panel header{display:flex;align-items:center;gap:14px;padding:8px 16px;border-bottom:1px solid var(--line)}#tt-panel header h2{margin:0;font-size:17px}#tt-panel header .sub{color:#6b7580;font-size:12px;flex:1}#tt-panel .close{font-size:20px;line-height:1;padding:2px 10px}:is(#tt-panel,.tt-embed) button,:is(#tt-panel,.tt-embed) select{background:#fff;color:var(--ink);border:1px solid #c3cad2}#tt-panel .tabs{display:flex;gap:4px}#tt-panel .tabs button.on,:is(#tt-panel,.tt-embed) .seg button.on{background:#1c7ed6;border-color:#1c7ed6;color:#fff}:is(#tt-panel,.tt-embed) .seg{display:inline-flex}:is(#tt-panel,.tt-embed) .seg button{border-radius:0}:is(#tt-panel,.tt-embed) .seg button:first-child{border-radius:5px 0 0 5px}:is(#tt-panel,.tt-embed) .seg button:last-child{border-radius:0 5px 5px 0}#tt-panel .t-body{overflow:auto;padding:12px 16px;min-height:0}:is(#tt-panel,.tt-embed) h3{margin:4px 0 8px;font-size:14px}:is(#tt-panel,.tt-embed) h3 small,:is(#tt-panel,.tt-embed) h4 small{font-weight:400;color:#6b7580;font-size:11px;margin-left:8px}:is(#tt-panel,.tt-embed) .hint{font-size:12px;color:#6b7580;line-height:1.5;margin:4px 0 10px}:is(#tt-panel,.tt-embed) .warn,:is(#tt-panel,.tt-embed) .bad{color:#c92a2a}:is(#tt-panel,.tt-embed) .good{color:#2b8a3e}:is(#tt-panel,.tt-embed) .dim{color:#9aa5b1}:is(#tt-panel,.tt-embed) small{font-size:.72em;margin-left:1px}:is(#tt-panel,.tt-embed) a,:is(#tt-panel,.tt-embed) [data-train]{cursor:pointer}:is(#tt-panel,.tt-embed) a{color:#1864ab;text-decoration:underline dotted}:is(#tt-panel,.tt-embed) .t-tools{display:flex;align-items:center;gap:12px;margin-bottom:8px}:is(#tt-panel,.tt-embed) .t-tools .hint{margin:0}:is(#tt-panel,.tt-embed) .gantt{overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:#fff}:is(#tt-panel,.tt-embed) .gantt svg{display:block;font-family:inherit}:is(#tt-panel,.tt-embed) .g-major{stroke:#9aa3ad}:is(#tt-panel,.tt-embed) .g-half{stroke:#d0d5db}:is(#tt-panel,.tt-embed) .g-minor{stroke:#eef0f2}:is(#tt-panel,.tt-embed) .g-time{font-size:11px;fill:#4a535c;text-anchor:middle}:is(#tt-panel,.tt-embed) .g-name{font-size:12px;font-weight:600;fill:#2b333d}:is(#tt-panel,.tt-embed) .g-park{stroke:#ced4da;stroke-width:2}:is(#tt-panel,.tt-embed) .g-train{cursor:pointer}:is(#tt-panel,.tt-embed) .g-train:hover rect{stroke:#212529;stroke-width:1.5}:is(#tt-panel,.tt-embed) .g-short rect{opacity:.35}:is(#tt-panel,.tt-embed) .g-err rect{stroke:#e03131;stroke-width:2}:is(#tt-panel,.tt-embed) .g-label{font-size:10px;fill:#fff;text-anchor:middle;pointer-events:none}:is(#tt-panel,.tt-embed) .g-shunt rect{fill:#868e96}:is(#tt-panel,.tt-embed) .duty-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(560px,1fr));gap:12px;margin-top:14px}:is(#tt-panel,.tt-embed) .duty{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff}:is(#tt-panel,.tt-embed) .duty h4{margin:0 0 6px;font-size:14px}:is(#tt-panel,.tt-embed) .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px}:is(#tt-panel,.tt-embed) table{border-collapse:collapse;font-size:12.5px}:is(#tt-panel,.tt-embed) .duty table{width:100%}:is(#tt-panel,.tt-embed) .duty th,:is(#tt-panel,.tt-embed) .issues th{text-align:left;font-weight:400;font-size:11px;color:#6b7580;border-bottom:1px solid var(--line);padding:2px 6px 2px 0}:is(#tt-panel,.tt-embed) .duty td,:is(#tt-panel,.tt-embed) .issues td{padding:3px 6px 3px 0;border-bottom:1px solid #f1f3f5;white-space:nowrap}:is(#tt-panel,.tt-embed) .duty td.t,:is(#tt-panel,.tt-embed) .issues td.t{font-variant-numeric:tabular-nums}:is(#tt-panel,.tt-embed) .duty td.arrow{color:#adb5bd}:is(#tt-panel,.tt-embed) .duty tr:not(.train) td{color:#5c656e}:is(#tt-panel,.tt-embed) .kind{display:inline-block;font-size:11px;padding:0 5px;border-radius:3px;margin-right:5px;background:#e9ecef;color:#495057}:is(#tt-panel,.tt-embed) .kind.out,:is(#tt-panel,.tt-embed) .kind.in{background:#e7f5ff;color:#1864ab}:is(#tt-panel,.tt-embed) .kind.c-cross,:is(#tt-panel,.tt-embed) .kind.c-opposing,:is(#tt-panel,.tt-embed) .kind.c-single,:is(#tt-panel,.tt-embed) .kind.c-depot,:is(#tt-panel,.tt-embed) .kind.c-dead{background:#ffe3e3;color:#c92a2a}:is(#tt-panel,.tt-embed) .kind.c-platform,:is(#tt-panel,.tt-embed) .kind.c-headway{background:#fff3bf;color:#8a5a00}:is(#tt-panel,.tt-embed) .issues{width:100%}:is(#tt-panel,.tt-embed) .issues tbody tr:hover{background:#f1f3f5}:is(#tt-panel,.tt-embed) .issues td:nth-child(3){white-space:normal}:is(#tt-panel,.tt-embed) .tt-scroll{overflow:auto;max-height:calc(100% - 44px);border:1px solid var(--line);border-radius:6px;background:#fff}:is(#tt-panel,.tt-embed) .tt th,:is(#tt-panel,.tt-embed) .tt td{border-right:1px solid #eef0f2;border-bottom:1px solid #e3e6e9;text-align:center;padding:2px 3px;font-variant-numeric:tabular-nums;min-width:40px}:is(#tt-panel,.tt-embed) .tt th.stn{position:sticky;left:0;background:#f8f9fa;z-index:1;text-align:left;min-width:96px;white-space:nowrap}:is(#tt-panel,.tt-embed) .tt thead th{position:sticky;top:0;background:#f8f9fa;z-index:2}:is(#tt-panel,.tt-embed) .tt thead th.corner{z-index:3}:is(#tt-panel,.tt-embed) .tt .thd{border-top:4px solid;vertical-align:top;cursor:pointer}:is(#tt-panel,.tt-embed) .tt .no{font-weight:700}:is(#tt-panel,.tt-embed) .tt .chip{display:inline-block;color:#fff;font-size:10px;padding:0 4px;border-radius:3px;margin:2px 0;white-space:nowrap}:is(#tt-panel,.tt-embed) .tt .duty-name{font-size:10px;color:#6b7580;font-weight:400;white-space:nowrap}:is(#tt-panel,.tt-embed) .tt .ad{float:right;display:inline-flex;flex-direction:column;font-size:10px;color:#9aa5b1;margin-left:6px;line-height:1.3}:is(#tt-panel,.tt-embed) .tt td .l1,:is(#tt-panel,.tt-embed) .tt td .l2{display:block;line-height:1.3;min-height:1.3em}:is(#tt-panel,.tt-embed) .tt td .plat{display:block;font-size:10px;color:#9aa5b1}:is(#tt-panel,.tt-embed) small.z0{visibility:hidden}:is(#tt-panel,.tt-embed) .tt td.pass,:is(#tt-panel,.tt-embed) .tt td.empty{color:#adb5bd}:is(#tt-panel,.tt-embed) .tt tr.link td,:is(#tt-panel,.tt-embed) .tt tr.link th{background:#f8f9fa;font-size:11.5px}:is(#tt-panel,.tt-embed) .board th{font-size:15px;padding:4px 12px;background:#f1f3f5;border-bottom:1px solid #fff;font-variant-numeric:tabular-nums}:is(#tt-panel,.tt-embed) .board td{padding:4px 6px;border-bottom:1px solid #e9ecef}:is(#tt-panel,.tt-embed) .board .dep{display:inline-grid;grid-template-rows:auto auto auto;text-align:center;margin-right:12px;cursor:pointer}:is(#tt-panel,.tt-embed) .board .dest{font-size:10px}:is(#tt-panel,.tt-embed) .board .min{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}:is(#tt-panel,.tt-embed) .board .tid{font-size:9.5px;color:#9aa5b1}#train-form .duty-box{margin:8px 0;padding:6px 8px;border-radius:6px;background:#f1f3f5;font-size:12px}#train-form .duty-box .row{margin-top:4px;align-items:center}#train-form .duty-box select{max-width:120px}#train-form .duty-box .moves{margin:4px 0 0;padding-left:16px;color:#5c6670}#train-form .duty-box .moves li.me{color:var(--ink);font-weight:600}#world{position:fixed;inset:0;z-index:30;background:#14181e99;display:grid;place-items:center;color:var(--ink)}#world[hidden]{display:none}#world .dlg{width:min(1000px,100vw - 24px);max-height:calc(100dvh - 24px);background:#fbfbf8;border-radius:10px;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;box-shadow:0 12px 40px #00000059}#world header{display:flex;align-items:baseline;gap:14px;padding:10px 16px;border-bottom:1px solid var(--line)}#world header h2{margin:0;font-size:17px}#world header .sub{color:#6b7580;font-size:12px;flex:1}#world button,#world input,#world select{background:#fff;color:var(--ink);border:1px solid #c3cad2}#world .w-htools{display:flex;gap:6px;align-self:center}#world .w-htools button{font-size:12px;padding:3px 9px;white-space:nowrap}#world button.on{border-color:#1c7ed6;color:#1c7ed6}#world.min{background:transparent;pointer-events:none;place-items:end start}#world.min .dlg,#world:not(.min) .w-minbar{display:none}#world .w-minbar{pointer-events:auto;display:flex;align-items:center;gap:10px;margin:0 0 12px 12px;padding:8px 12px;max-width:calc(100vw - 24px);flex-wrap:wrap;background:#fbfbf8;border-radius:8px;box-shadow:0 6px 24px #00000059;font-size:14px}#world .w-minbar .sub{color:#6b7580;font-size:12px}@media (max-width: 760px){#world header .sub,#world .w-minbar .sub{display:none}#world .w-htools{margin-left:auto}}#world .close{font-size:20px;line-height:1;padding:2px 10px}#world .w-body{padding:14px 16px;overflow:auto;min-height:0}#world .w-main{display:grid;grid-template-columns:490px 1fr;gap:16px}#world .dlg.wide{width:min(1880px,100vw - 24px);height:calc(100dvh - 24px)}#world .w-body.wide{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:16px;overflow:hidden}#world .w-body.wide .w-main{grid-template-columns:490px minmax(340px,1fr);align-content:start;overflow:auto;padding-right:4px}#world .w-body.wide.lists{grid-template-rows:minmax(0,1fr) auto}#world .w-body.wide.lists .w-form{contain:none;overflow:visible}#world .w-tables{display:flex;flex-direction:column;min-height:0}#world .w-tables-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:16px}#world .w-tables-grid.one{grid-template-columns:minmax(0,max-content)}#world .w-grid .w-name{font-weight:600}#world .w-tables-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:2px 0 8px;font-size:12px}#world .w-tables-bar button,#world .w-hist button{padding:3px 10px;border-radius:4px;font-size:12px}#world .w-hist{display:inline-flex;gap:4px}#world .w-histrow{margin:6px 0}#world .w-selinfo{color:#4a535c}#world .w-tables-grid>.w-tscroll{min-height:0;overflow:auto;border:1px solid var(--line);border-radius:6px;background:#fff}#world table.w-grid{border-collapse:separate;border-spacing:0;font-size:12px;width:max-content;min-width:100%}#world .w-grid th,#world .w-grid td{box-sizing:border-box;height:32px;padding:3px 6px;border-bottom:1px solid #edf0f2;text-align:left;white-space:nowrap;background:#fff}#world .w-grid thead th{position:sticky;top:0;z-index:2;background:#f1f3f5;color:#4a535c;font-weight:600}#world .w-grid td:first-child,#world .w-grid th:first-child{position:sticky;left:0;z-index:1}#world .w-grid thead th:first-child{z-index:3}#world .w-grid tbody tr{cursor:pointer;user-select:none}#world .w-grid tbody tr:hover td{background:#f6f8fa}#world .w-grid tbody tr.on td{background:#e7f1ff}#world .w-grid tbody tr.sig td{color:#6b7580}#world .w-grid td.num{text-align:right;font-variant-numeric:tabular-nums}#world .w-grid .w-rowhead{font-weight:600}#world .w-grid tr.w-half td{height:16px;padding:0;border-bottom:none;background:transparent}#world .w-grid tbody tr.w-half{cursor:default}#world .w-secgrid tbody tr:not(.w-half) td{border-top:1px solid #edf0f2;border-bottom:none}#world .w-grid select,#world .w-grid input{padding:1px 3px;border-radius:4px;font-size:12px;max-width:13em}#world .w-grid input{width:7em}#world .w-grid td.fac small{display:inline-block;max-width:22em;margin-left:6px;white-space:normal;vertical-align:middle;color:#6b7580}#world .w-grid td.fac em{display:block;color:#c0392b;font-style:normal}#world .w-grid button{padding:1px 6px;font-size:11px}#world .w-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;margin:6px 0;background:#fff6cc;border:1px solid #e8d27a;border-radius:6px;font-size:13px}#world .w-pick input{width:8em;padding:3px 6px;border-radius:4px}#world .w-pick select,#world .w-pick button{padding:2px 6px;border-radius:4px}#world .w-pick .tag{color:#6b7580;font-size:12px}#world .w-pick .w-no{background:#ffd84a}#world .w-body.wide .w-form{contain:size;overflow:auto;padding-right:6px}#world .w-body.wide .w-form footer{position:sticky;bottom:0;background:#fbfbf8;padding:8px 0 2px;border-top:1px solid var(--line)}@media (max-width: 1400px){#world .dlg.wide{height:auto}#world .w-body.wide{display:block;overflow:auto}#world .w-body.wide .w-main{grid-template-columns:490px 1fr;overflow:visible;padding-right:0}#world .w-tables-grid{grid-template-columns:minmax(0,1fr)}#world .w-tables-grid>.w-tscroll{max-height:60dvh}}#world canvas{width:100%;max-width:480px;aspect-ratio:1;touch-action:none;border-radius:6px;border:1px solid var(--line);display:block}#world .w-row{display:grid;grid-template-columns:100px 1fr 72px;gap:2px 10px;align-items:center;margin-bottom:10px;font-size:13px}#world .w-row small{grid-column:2 / 4;color:#7a838c;font-size:11px}#world .w-row b{font-weight:600;text-align:right}#world .w-seed{grid-column:2 / 4;display:flex;gap:6px}#world .w-seed input{width:90px;padding:3px 6px;border-radius:4px}#world input[type=range]{width:100%}#world .hint{color:#6b7580;font-size:12px;line-height:1.6}#world footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}#world footer button{white-space:nowrap}#world footer .grow{flex:1}#world button.primary{background:#1c7ed6;border-color:#1c7ed6;color:#fff;padding:6px 16px}#world button:disabled{opacity:.45}#world .w-steps{display:flex;gap:4px;padding:8px 16px 0;border-bottom:1px solid var(--line)}#world .w-steps button{border:1px solid transparent;border-bottom:none;border-radius:6px 6px 0 0;background:transparent;padding:6px 16px;margin-bottom:-1px;color:#6b7580}#world .w-steps button.on{background:#fbfbf8;border-color:var(--line);color:var(--ink);font-weight:600}#world .w-row input:not([type=range]),#world .w-row select{grid-column:2 / 4;padding:3px 6px;border-radius:4px}#world .w-sum{font-size:13px;font-weight:600;margin:6px 0}#world .w-problems{margin:0 0 6px;padding-left:18px;color:#c0392b;font-size:12px;line-height:1.6}#world .w-problems li.w-warn,#world p.w-warn{color:#b9770e}#world p.w-warn{margin:4px 0;font-size:12px;line-height:1.5}@media (max-width: 760px){#app{grid-template-rows:minmax(0,1fr) 0 auto}#app.view-dia,#app.scene-out{grid-template-rows:0 minmax(0,1fr) auto}#splitter button{padding:4px 9px;font-size:13px}#splitter .split-btns button{padding:4px 14px}#hud{top:6px;left:6px;max-width:calc(100% - 12px);padding:6px 8px;font-size:12px}#hud .row{margin-bottom:4px;gap:4px}#hud button{padding:3px 7px}#clock{font-size:17px;min-width:70px}#hud .row.money{display:inline-flex;margin:0 8px 0 0}#hud .hint{margin-top:2px}#alerts{max-width:none}#info{inset:auto 6px 6px;width:auto;max-height:42%;overflow-y:auto;padding:8px 10px;font-size:12px}#diagram-pane{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}#diagram{touch-action:none}#editor{border-left:none;border-top:1px solid var(--line);max-height:24vh;padding:0 10px 6px}#editor{padding-top:0}#editor .tools{position:sticky;top:0;z-index:1;display:flex;gap:6px;overflow-x:auto;padding:6px 0;background:#fbfbf8;border-bottom:1px solid var(--line)}#editor .tools .row{flex-wrap:nowrap;margin:0;flex:none}#editor .tools button{white-space:nowrap}#new-formation{flex:none;width:140px}#editor button,#editor select{padding:5px 9px}#designer .dlg,:is(#company,#stations) .dlg,#tt-panel .dlg{width:100vw;height:100dvh;border-radius:0}#designer header,:is(#company,#stations) header,#tt-panel header{flex-wrap:wrap;gap:6px 10px;padding:8px 10px}#designer header .sub,:is(#company,#stations) header .sub,#tt-panel header .sub{order:3;flex-basis:100%}#designer .close,:is(#company,#stations) .close,#tt-panel .close{order:1;margin-left:auto}#tt-panel .tabs{order:2;flex-basis:100%;flex-wrap:wrap}#tt-panel .tabs button{white-space:nowrap}#designer .dlg-body,:is(#company,#stations) .c-body{display:block;overflow:auto}#designer .d-list,#designer .d-edit,#designer .d-stats,:is(#company,#stations) .c-col{overflow:visible;border-right:none;border-left:none;border-bottom:1px solid var(--line);padding:10px 12px}#designer .grid{grid-template-columns:84px minmax(0,1fr)}#designer .grid input[type=text]{width:100%}#designer footer{flex-wrap:wrap;bottom:0}#world .dlg{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}#world header{flex-wrap:wrap}#world .w-body{padding:10px}#world .w-main,#world .w-body.wide .w-main{grid-template-columns:minmax(0,1fr)}#world .w-body.wide .w-form{contain:none;overflow:visible;padding-right:0}#world .dlg.wide{width:100vw;height:100dvh}#world .w-body.wide .w-form footer{position:static;border-top:none}#world canvas{margin:0 auto}#world .w-steps{padding:6px 10px 0}#world footer{flex-wrap:wrap}#tt-panel .t-body{padding:10px}#tt-panel .duty-cards{grid-template-columns:1fr}#tt-panel .duty{overflow-x:auto}}:is(#company,#stations,.c-embed) .st-edit td{white-space:normal;text-align:left;padding:6px 8px;background:#fff6cc}:is(#company,#stations,.c-embed) .st-form{display:flex;flex-direction:column;gap:6px;font-size:13px}:is(#company,#stations,.c-embed) .st-form select{background:#fff;color:var(--ink);border:1px solid #c3cad2;margin-left:6px}:is(#company,#stations,.c-embed) .st-form button{align-self:flex-start}:is(#company,#stations,.c-embed) .st-form p{margin:0}:is(#company,#stations,.c-embed) .st-cost{margin:0;padding-left:18px}:is(#company,#stations,.c-embed) .st-cost li span{float:right}:is(#company,#stations,.c-embed) td.st-kind{white-space:normal;font-size:12px}#world .w-climate{grid-column:2 / 4;border-collapse:collapse;width:100%;font-size:10px;table-layout:fixed}#world .w-climate td{text-align:center;padding:2px 0;border:1px solid var(--line);color:#7a838c;background:#f4f6f8}#world .w-climate td.hot{background:#ffd8a8;color:#8a4b00}#world .w-climate td.hot2{background:#ff8a65;color:#fff}#world .w-climate td.cold{background:#d0ebff;color:#1c5d8a}#world .w-climate td.snow{background:#e7f5ff;color:#1c5d8a;font-weight:600}#world .w-climate td.snow2{background:#74c0fc;color:#fff;font-weight:600}:is(#company,.c-embed) .loco-buy{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0;font-size:13px}#world .w-fac{flex-basis:100%;border-top:1px dashed #e0c860;padding-top:6px;margin-top:2px;font-size:12px}#world .w-fac small{color:#6b7580;font-size:11px}#world .w-fac-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;margin-bottom:4px}#world .w-fac-head select{padding:2px 4px;border-radius:4px}#world .w-fac-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px;margin:4px 0}#world .w-fac-item{display:grid;grid-template-columns:8px 1fr 24px 22px 24px;align-items:center;gap:4px;padding:3px 4px;background:#fff;border:1px solid #e3e6ea;border-radius:5px;opacity:.75}#world .w-fac-item.on{opacity:1;border-color:#c9b04a}#world .w-fac-item i{width:8px;height:8px;border-radius:2px}#world .w-fac-item span{line-height:1.15}#world .w-fac-item span small{display:block;font-size:10px}#world .w-fac-item b{text-align:center}#world .w-fac-item button{padding:0;height:22px;border-radius:4px}#world .w-fac-acts{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}#world .w-fac-acts button{padding:2px 8px;border-radius:4px;font-size:12px}#world .w-no{display:inline-grid;place-items:center;width:20px;height:20px;border:2px solid #1f2328;border-radius:50%;background:#fff;font-weight:700;font-size:11px}#world .w-sec-line{display:inline-block;vertical-align:middle;width:18px;height:0;margin-right:6px;border-top:2px solid #1f2328}#world .w-sec-line.dbl{height:4px;border-top-width:1.5px;border-bottom:1.5px solid #1f2328}#world .w-fixed{color:#6b7580}:is(#world,.pw-schem) .w-schem{grid-column:1 / -1;min-width:0}:is(#world,.pw-schem) .w-schem .sc-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;font-size:14px}:is(#world,.pw-schem) .w-schem .sc-bar .grow{flex:1}:is(#world,.pw-schem) .w-schem .sc-modes{display:inline-flex}:is(#world,.pw-schem) .w-schem .sc-modes button{border-radius:0}:is(#world,.pw-schem) .w-schem .sc-modes button:first-child{border-radius:6px 0 0 6px}:is(#world,.pw-schem) .w-schem .sc-modes button:last-child{border-radius:0 6px 6px 0;border-left:none}:is(#world,.pw-schem) .w-schem .sc-modes button.on{background:#1c6dd0;border-color:#1c6dd0;color:#fff}:is(#world,.pw-schem) .w-schem .sc-stations{display:flex;gap:4px;flex-wrap:wrap}:is(#world,.pw-schem) .w-schem .sc-stations button{font-size:11px;padding:2px 7px;border-radius:10px}:is(#world,.pw-schem) .w-schem .sc-stations button.sig{color:#6b7580;border-style:dashed}:is(#world,.pw-schem) .w-schem canvas.sc-canvas{width:100%;max-width:none;height:300px;aspect-ratio:auto;cursor:crosshair;background:#fff}:is(#world,.pw-schem) .w-schem .sc-status{margin:4px 0;min-height:1.4em}:is(#world,.pw-schem) .w-schem .sc-status.bad{color:#c0392b}:is(#world,.pw-schem) .w-schem .sc-warn{margin:0 0 6px;padding:6px 8px;border:1px solid #e03131;border-radius:6px;background:#fff5f5;font-size:12px;color:#a61e1e}:is(#world,.pw-schem) .w-schem .sc-warn[hidden]{display:none}:is(#world,.pw-schem) .w-schem .sc-warn ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:4px 0;padding:0}:is(#world,.pw-schem) .w-schem .sc-warn li{padding:2px 6px;border:1px solid #ffc9c9;border-radius:4px;background:#fff;cursor:pointer;color:#333}:is(#world,.pw-schem) .w-schem .sc-warn li small{margin-left:4px;color:#c92a2a}:is(#world,.pw-schem) .w-schem .sc-warn>small{display:block;margin-top:4px;color:#6b7580;font-size:11px}:is(#world,.pw-schem) .w-schem .sc-warn>hr{margin:6px 0;border:0;border-top:1px solid #ffc9c9}:is(#world,.pw-schem) .w-schem .sc-routes{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 6px;padding:6px 8px;border:1px solid #d6336c;border-radius:6px;background:#fff0f6;font-size:12px}:is(#world,.pw-schem) .w-schem .sc-routes[hidden]{display:none}:is(#world,.pw-schem) .w-schem .sc-routes label{display:inline-flex;align-items:center;gap:3px;cursor:pointer}:is(#world,.pw-schem) .w-schem .sc-routes small{flex-basis:100%;color:#6b7580;font-size:11px}:is(#world,.pw-schem) .w-schem .sc-list ul{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 10px;font-size:12px}:is(#world,.pw-schem) .w-schem .sc-list li{display:flex;align-items:center;gap:6px;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}:is(#world,.pw-schem) .w-schem .sc-list li span{flex:1}:is(#world,.pw-schem) .w-schem .sc-list li small,:is(#world,.pw-schem) .w-schem .sc-list li em{display:block;color:#6b7580;font-style:normal;font-size:11px}:is(#world,.pw-schem) .w-schem .sc-list li.bad em{color:#c0392b}:is(#world,.pw-schem) .w-schem .sc-list li select{font-size:12px;width:7.5em;flex:none}:is(#world,.pw-schem) .w-schem .sc-list li.on{background:#fff3e6;border-color:#e8590c}#world .w-tables h3{margin:4px 0 6px;font-size:14px}#world .w-tables h3 small{font-weight:400;color:#6b7580;font-size:11px;margin-left:6px}#world .w-tscroll{overflow-x:auto}#world .w-body>*,#world .w-main>*{min-width:0}:is(#company,#stations,.c-embed) .money tr.sub th,:is(#company,#stations,.c-embed) .money tr.sub td{font-size:11px;font-weight:400;opacity:.75}:is(#company,#stations,.c-embed) .money tr.sub th{padding-left:14px}:is(#company,#stations,.c-embed) .fare caption{font-size:11px;text-align:left;opacity:.75;padding:6px 0 2px}:is(#company,#stations,.c-embed) td.sales{text-align:right;white-space:nowrap}:is(#company,#stations,.c-embed) td.sales small{display:block;font-size:10px;opacity:.65;white-space:normal}:is(#company,#stations,.c-embed) td.sales small span{display:block;white-space:nowrap}#title{position:fixed;inset:0;z-index:50;background:#21324d;color:var(--ink);overflow:auto}#title .t-scene{position:fixed;inset:0;width:100%;height:100%}#title .t-train{animation:t-run 26s linear infinite}@keyframes t-run{0%{transform:translate(-1200px)}to{transform:translate(1700px)}}@media (prefers-reduced-motion: reduce){#title .t-train{animation:none}}#title .t-wrap{position:relative;min-height:100%;display:flex;flex-direction:column;align-items:center;gap:18px;padding:7vh 16px 24px}#title .t-logo{margin:0;color:#fff;font-size:clamp(30px,6vw,58px);letter-spacing:.02em;text-align:center;text-shadow:0 3px 18px rgba(0,0,0,.45)}#title .t-logo small{display:block;font-size:clamp(14px,2vw,19px);font-weight:500;letter-spacing:.3em;margin-top:6px;color:#f6e3c4}#title .t-card{width:min(520px,100%);background:#fbfbf8f5;border-radius:12px;box-shadow:0 12px 40px #00000059;padding:16px;display:flex;flex-direction:column;gap:10px}#title .t-card.t-list{width:min(760px,100%)}#title h2{margin:0 0 4px;font-size:17px}#title button{font:inherit;font-size:13px;padding:5px 12px;border:1px solid #b8c0c9;border-radius:6px;background:#fff;color:var(--ink);cursor:pointer}#title button:hover:not(:disabled){border-color:var(--accent)}#title button:disabled{opacity:.5;cursor:default}#title button.primary{background:#1c7ed6;border-color:#1c7ed6;color:#fff}#title button.danger{background:#e03131;border-color:#e03131;color:#fff}#title .t-big{text-align:left;font-size:18px;font-weight:600;padding:12px 16px}#title .t-big small{display:block;font-size:12px;font-weight:400;margin-top:3px;opacity:.8}#title .t-link{border:none;background:none;color:#1c7ed6;text-decoration:underline;align-self:center}#title .t-field{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}#title .t-field[hidden]{display:none}#title input[type=text],#title input[type=number],#title select{font:inherit;font-size:14px;font-weight:400;padding:6px 8px;border:1px solid #b8c0c9;border-radius:6px;background:#fff;color:var(--ink)}#title .t-note,#title .t-msg{margin:0;font-size:12px;color:#5b6570}#title .t-msg{color:#1864ab;font-weight:600}#title footer{display:flex;gap:8px;margin-top:4px}#title .grow{flex:1}#title .t-saves{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:58vh;overflow:auto}#title .t-saves li{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff;display:grid;gap:4px}#title .t-name{display:flex;align-items:center;gap:8px;font-size:15px}#title .t-name input{flex:1}#title .t-when{margin-left:auto;font-size:11px;color:#6b7580}#title .t-sum{font-size:12px;color:#4b5561}#title .t-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}#title .t-warn{font-size:12px;color:#c92a2a;font-weight:600}#title .t-foot{margin:auto 0 0;max-width:640px;text-align:center;font-size:11px;color:#ffffffbf;text-shadow:0 1px 4px rgba(0,0,0,.6)}:is(#company,#stations) .warn{color:#d9480f;margin:0}:is(#company,#stations) table.units small{display:block}:is(#tt-panel,.tt-embed) .ty-wrap{display:flex;gap:16px;align-items:flex-start}:is(#tt-panel,.tt-embed) .ty-list{display:flex;flex-direction:column;gap:4px;min-width:170px}:is(#tt-panel,.tt-embed) .ty-item{display:flex;align-items:center;gap:6px;text-align:left}:is(#tt-panel,.tt-embed) .ty-item small{margin-left:auto;color:#6b7580}:is(#tt-panel,.tt-embed) .ty-item.on{border-color:#1c7ed6;box-shadow:inset 0 0 0 1px #1c7ed6}:is(#tt-panel,.tt-embed) .sw{display:inline-block;width:14px;height:14px;border-radius:3px;flex:none}:is(#tt-panel,.tt-embed) .ty-detail{flex:1;min-width:0;overflow-x:auto}:is(#tt-panel,.tt-embed) .ty-head{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:8px;font-size:13px}:is(#tt-panel,.tt-embed) .ty-head input[type=color]{width:36px;height:24px;padding:0;vertical-align:middle}:is(#tt-panel,.tt-embed) .ty-table{border-collapse:collapse;font-size:13px}:is(#tt-panel,.tt-embed) .ty-table th,:is(#tt-panel,.tt-embed) .ty-table td{border:1px solid var(--line);padding:3px 8px;text-align:center}:is(#tt-panel,.tt-embed) .ty-table tbody th{text-align:left;font-weight:600;white-space:nowrap}:is(#tt-panel,.tt-embed) .ty-table td.dim{font-size:11px}:is(#tt-panel,.tt-embed) .ty-table .ty-x{margin-left:2px;padding:0 5px}:is(#tt-panel,.tt-embed) .ty-forms{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-bottom:10px;font-size:13px}:is(#tt-panel,.tt-embed) .ty-form-list{flex-basis:100%;display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 8px;border:1px solid var(--line);border-radius:4px}:is(#tt-panel,.tt-embed) .ty-form-list:has(input:disabled){opacity:.55}:is(#tt-panel,.tt-embed) .ty-forms .warn{flex-basis:100%;margin:0}:is(#tt-panel,.tt-embed) .ty-fill button{font-size:11px;padding:1px 5px}@media (max-width: 700px){:is(#tt-panel,.tt-embed) .ty-wrap{flex-direction:column;align-items:stretch;gap:10px}:is(#tt-panel,.tt-embed) .ty-list{flex-direction:row;flex-wrap:wrap;min-width:0}:is(#tt-panel,.tt-embed) .ty-list>button{flex:0 1 auto;max-width:100%}:is(#tt-panel,.tt-embed) .ty-item small{display:none}:is(#tt-panel,.tt-embed) .ty-detail{width:100%}}#world .w-steps{flex-wrap:wrap}#world .w-steps button.w-game-step:first-of-type,#world .w-steps button[data-step=fare]{margin-left:10px}#world .w-gate{max-width:640px;margin:24px auto;font-size:14px;line-height:1.6}#world .w-body.wide.game{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}#world .dlg.wide:has(.w-body.game){height:calc(100dvh - 24px)}#world .w-body.game .w-form{contain:none;overflow:visible}#world .w-game{min-height:0;overflow:auto}#world .w-game[data-game=dia]{display:flex;overflow:hidden}#world .w-game[data-game=dia]>#diagram-pane{flex:1;min-height:0;height:auto}#world .w-game canvas{max-width:none;aspect-ratio:auto;border-radius:0}#world .w-game .g-note{color:#6b7580;font-size:12px;line-height:1.6;margin:0 0 10px}#world .w-fleet-designs{border-collapse:collapse;font-size:13px;margin-bottom:8px}#world .w-fleet-designs th,#world .w-fleet-designs td{border-bottom:1px solid var(--line);padding:4px 10px;text-align:left}#world .w-fleet-designs .sw{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:6px;vertical-align:-1px}:is(#designer,#tt-panel){z-index:35}#loco-designer{z-index:36}#loading{position:fixed;inset:0;z-index:45;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#21324d;color:#e8ecf2;font-size:15px;letter-spacing:.05em}#loading[hidden]{display:none}#loading .spin{width:42px;height:42px;border:4px solid rgba(255,255,255,.2);border-top-color:#ffd88a;border-radius:50%;animation:lts-spin .9s linear infinite}#loading .load-box{display:grid;gap:8px;width:min(360px,calc(100vw - 32px));text-align:center}#loading .load-box p{margin:0}#loading .load-title{margin:0;font-size:22px;font-weight:700;letter-spacing:.12em;color:#fff}#loading .load-step{font-size:13px;color:#e8ecf2d9}#loading .load-bar{height:8px;border-radius:4px;background:#ffffff26;overflow:hidden}#loading .load-fill{height:100%;width:0;border-radius:4px;background:#ffd88a;transition:width .25s ease-out}#loading .load-meta{display:flex;justify-content:space-between;font-size:12px;color:#e8ecf2b3;font-variant-numeric:tabular-nums}#loading .load-hint{margin-top:6px;font-size:11px;line-height:1.6;color:#e8ecf280}@keyframes lts-spin{to{transform:rotate(360deg)}}#title .t-group,#system .t-group{border:1px solid var(--line);border-radius:8px;margin:0;padding:6px 10px 8px;display:grid;gap:6px;background:#fff}#title .t-group legend,#system .t-group legend{font-size:12px;font-weight:700;padding:0 4px;color:#4b5561}#title .t-row,#system .t-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:600}#title .t-row small,#system .t-row small{display:block;font-size:11px;font-weight:400;color:#6b7580}#title .t-row select,#system .t-row select{flex:none;max-width:55%}#title .t-row input[type=checkbox],#system .t-row input[type=checkbox]{width:18px;height:18px;flex:none}#title .t-card.t-settings{width:min(600px,100%)}#sound-volume{width:90px;vertical-align:middle}#sound-volume:disabled{opacity:.4}:is(#company,#stations,.c-embed) .list td.empty{text-align:left;white-space:normal;color:#6b7580}:is(#company,#stations,.c-embed) .order-about{margin:2px 0 4px}:is(#company,#stations,.c-embed) .maker-catalog{margin:8px 0}:is(#company,#stations,.c-embed) .maker-catalog summary{cursor:pointer;font-size:12px;color:#4a535c}:is(#company,#stations,.c-embed) .maker-catalog th small.note{display:block;margin-left:16px;white-space:normal;max-width:22em;line-height:1.35}:is(#company,#stations,.c-embed) .maker-catalog td small{color:#6b7580;font-size:11px}:is(#company,#stations,.c-embed) .maker-catalog tr.series th{padding-top:8px;font-weight:600;color:#2b3138;border-bottom:1px solid var(--line)}:is(#company,#stations,.c-embed) .batch-order input[type=number]{width:4em}:is(#company,#stations,.c-embed) .batch-order .quote small{margin-left:6px;color:#3c8a3c}:is(#company,#stations,.c-embed) .pr-ask,:is(#company,#stations,.c-embed) .pr-groups{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:12px;margin:4px 0}:is(#company,#stations,.c-embed) .pr-groups>span{color:#6b7580}:is(#company,#stations,.c-embed) .pr-groups .chk{white-space:nowrap}:is(#company,#stations,.c-embed) .pr-ask select{max-width:18em}:is(#company,#stations,.c-embed) .pr-list{margin:4px 0;padding-left:18px;font-size:12px;line-height:1.5}:is(#company,#stations,.c-embed) .pr-list small{color:#6b7580;margin-right:4px}:is(#company,#stations,.c-embed) .pr-compare{overflow-x:auto}:is(#company,#stations,.c-embed) .pr-compare td{white-space:normal;min-width:8em;font-size:12px;vertical-align:top}:is(#company,#stations,.c-embed) .pr-compare th small{display:block;margin-left:0}.pr-overlay{position:fixed;inset:0;z-index:60;background:#141a2073;display:flex;align-items:center;justify-content:center;padding:16px}.pr-overlay .pr-dlg{background:#fbfbf8;color:var(--ink);border-radius:10px;width:min(1400px,100%);max-height:100%;overflow:auto;padding:12px 16px;box-shadow:0 10px 40px #0000004d;font-size:13px}.pr-overlay header{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}.pr-overlay header h2{margin:0;font-size:18px}.pr-overlay header .sub{color:#6b7580;font-size:12px;flex:1}.pr-overlay .hint{color:#6b7580;font-size:12px}.pr-overlay input[data-pr-count]{width:4em}.pr-overlay .pr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;align-items:start;margin:6px 0}.pr-overlay .pr-card{border:1px solid var(--line);border-radius:8px;padding:8px;min-width:0;display:flex;flex-direction:column;gap:6px}.pr-overlay .pr-card h5{margin:0;font-size:14px}.pr-overlay .pr-card h5 small{margin-left:6px;font-weight:400;color:#6b7580;font-size:11px}.pr-overlay .pr-shot{aspect-ratio:2 / 1;background:#dfe5ec;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#6b7580;font-size:12px}.pr-overlay .pr-shotbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 8px;font-size:12px;color:#4a535c}.pr-overlay .pr-shotbar>span{margin:0 2px 0 8px}.pr-overlay .pr-shotbar button{padding:3px 8px;font-size:12px}.pr-overlay .pr-shotbar button small{margin-left:3px;color:inherit;opacity:.75}.pr-overlay .pr-shotbar button.on{background:#1c7ed6;border-color:#1c7ed6;color:#fff}#designer .spec-view .d-tabs{margin-bottom:6px}.pr-overlay .pr-shot img{width:100%;height:100%;object-fit:cover;display:block}.pr-overlay .pr-note{margin:0;font-size:12px;color:#a35f00}.pr-overlay .pr-note.ok{color:#3c8a3c}.pr-overlay .pr-items{width:100%;table-layout:fixed}.pr-overlay .pr-items th,.pr-overlay .pr-items td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:top}.pr-overlay .pr-items th{font-weight:400;color:#6b7580;width:40%}.pr-overlay .pr-items td{min-width:0}.pr-overlay .pr-items td small{display:block;color:#6b7580}.pr-overlay .pr-items tr.pr-cat th{color:inherit;font-weight:700;padding-top:6px;border-bottom:1px solid var(--line);width:auto}.pr-overlay .pr-items tr.pr-chg td{background:#f08c0033}:is(#company,#stations,.c-embed) .pr-changes li{color:#a35f00}:is(#company,#stations,.c-embed) .pr-makers td{text-align:center}:is(#company,#stations,.c-embed) input[data-pr-count]{width:4em}:is(#designer,#loco-designer) .d-strip .wcs{font-size:9px;font-weight:400}#designer .grid>h4.span{grid-column:1 / -1;margin:10px 0 0;font-size:12px;border-top:1px solid rgba(127,127,127,.25);padding-top:8px}#designer .d-unify .row{margin-top:6px}:is(#company,#stations,.c-embed) .c-era p{font-size:13px;line-height:1.5;margin:4px 0}:is(#company,#stations,.c-embed) .c-era h4{margin:8px 0 2px;font-size:13px}:is(#company,#stations,.c-embed) .era-list{margin:0;padding-left:18px;font-size:13px}:is(#company,#stations,.c-embed) .era-list small{display:block;color:#6b7580;font-size:12px}:is(#designer,#loco-designer) .errors.era{color:#b35c00}#world .w-profile{grid-column:1 / -1;min-width:0}#world .w-profile .pf-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:14px}#world .w-profile .pf-bar .grow{flex:1}#world .w-profile .pf-legend{display:inline-flex;align-items:center;gap:4px 6px;flex-wrap:wrap;font-size:12px;color:#4a5562}#world .w-profile .pf-legend i{display:inline-block;width:14px;height:4px;border-radius:2px;margin-left:6px}#world .w-profile .pf-legend i.g{background:#6b4f2a}#world .w-profile .pf-legend i.n{background:repeating-linear-gradient(90deg,#8a7454 0 3px,transparent 3px 6px)}#world .w-profile .pf-legend i.r{background:#1f2328}#world .w-profile .pf-legend i.e{background:#e07a1f}#world .w-profile .pf-legend i.u{background:#3d63c9}#world .w-profile .pf-legend i.w{background:#3c82c8bf;height:8px}#world .w-profile .pf-legend i.m{background:#2e6e34bf;height:8px}#world .w-profile .pf-zoom{display:inline-flex;gap:2px}#world .w-profile .pf-zoom button[data-pf=in],#world .w-profile .pf-zoom button[data-pf=out]{min-width:30px;font-weight:700}#world .w-profile .pf-wrap{position:relative}#world .w-profile canvas.pf-canvas{display:block;width:100%;max-width:none;aspect-ratio:auto;margin:0;height:300px;border:1px solid #c3cad2;border-radius:6px;background:#fff;touch-action:none}#world .w-profile .pf-tip{position:absolute;top:4px;max-width:420px;padding:3px 8px;border-radius:4px;background:#1f2328db;color:#fff;font-size:12px;pointer-events:none}#world .w-profile .pf-hint{margin:4px 0 0;font-size:12px}#vehicles{position:fixed;inset:0;z-index:20;background:#14181e73;display:grid;place-items:center;color:var(--ink)}#vehicles[hidden]{display:none}#vehicles .dlg{width:min(1300px,100vw - 24px);height:min(900px,100vh - 24px);background:#fbfbf8;border-radius:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;box-shadow:0 12px 40px #00000059}#vehicles header{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line)}#vehicles header h2{margin:0;font-size:17px}#vehicles header nav{display:flex;gap:4px}#vehicles header nav button.on{background:#2f6fb0;color:#fff;border-color:#2f6fb0}#vehicles header .sub{color:#6b7580;font-size:12px;flex:1}#vehicles .close{font-size:20px;line-height:1;padding:2px 10px}#vehicles .v-body{min-height:0;overflow:auto}#vehicles .v-pad{padding:12px 16px}#vehicles .hint{color:#4a535c;font-size:12px;line-height:1.6;margin:0 0 10px}#vehicles .msg{background:#e7f1fb;border-left:4px solid #2f6fb0;padding:6px 10px;margin:0 0 10px;font-size:13px}#vehicles table{border-collapse:collapse;font-size:13px;width:100%}#vehicles th,#vehicles td{padding:5px 8px 5px 0;vertical-align:top;text-align:left}#vehicles .c-embed thead th:not(:first-child),#vehicles .c-embed .pr-makers td{text-align:left}#vehicles thead th{font-size:12px;color:#6b7580;border-bottom:1px solid var(--line);font-weight:400}#vehicles .list tbody tr:nth-child(2n){background:#f1f3f0}#vehicles th small,#vehicles td small,#vehicles h3 small{display:block;font-weight:400;color:#6b7580;font-size:11px}#vehicles h3 small{display:inline;margin-left:8px}#vehicles .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:baseline}#vehicles .v-units td.place select{max-width:340px;width:100%}#vehicles .v-units td.btns{white-space:nowrap}#vehicles .dim{color:#6b7580}#vehicles .warn{color:#c92a2a}#vehicles .v-designs{display:grid;grid-template-columns:260px 1fr;height:100%;min-height:0}#vehicles .v-list{list-style:none;margin:0;padding:8px;overflow:auto;border-right:1px solid var(--line)}#vehicles .v-list li{padding:6px 8px;border-radius:6px;cursor:pointer;display:grid;grid-template-columns:auto 1fr;font-size:13px}#vehicles .v-list li .meta{grid-column:2;color:#6b7580;font-size:11px}#vehicles .v-list li.on{background:#e7f1fb}#vehicles .v-detail{padding:12px 16px;overflow:auto;min-width:0}#vehicles .v-blueprint{overflow-x:auto;background:#f4f7fa;background-image:linear-gradient(#e3e9ef 1px,transparent 1px),linear-gradient(90deg,#e3e9ef 1px,transparent 1px);background-size:18px 18px;border:1px solid var(--line);border-radius:6px;padding:8px;margin-bottom:12px}#vehicles .v-blueprint svg{display:block}#vehicles .v-spec{max-width:720px;margin-bottom:12px}#vehicles .v-spec th{color:#4a535c;font-weight:400;width:7em}@media (max-width: 760px){#vehicles .v-designs{grid-template-columns:1fr;grid-template-rows:auto 1fr}#vehicles .v-list{border-right:none;border-bottom:1px solid var(--line);max-height:30vh}#vehicles .v-units thead{display:none}#vehicles .v-units tr{display:grid;grid-template-columns:1fr;padding:6px 0}}#vehicles button:disabled{opacity:.4;cursor:default}#od-panel{display:grid;min-height:0;color:var(--ink)}#od-panel .od-body{display:grid;grid-template-rows:auto auto 1fr;gap:10px;padding:12px 16px;min-height:0}#od-panel .od-controls{display:flex;flex-wrap:wrap;gap:8px 16px}#od-panel .seg{display:inline-flex}#od-panel .seg button{border-radius:0;margin-left:-1px;font-size:12px}#od-panel .seg button:first-child{border-radius:5px 0 0 5px;margin-left:0}#od-panel .seg button:last-child{border-radius:0 5px 5px 0}#od-panel .od-body button{background:#fff;color:var(--ink);border-color:#c3cad2}#od-panel .od-body button:hover{background:#eef2f5}#od-panel .od-body button.on{background:#2f6f9f;border-color:#2f6f9f;color:#fff}#od-panel .od-hours{display:grid;grid-template-columns:repeat(21,1fr);gap:2px;height:54px;align-items:end;padding-bottom:14px;position:relative}#od-panel .od-hours span{position:relative;height:100%;display:flex;align-items:flex-end;cursor:pointer}#od-panel .od-hours b{display:block;width:100%;min-height:1px;background:#c9d3dc;border-radius:2px 2px 0 0}#od-panel .od-hours span:hover b{background:#9fb2c3}#od-panel .od-hours span.on b{background:#e34a20}#od-panel .od-hours i{position:absolute;left:0;bottom:-14px;font-size:10px;font-style:normal;color:#6b7580}#od-panel .od-seek{display:flex;align-items:center;gap:10px;margin-top:4px}#od-panel .od-range{flex:1;min-width:120px}#od-panel .od-range.off{opacity:.4}#od-panel .od-label{min-width:15em;font-size:13px}#od-panel .od-label b{font-size:16px;margin-right:6px}#od-panel .od-main{display:grid;grid-template-columns:1fr 300px;gap:16px;min-height:0}#od-panel .od-wrap{overflow:auto;min-height:0;border:1px solid var(--line);border-radius:6px;background:#fff;padding:8px}#od-panel .od-stair{border-collapse:separate;border-spacing:2px;font-size:13px}#od-panel .od-stair td{min-width:58px;height:30px;padding:0 4px;text-align:right;font-variant-numeric:tabular-nums;background:#f3f4f1;border-radius:3px;cursor:pointer;white-space:nowrap}#od-panel .od-stair td.pick{outline:2px solid #1f4e79;outline-offset:1px}#od-panel .od-stair th{text-align:left;font-weight:600;white-space:nowrap;padding:0 6px;border-bottom:2px solid #4a535c;border-left:2px solid #4a535c;color:var(--ink)}#od-panel .od-stair th.pick span{background:#ffe8a3;border-radius:3px;padding:0 3px}#od-panel .od-stair .od-st-head td.blank{background:none;cursor:default}#od-panel .od-stair th.od-st-h{border:none;font-size:12px;padding:0 0 2px 12px;vertical-align:bottom}#od-panel .od-stair th.od-st-h small{display:block;font-weight:400;color:#6b7580;font-size:11px}#od-panel i.on,#od-panel i.off,#od-panel b.on,#od-panel b.off{font-style:normal}#od-panel .od-stair th.od-st-h i,#od-panel .hint i.sw{display:inline-block;width:9px;height:9px;border-radius:2px;margin:0 2px 0 4px;vertical-align:-1px}#od-panel i.on,#od-panel b.on{background:#2f6fae}#od-panel i.off,#od-panel b.off{background:#9cc3e6}#od-panel .od-stair td.od-st{position:relative;min-width:120px;padding:0 6px;background:#f3f4f1;border-left:12px solid #fff;background-clip:padding-box;font-weight:600}#od-panel .od-stair td.od-st i{position:absolute;top:6px;bottom:6px;left:0;border-radius:2px;opacity:.55}#od-panel .od-stair td.od-st span{position:relative}#od-panel .od-st-hours{display:flex;align-items:stretch;height:80px;gap:1px;margin:8px 0 14px}#od-panel .od-st-hours span{flex:1;position:relative;display:flex;flex-direction:column}#od-panel .od-st-hours span.now{background:#fff2c4}#od-panel .od-st-hours b{display:block;position:absolute;left:0;right:0}#od-panel .od-st-hours b.on{bottom:50%}#od-panel .od-st-hours b.off{top:50%}#od-panel .od-st-hours span:after{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid #c5cbd1}#od-panel .od-st-hours i{position:absolute;bottom:-14px;left:0;font-size:10px;font-style:normal;color:#6b7580}#od-panel .od-side{overflow:auto;min-height:0;font-size:13px}#od-panel .od-side h3{margin:4px 0 6px;font-size:14px}#od-panel .od-side h3 small{font-weight:400;color:#6b7580;font-size:11px;margin-left:6px}#od-panel .od-side h4{margin:8px 0 2px;font-size:13px}#od-panel .od-side table{width:100%;border-collapse:collapse}#od-panel .od-side th{text-align:left;font-weight:400;color:#4a535c;padding:2px 0}#od-panel .od-side td{text-align:right;padding:2px 0}#od-panel .hint{font-size:12px;color:#6b7580;margin:4px 0;line-height:1.5}#od-panel .bad{color:#c92a2a}#od-panel .od-scale{display:flex;height:12px;border-radius:3px;overflow:hidden}#od-panel .od-scale span{flex:1}#od-panel .od-scale-n{display:flex;justify-content:space-between;font-size:11px;color:#6b7580}#od-panel .od-detail{margin:10px 0;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}#od-panel .od-top ol{margin:0;padding-left:1.6em}#od-panel .od-top li{cursor:pointer;padding:2px 0}#od-panel .od-top li span{display:inline-block;min-width:11em}#od-panel .od-top li b{float:right;font-weight:600}@media (max-width: 760px){#od-panel .od-body{display:block;overflow:auto;padding:10px}#od-panel .od-time{margin:10px 0}#od-panel .od-main{display:block}#od-panel .od-wrap{max-height:60vh}#od-panel .od-label{min-width:0;flex-basis:100%}#od-panel .od-seek{flex-wrap:wrap}}#world .w-real{margin:-4px 0 12px 110px;display:flex;flex-direction:column;gap:6px;font-size:13px}#world .w-real-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}#world .w-real-row input[type=search]{flex:1;min-width:160px;padding:3px 6px;border-radius:4px}#world .w-real-row input[type=number]{width:100px;margin-left:4px;padding:3px 6px;border-radius:4px}#world .w-real-hits{display:flex;flex-wrap:wrap;gap:4px;max-height:120px;overflow:auto}#world .w-real-hits button{font-size:12px;padding:2px 8px}#world .w-credit{margin:2px 0 0;font-size:11px}#world .w-credit a{color:#6b7580}@media (max-width: 720px){#world .w-real{margin-left:0}}#map-credit{position:absolute;right:6px;bottom:4px;z-index:5;padding:1px 6px;border-radius:3px;background:#ffffffb3;color:#333;font-size:11px;text-decoration:none}#map-credit.warn{background:#ffecc8eb;color:#7a3b00}#auto-panel[hidden],#train-form[hidden]{display:none}#auto-panel{border-top:1px solid var(--line);margin-top:8px;padding-top:4px}#auto-panel .auto-head{display:flex;align-items:center;justify-content:space-between}#auto-panel .auto-close{font-size:16px;line-height:1;padding:2px 8px}#auto-panel .field{grid-template-columns:76px 1fr}#auto-panel .field input[type=text]{width:56px}#auto-panel .seg{display:inline-flex}#auto-panel .seg button{border-radius:0}#auto-panel .seg button:first-child{border-radius:5px 0 0 5px}#auto-panel .seg button:last-child{border-radius:0 5px 5px 0}#auto-panel .seg button.on{background:#1c7ed6;border-color:#1c7ed6;color:#fff}#auto-panel .row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}#auto-panel button.primary{background:#2b8a3e;border-color:#2b8a3e;color:#fff;font-weight:600}#auto-panel .auto-status{color:#6b7580;font-size:12px}#auto-panel .hint.small{font-size:12px;margin:3px 0}#auto-panel .ok{color:#2b8a3e;font-weight:600}#auto-panel table{margin:4px 0 8px}#auto-panel details summary{cursor:pointer;color:#1864ab;margin:4px 0}#auto-panel .auto-progress{margin:8px 0;padding:8px;border:1px solid var(--line, #ccc);border-radius:6px}#auto-panel .auto-progress[hidden]{display:none}#auto-panel .auto-bar{height:6px;border-radius:3px;background:#7f7f7f40;overflow:hidden}#auto-panel .auto-bar>span{display:block;height:100%;width:0;background:#4f86c6;transition:width .2s}#auto-panel .auto-bar>span.busy{width:30%!important;animation:auto-busy 1.2s linear infinite}@keyframes auto-busy{0%{transform:translate(-100%)}to{transform:translate(340%)}}#auto-panel .auto-stage{margin:6px 0 2px}#splitter .time-speed{display:inline-flex;align-items:center;gap:6px}#time-speed{width:130px;vertical-align:middle;accent-color:#4ea1ff}#time-speed-label{min-width:3.4em;font-variant-numeric:tabular-nums;font-weight:600}body.title-demo #app{grid-template-rows:minmax(0,1fr) 0 0!important}body.title-demo #hud,body.title-demo #splitter,body.title-demo #diagram-pane,body.title-demo #info,body.title-demo #alerts{display:none!important}body.title-demo #map-credit{position:fixed;z-index:60}#title .t-scene{transition:opacity 1.6s ease}#title.live{background:transparent}#title.live .t-wrap{padding-bottom:44px}#title.live .t-scene{opacity:0;pointer-events:none}#title.live:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#0a121e73,#0a121e00 30% 78%,#0a121e73)}#title .t-caption{position:fixed;right:16px;bottom:14px;max-width:calc(100% - 32px);padding:4px 12px;border-radius:999px;background:#0a121e8c;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;opacity:0;transition:opacity .8s ease}#title.live .t-caption{opacity:1}#title .t-caption[hidden]{display:none}#title .t-going{display:flex;align-items:center;gap:12px;margin:8px 0;font-size:15px}#title .t-going .spin{width:24px;height:24px;border:3px solid rgba(0,0,0,.12);border-top-color:#1c7ed6;border-radius:50%;animation:lts-spin .9s linear infinite}@media (min-width: 980px){#title.live .t-wrap{align-items:flex-start;padding-left:5vw}#title.live .t-logo{text-align:left}#title.live .t-card.t-menu{width:min(440px,100%);background:#fbfbf8e6;backdrop-filter:blur(6px)}#title.live .t-foot{text-align:left;padding-right:360px}#title.live:before{background:linear-gradient(90deg,#0a121e80,#0a121e26 38%,#0a121e00 55%),linear-gradient(180deg,#0a121e00 75%,#0a121e66)}}@media (max-width: 979px){#title.live .t-card.t-menu{background:#fbfbf8e0}#title .t-caption{bottom:8px;right:8px;max-width:calc(100% - 16px)}}#system{position:fixed;inset:0;z-index:35;background:#14181e8c;display:grid;place-items:center;padding:12px;color:var(--ink)}#system[hidden]{display:none}#system .sys-card{width:min(600px,100%);max-height:100%;overflow:auto;background:#fbfbf8;border-radius:12px;box-shadow:0 12px 40px #00000059;padding:14px 16px;display:flex;flex-direction:column;gap:10px}#system header,#system footer{display:flex;align-items:center;gap:8px}#system footer .grow{flex:1}#system h2{margin:0;font-size:17px;flex:1}#system #sys-settings{display:grid;gap:10px}#system button{font-size:13px;padding:5px 12px;border:1px solid #b8c0c9;background:#fff;color:var(--ink)}#system button:hover{border-color:var(--accent)}#system button.on{border-color:#1c7ed6;color:#1c7ed6;background:#e7f1fb}#system button.primary{background:#1c7ed6;border-color:#1c7ed6;color:#fff}#system button[hidden]{display:none}#system .sys-close{font-size:18px;line-height:1;padding:2px 10px}#system .sys-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px}#system .sys-row small{color:#6b7580;font-size:11px}#system .sys-vol{display:inline-flex;align-items:center;gap:4px}#system .sys-note{margin:0;font-size:12px;color:#4b5561}#system .t-row select{background:#fff;color:var(--ink);border-color:#b8c0c9}#splitter .split-btns .speed-ctl button{padding:2px 8px}#vehicles header nav button small{font-size:11px;margin-left:2px}#vehicles .v-pad.c-embed section{margin-bottom:18px}#stations header nav{display:flex;gap:4px}#stations header nav button.on{background:#2f6fb0;border-color:#2f6fb0;color:#fff}#stations header nav button[hidden]{display:none}#designer .spec-cat>h3{border-left:4px solid #6b7580;padding-left:6px}#designer .spec-fixed>h3{border-left-color:#2f7fd0}#designer .spec-flexible>h3{border-left-color:#f08c00}#designer .spec-maker>h3{border-left-color:#2f9e44}.follow-note{margin:0 0 8px;padding:3px 7px;border-left:3px solid var(--accent);font-size:12px}.follow-note .dim{display:block;font-size:11px}#info.folded .follow-note{display:none}button.st-view{all:unset;cursor:pointer;color:inherit;font-weight:inherit;border-bottom:1px dotted currentColor}button.st-view:hover{color:var(--accent)}button.st-view:focus-visible{outline:2px solid var(--accent)}#auto-panel ul.auto-specs{margin:2px 0 6px;padding-left:18px;font-size:12px}.rs-overlay{position:fixed;inset:0;z-index:60;background:#141a2073;display:flex;align-items:center;justify-content:center;padding:16px}.rs-dlg{background:#fbfbf8;color:var(--ink);border-radius:10px;width:min(1400px,100%);max-height:100%;display:flex;flex-direction:column;gap:8px;padding:12px 16px;box-shadow:0 10px 40px #0000004d;user-select:none}.rs-dlg header,.rs-dlg footer{display:flex;align-items:baseline;gap:10px}.rs-dlg header h2{margin:0;font-size:18px}.rs-dlg .rs-close{margin-left:auto;font-size:16px;padding:2px 8px}.rs-dlg footer .rs-done{margin-left:auto}.rs-dlg button.primary{background:#2b8a3e;border-color:#2b8a3e;color:#fff;font-weight:600}.rs-hint{color:#6b7580;font-size:12px}.rs-warn{color:#c92a2a;font-size:12px}.rs-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:34px;padding:6px 8px;border:1px solid #dde2e6;border-radius:8px;background:#fff}.rs-bar .rs-sel{font-weight:600}.rs-bar select.rs-count{font-size:15px;font-weight:600}.rs-dlg .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}.rs-grid-wrap{overflow:auto;min-height:120px;border:1px solid #dde2e6;border-radius:8px;background:#fff}.rs-grid{display:grid;grid-template-rows:48px;grid-auto-rows:38px;min-width:max-content;position:relative}.rs-corner,.rs-st{grid-row:1;position:sticky;top:0;z-index:3;background:#f1f3f5;border-bottom:1px solid #dde2e6;font-size:12px}.rs-corner{grid-column:1;left:0;z-index:4;display:flex;align-items:flex-end;padding:4px 6px;color:#6b7580}.rs-st{display:flex;align-items:flex-end;justify-content:center;padding:2px 2px 4px;text-align:center;line-height:1.15;word-break:break-all;overflow:hidden}.rs-st.off{color:#adb5bd}.rs-label{grid-column:1;position:sticky;left:0;z-index:2;background:#fff;display:flex;align-items:center;gap:2px;padding:0 6px;border-top:1px solid #e9ecef;border-right:1px solid #dde2e6;font-size:13px;white-space:nowrap}.rs-label.sub{border-top:1px dashed #e9ecef;padding-left:22px}.rs-label .rs-tyname{font-weight:600;overflow:hidden;text-overflow:ellipsis}.rs-label .rs-sub{color:#6b7580;font-size:12px}.rs-label button{margin-left:auto;font-size:11px;padding:1px 5px}.rs-cell{border-top:1px solid #e9ecef;border-left:1px solid #f1f3f5;cursor:crosshair;position:relative}.rs-cell:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#ced4da}.rs-cell.off{cursor:default;background:repeating-linear-gradient(135deg,transparent 0 5px,#e9ecef 5px 7px)}.rs-cell.off:after{display:none}.rs-cell:not(.off):hover:after{background:#1c7ed6}.rs-rect{z-index:1;margin:5px calc(50% / var(--span, 1) - 14px);border-radius:6px;background:color-mix(in srgb,var(--c) 22%,#fff);border:2px solid var(--c);display:flex;align-items:center;justify-content:center;gap:4px;cursor:pointer;overflow:hidden;white-space:nowrap}.rs-rect b{font-size:16px;color:#212529}.rs-rect small{font-size:11px;color:#495057}.rs-rect.unset{border-style:dashed}.rs-rect.on{box-shadow:0 0 0 3px #1c7ed673}.rs-rect.ghost{pointer-events:none;opacity:.7;border-style:dashed}.rs-rect.ghost.bad{border-color:#c92a2a;background:#c92a2a1f}.rs-cell.start{background:#1c7ed62e;box-shadow:inset 0 0 0 2px #1c7ed6}.rs-cell.start:after{background:#1c7ed6;width:10px;height:10px;margin:-5px 0 0 -5px}#company header nav.c-tabs{display:flex;gap:4px;flex-wrap:wrap}#company header nav.c-tabs button{white-space:nowrap}#company header nav.c-tabs button.on{background:#2f6fb0;border-color:#2f6fb0;color:#fff}#company .c-body.c-tabbed{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}#company .c-tab-grid{display:grid;gap:0 28px;align-items:start}#company .c-tab-grid.multi{grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))}#company .c-tab-grid>div{min-width:0}@media (max-width: 760px){#company header nav.c-tabs{order:2;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -10px;padding:0 10px 2px}#company header nav.c-tabs::-webkit-scrollbar{display:none}#company header nav.c-tabs button{flex:none;padding:6px 12px;font-size:13px}#company .c-body.c-tabbed{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden}#company .dlg{grid-template-columns:minmax(0,1fr)}#company header,#company header nav.c-tabs{min-width:0}#company .c-col.c-side{padding:8px 12px;max-height:34dvh;overflow:auto}#company .c-side .c-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 10px;margin-bottom:0}#company .c-side .c-summary>div:first-child{grid-column:1;align-self:center}#company .c-side .c-summary>.row{grid-column:2 / 4;grid-row:1;margin:0;justify-content:flex-end}#company .c-side .c-summary>.row button{padding:5px 8px;font-size:12px;white-space:nowrap}#company .c-side .c-summary>.msg{grid-column:1 / -1}#company .c-side .c-summary .lbl{display:block;width:auto;font-size:11px}#company .c-side .c-summary .big{font-size:17px}#company .c-side .c-summary>div:not(:first-child) .hint{display:none}#company .c-side .c-summary>div:first-child .hint{display:block;font-size:11px}#company .c-col.c-tab{overflow:auto;border-bottom:none}#company .c-tab-grid>div{overflow-x:auto}}#company .voices{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(360px,100%),1fr));gap:10px}#company .voice{border:1px solid var(--line);border-left:4px solid #e8a33d;border-radius:8px;background:#fff;padding:8px 12px 10px;min-width:0}#company .voice .v-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:12px;color:#6b7580}#company .voice .v-topic{background:#f1ebe0;color:#7a5414;border-radius:4px;padding:0 6px;font-weight:600}#company .voice .v-n{margin-left:auto;white-space:nowrap}#company .voice blockquote{margin:6px 0;font-size:14px;line-height:1.55}#company .voice .v-advice{margin:0;font-size:12px;color:#3d4650}#company .voice .v-advice b{display:inline-block;margin-right:6px;color:#2f6fb0;font-weight:600}
