:root{--ink:#1b1b1b;--muted:#6b6b6b;--paper:#ffffff;--panel:rgba(255, 255, 255, 0.96);--line:#e4e4e4;--accent:#f39800;--panel-w:340px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}[hidden]{display:none!important}.legend .name,.row.buttons>*,.segmented button,.tabs button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body,html{margin:0;height:100%;overflow:hidden;background:var(--paper)}#map{position:fixed;inset:0;width:100%;height:100%;cursor:grab;touch-action:none;user-select:none}#map.dragging{cursor:grabbing}.panel{position:fixed;top:16px;left:16px;bottom:16px;width:var(--panel-w);min-width:280px;max-width:25vw;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.08);overflow:hidden}#panelResize{position:absolute;top:0;right:0;width:10px;bottom:0;cursor:ew-resize;touch-action:none}#panelResize::after{content:"";position:absolute;top:24px;bottom:24px;left:3px;width:2px;border-radius:2px;background:0 0}#panelResize.dragging::after,#panelResize:hover::after{background:var(--line)}.brand{display:flex;align-items:center;gap:12px;padding:16px 18px 14px;border-bottom:1px solid var(--line)}.brand-icon{flex:none;width:44px;height:44px;border-radius:12px;background:#2a3646;display:grid;place-items:center;overflow:hidden}.brand-icon img{width:44px;height:44px;border-radius:12px;display:block}.brand h1{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em}.brand p{margin:2px 0 0;font-size:12px;color:var(--muted)}.controls{padding:14px 18px;display:grid;gap:12px;border-bottom:1px solid var(--line);font-size:13px;min-width:0}.controls>*{min-width:0}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.row.check{justify-content:flex-start;cursor:pointer}.row input[type=range]{flex:1 1 0;min-width:0;max-width:100%;accent-color:var(--ink)}.row>span:first-child{width:84px;flex:none}.hint{margin:0;font-size:11px;color:var(--muted);line-height:1.4}.export-size{display:grid;gap:6px;font-size:13px}.export-size-inputs{display:flex;gap:8px}.export-size-inputs label{flex:1 1 0;display:flex;align-items:center;gap:6px;color:var(--muted)}.export-size-inputs input{flex:1 1 0;min-width:0;font:inherit;font-size:13px;padding:5px 8px;border:1px solid var(--line);border-radius:8px}.export-size small{font-size:11px;color:var(--muted);line-height:1.4}.row output{width:28px;flex:none;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.lines-filter{display:grid;gap:6px;font-size:13px;min-width:0}.lines-filter>span{color:var(--muted);font-size:12px}.lines-filter .opts{display:flex;flex-wrap:wrap;gap:4px 12px}.lines-filter label.check{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.lines-filter input:disabled+span{opacity:.45}button.primary{background:var(--ink);color:#fff;border-color:var(--ink);font-weight:600}button.primary:hover{background:#333}.row.buttons{justify-content:stretch}.row.buttons>*{flex:1 1 0;min-width:0}.row.buttons .seed{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.row.buttons .seed input{width:72px;flex:none;font:inherit;font-size:13px;color:var(--ink);padding:6px 8px;border:1px solid var(--line);border-radius:8px;font-variant-numeric:tabular-nums}.paste{display:grid;gap:8px}.paste textarea{font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:7px 10px;border:1px solid var(--line);border-radius:8px;resize:vertical;min-height:52px;width:100%}.button,button{font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--line);background:#fff;border-radius:8px;cursor:pointer;color:var(--ink);text-align:center}.button:hover,button:hover{background:#f5f5f5}.segmented{display:flex;padding:3px;background:#f0f0f0;border-radius:9px}.segmented button{flex:1 1 0;min-width:0;border:none;background:0 0;border-radius:7px;padding:6px}.segmented button.active{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12);font-weight:600}.legend{flex:1;overflow:auto;padding:12px 10px 16px}.legend h2{margin:0 8px 8px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.legend ul{list-style:none;margin:0;padding:0}.legend-search{display:flex;gap:8px;margin:0 8px 8px}.legend-search input{flex:1 1 0;min-width:0;font:inherit;font-size:13px;padding:6px 8px;border:1px solid var(--line);border-radius:8px}.legend-search button{flex:none;white-space:nowrap}.legend-search button:disabled{opacity:.45;cursor:default}.legend li.nomatch{display:none}.legend li{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;font-size:13px;cursor:pointer}.legend h2 small{text-transform:none;letter-spacing:0;font-weight:400;margin-left:6px}.legend li:hover{background:#f4f4f4}.legend li.focused{background:#f0f0f0;font-weight:600}.legend li.off .count,.legend li.off .name,.legend li.off .swatch{opacity:.35}.legend .eye{flex:none;width:16px;height:16px;padding:0;border-radius:50%;border:2px solid var(--ink);background:var(--ink)}.legend li.off .eye{background:#fff;border-color:#bbb}.legend .swatch{flex:none;width:26px;height:6px;border-radius:3px;background:var(--c)}.legend .name{flex:1 1 auto;min-width:0}.legend .count{flex:none;white-space:nowrap;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.legend .rename{flex:none;width:22px;height:22px;padding:0;border:none;background:0 0;color:var(--muted);font-size:13px;line-height:1;border-radius:6px;opacity:0}.legend li:focus-within .rename,.legend li:hover .rename{opacity:1}.legend .rename:hover{background:#e8e8e8;color:var(--ink)}.legend .rename-input{flex:1 1 auto;min-width:0;font:inherit;font-size:13px;padding:3px 6px;border:1px solid var(--accent);border-radius:6px;outline:0}#focusBar .focus-rename{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}#focusBar .focus-rename input{font:inherit;font-size:13px;padding:4px 8px;border:1px solid var(--line);border-radius:8px;min-width:0;width:160px}#focusBar .focus-rename input:focus{border-color:var(--accent);outline:0}.tabs{display:flex;gap:6px;padding:12px 18px 0}.tabs button{flex:1 1 0;min-width:0;border:1px solid transparent;background:#f0f0f0;border-radius:8px;padding:7px 4px;font-size:12.5px}.tabs button.active{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}.filetab{flex:1;overflow:auto;padding:14px 18px 16px;display:grid;gap:12px;align-content:start;font-size:13px;min-width:0}.filetab>*{min-width:0}.filetab .button{display:block}.legend .dots{flex:none;display:flex;gap:3px;align-items:center}.legend .dots i{width:12px;height:6px;border-radius:3px;display:block}.legend .expander{flex:none;width:22px;height:22px;padding:0;border:none;background:0 0;color:var(--ink);font-size:11px;line-height:1;border-radius:6px}.legend .expander:hover{background:#e8e8e8}#stationList>li{flex-wrap:wrap}#stationList .srow{display:flex;align-items:center;gap:10px;flex:1 1 100%;min-width:0}#stationList>li.merged>.srow>.name{font-weight:600}#stationList .members{list-style:none;margin:2px 0;padding:0 0 0 32px;flex:1 1 100%;display:grid;gap:4px}#stationList .member{display:flex;padding:0;cursor:default}#stationList .member:hover{background:0 0}#stationList .member input{flex:1 1 auto;min-width:0;font:inherit;font-size:12.5px;padding:4px 8px;border:1px solid var(--line);border-radius:7px}#stationList .member input:focus{border-color:var(--accent);outline:0}.credit{padding:10px 18px 12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);text-align:center}.start-card .credit{border:none;padding:4px 0 0}.zoom{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.06)}.zoom button{width:38px;height:38px;border:none;border-radius:0;font-size:18px;padding:0}.zoom button+button{border-top:1px solid var(--line)}#focusBar{position:fixed;top:16px;left:calc(50% + var(--panel-w)/ 2);transform:translateX(-50%);display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;max-width:min(720px,calc(100% - var(--panel-w) - 60px));background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 8px 8px 14px;font-size:13px;box-shadow:0 6px 24px rgba(0,0,0,.1)}#focusBar .chips{display:flex;flex-wrap:wrap;gap:4px 10px}#focusBar .chip{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}#focusBar .chip i{width:14px;height:4px;border-radius:2px}#tooltip{position:fixed;pointer-events:none;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12px;box-shadow:0 6px 20px rgba(0,0,0,.12);display:grid;gap:4px;max-width:260px}#tooltip strong{font-size:13px}#tooltip .chip{display:flex;align-items:center;gap:6px;color:var(--muted)}#tooltip .chip i{width:14px;height:4px;border-radius:2px}#message{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);max-width:460px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;font-size:14px;line-height:1.5;box-shadow:0 10px 40px rgba(0,0,0,.12)}#message code{background:#f3f3f3;padding:1px 5px;border-radius:4px;font-size:12px}#startOverlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:rgba(255,255,255,.92)}.start-card{width:100%;max-width:420px;display:grid;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.12)}.start-card h1{margin:0;font-size:20px}.start-card p{margin:0;font-size:13px;color:var(--muted)}.start-card code{background:#f3f3f3;padding:1px 5px;border-radius:4px;font-size:12px}.start-card .big{display:block;font-size:15px;padding:12px}#startError{color:#b00020}@media (max-width:900px){.panel{left:12px;right:12px;width:auto;min-width:0;max-width:none;bottom:auto;max-height:52vh;overflow-y:auto}#panelResize{display:none}#focusBar{top:auto;bottom:16px;left:50%;max-width:calc(100% - 100px)}}