:root{--sidebar-width: 360px;--bg: #0f172a;--panel: #ffffff;--panel-muted: #f1f5f9;--border: #e2e8f0;--text: #0f172a;--text-muted: #64748b;--primary: #2563eb;--primary-hover: #1d4ed8;--danger: #dc2626;--shadow: 0 8px 24px rgba(15, 23, 42, .08);--radius: 8px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--text)}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{background:var(--bg);overflow:hidden}#app{display:flex}#sidebar{width:var(--sidebar-width);flex:0 0 var(--sidebar-width);background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;z-index:1000;box-shadow:var(--shadow)}.sidebar-header{padding:16px;border-bottom:1px solid var(--border);background:var(--panel);position:relative}.sidebar-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.sidebar-header h1{font-size:18px;font-weight:600;margin:0;letter-spacing:-.01em}.lang-btn{display:inline-flex;align-items:center;gap:4px;background:var(--panel);border:1px solid var(--border);border-radius:999px;padding:4px 10px 4px 8px;font:inherit;font-size:12px;font-weight:600;color:var(--text);cursor:pointer;transition:background .12s,border-color .12s}.lang-btn:hover{background:var(--panel-muted);border-color:var(--text-muted)}.lang-globe{font-size:14px;line-height:1}.lang-code{letter-spacing:.04em}.search{position:relative}#search-input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}#search-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.search-results{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);list-style:none;margin:0;padding:4px;max-height:280px;overflow-y:auto;z-index:1100;box-shadow:var(--shadow)}.search-result{padding:8px 10px;border-radius:6px;font-size:13px;cursor:pointer;outline:none}.search-result:hover,.search-result:focus{background:var(--panel-muted)}.search-result.empty{color:var(--text-muted);cursor:default;font-style:italic}.stop-list{list-style:none;margin:0;padding:8px;overflow-y:auto;flex:1 1 auto;min-height:0}.stop-item{display:grid;grid-template-columns:24px 1fr auto auto;gap:4px;align-items:center;padding:8px;border-radius:var(--radius);margin-bottom:4px;background:var(--panel);border:1px solid transparent;transition:background .12s,border-color .12s}.stop-item:hover{background:var(--panel-muted);border-color:var(--border)}.stop-item.sortable-ghost{opacity:.4}.drag-handle{cursor:grab;color:var(--text-muted);font-size:18px;text-align:center;-webkit-user-select:none;user-select:none;line-height:1}.drag-handle:active{cursor:grabbing}.stop-main{background:none;border:0;padding:0;text-align:left;cursor:pointer;font:inherit;color:inherit;display:flex;flex-direction:column;min-width:0;overflow:hidden}.stop-name{font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stop-meta{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.icon-btn{background:transparent;border:0;padding:4px 6px;border-radius:4px;cursor:pointer;font-size:14px;color:var(--text-muted);transition:background .12s,color .12s}.icon-btn:hover{background:var(--border);color:var(--text)}.icon-btn.danger:hover{background:#fee2e2;color:var(--danger)}.empty-hint{margin:0;padding:16px;color:var(--text-muted);font-size:13px;text-align:center;font-style:italic}.sidebar-footer{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border);background:var(--panel)}.footer-btn{flex:1 1 0;font:inherit;font-size:13px;font-weight:500;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);color:var(--text);cursor:pointer;transition:background .12s,border-color .12s}.footer-btn:hover{background:var(--panel-muted);border-color:var(--text-muted)}.footer-btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.footer-btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.footer-btn.copied{background:#16a34a;border-color:#16a34a;color:#fff}#map{flex:1 1 auto;height:100%;background:#cfd8dc}.suggest-popup p{margin:0 0 8px;font-size:14px}.suggest-popup button{font:inherit;border-radius:6px;padding:6px 10px;border:1px solid var(--border);cursor:pointer;margin-right:6px}.suggest-popup button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.suggest-popup button.primary:hover{background:var(--primary-hover)}.suggest-popup button.ghost:hover{background:var(--panel-muted)}.leaflet-popup-content{font-family:inherit;font-size:13px}.leaflet-tooltip.stop-label{background:#fff;border:1px solid var(--border);border-radius:999px;padding:3px 10px 3px 4px;font-family:inherit;font-size:12px;font-weight:500;color:var(--text);box-shadow:0 2px 6px #0f172a26;white-space:nowrap}.leaflet-tooltip.stop-label:before{display:none}.fit-control .fit-button{font-size:18px;font-weight:700;line-height:26px;text-align:center;text-decoration:none;color:var(--text)}.stop-label-num{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-right:4px;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;font-weight:600;text-align:center}.app-dialog{border:0;border-radius:12px;padding:0;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 64px);background:var(--panel);color:var(--text);box-shadow:0 20px 60px #0f172a40;overflow:hidden}.app-dialog::backdrop{background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border)}.dialog-header h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}.dialog-close{background:transparent;border:0;padding:0;width:28px;height:28px;border-radius:6px;font-size:22px;line-height:1;color:var(--text-muted);cursor:pointer;transition:background .12s,color .12s}.dialog-close:hover{background:var(--panel-muted);color:var(--text)}.dialog-body{padding:16px 18px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;max-height:calc(100vh - 184px)}.dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--border);background:var(--panel-muted)}.dialog-footer .footer-btn{flex:0 0 auto}.field{display:flex;flex-direction:column;gap:4px;border:0;padding:0;margin:0}.field-label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.field input[type=text],.field input[type=date],.field textarea{font:inherit;font-size:14px;color:var(--text);padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--panel);outline:none;transition:border-color .12s,box-shadow .12s}.field input:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.field input[readonly]{background:var(--panel-muted);color:var(--text-muted);cursor:default}.field textarea{resize:vertical;min-height:64px;font-family:inherit}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-field{border:0;padding:0}.mode-group{display:flex;flex-wrap:wrap;gap:6px}.mode-pill{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:var(--panel);cursor:pointer;font-size:16px;-webkit-user-select:none;user-select:none;transition:background .12s,border-color .12s,color .12s}.mode-pill input{position:absolute;opacity:0;pointer-events:none}.mode-pill:hover{background:var(--panel-muted);border-color:var(--text-muted)}.mode-pill:has(input:checked){background:var(--primary);border-color:var(--primary);color:#fff}.mode-pill:has(input:focus-visible){box-shadow:0 0 0 3px #2563eb40}.summary-dialog{width:min(560px,calc(100vw - 32px))}.summary-text{margin:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;color:var(--text);white-space:pre-wrap;word-break:break-word;background:var(--panel-muted);border:1px solid var(--border);border-radius:8px;padding:14px 16px;max-height:60vh;overflow-y:auto}
