/* RUDX Routen-Editor (17.11.2026) – Club-Portal und Business. Satin-Look wie die App; Gold für die Strecke. */
body.rte-open { overflow: hidden; }
.rte { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: var(--page, #0a0b0d); color: var(--text, #e9edf2); }
.rte .rte-map { position: relative; overflow: hidden; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; background: #0d0f12; }
.rte .rte-map > .map-host { position: absolute; inset: 0; }
.rte .map-host.map-fail { display: grid; place-items: center; color: var(--muted); }
.rte .map-mode { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 2px; padding: 3px; }
.rte .map-mode button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 12px; cursor: pointer; }
.rte .map-mode button.on { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.rte .map-mode .tilt { margin-left: 4px; border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 12px 12px 0; }
.rte .map-zoom { position: absolute; right: 14px; top: 14px; display: grid; gap: 8px; z-index: 3; }
.rte .map-zoom button { width: 38px; height: 38px; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: grid; place-items: center; }
.rte .maplibregl-ctrl-attrib { background: rgba(10, 11, 13, 0.7) !important; color: var(--muted); }
.rte .maplibregl-ctrl-attrib a { color: var(--muted); }
.rte .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }

.rte-side { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 0; overflow-y: auto; min-height: 0; border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #111316, #0a0b0d); }
.rte-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rte-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.rte-form { display: grid; gap: 10px; }
.rte input[type="text"], .rte input[type="search"], .rte input[type="number"], .rte textarea, .rte select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--text); padding: 10px 12px; border: 0; border-radius: 12px;
  background-color: var(--well-bottom, #0e1013); background-image: var(--well-face); box-shadow: var(--well-rim); }
.rte textarea { resize: vertical; min-height: 44px; }
.rte select { -webkit-appearance: none; appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), var(--well-face);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%, 0 0; background-size: 5px 5px, 5px 5px, 100% 100%; background-repeat: no-repeat; }
.rte-seg { display: flex; gap: 8px; }
.rte-seg button { flex: 1; }
.rte .sat-key.on { color: var(--sand); box-shadow: var(--satin-rim), 0 0 0 1.5px rgba(217, 160, 91, 0.6), var(--satin-shadow); }
.rte-search { position: relative; }
.rte-results { display: grid; gap: 4px; margin-top: 6px; }
.rte-results:empty { display: none; }
.rte-hit { text-align: left; border: 0; background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.rte-hit:hover, .rte-hit:focus-visible { background: rgba(217, 160, 91, 0.14); outline: none; }
.rte-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rte-stats .stat { display: grid; gap: 2px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); min-width: 0; }
.rte-stats .stat strong { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rte-stats .stat span { font-size: 11px; }
.rte-elev:empty { display: none; }
.rte-elev svg { display: block; width: 100%; height: 70px; }
.rte-elev-fill { fill: rgba(217, 160, 91, 0.12); }
.rte-elev-line { fill: none; stroke: var(--sand); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rte-elev-wp { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.rte-elev-lab { display: flex; justify-content: space-between; margin-top: 2px; font-variant-numeric: tabular-nums; }
.rte-msg { margin: -4px 0 0; }
.rte-list { display: grid; gap: 8px; }
.rte-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); transition: box-shadow 0.3s; }
.rte-row.flash { box-shadow: inset 0 0 0 1.5px var(--sand); }
.rte-row.via { padding-block: 6px; opacity: 0.85; }
.rte-mid { display: grid; gap: 6px; min-width: 0; }
.rte-line2 { display: flex; gap: 6px; align-items: center; }
.rte-line2 select { flex: 1 1 auto; min-width: 0; padding-block: 7px; font-size: 13px; }
.rte-line2 .rte-min { width: 74px; flex: 0 0 74px; padding-block: 7px; font-size: 13px; }
.rte-km { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rte-note { font-size: 13px !important; padding-block: 7px !important; }
.rte-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 6px;
  background: linear-gradient(180deg, #2c3038, #15171b); color: var(--text); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.rte-num.start { background: linear-gradient(180deg, #e8b46c, #b98443); color: #0a0b0d; }
.rte-num.finish { background: #e9edf2; color: #0a0b0d; }
.rte-acts { display: grid; gap: 4px; }
.rte-ic { width: 28px; height: 26px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.rte-ic:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.rte-ic:disabled { opacity: 0.25; cursor: default; }
.rte-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.rte-foot { position: sticky; bottom: 0; padding: 14px 0 18px; margin-top: auto; background: linear-gradient(180deg, rgba(10, 11, 13, 0), #0a0b0d 30%); }
.rte-foot .btn { width: 100%; }

.rte-pin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif; cursor: grab;
  background: linear-gradient(180deg, #2c3038, #15171b); color: #e9edf2; box-shadow: 0 0 0 2px #0a0b0d, 0 0 0 3.5px rgba(232, 180, 108, 0.85), 0 4px 10px rgba(0, 0, 0, 0.6); }
.rte-pin.start { background: linear-gradient(180deg, #e8b46c, #b98443); color: #0a0b0d; }
.rte-pin.finish { background: #e9edf2; color: #0a0b0d; }
.rte-pin.via { width: 14px; height: 14px; background: #e8b46c; box-shadow: 0 0 0 2px #0a0b0d, 0 2px 6px rgba(0, 0, 0, 0.6); }
.rte-pin.hot { transform: scale(1.25); }
.rte-pin:active { cursor: grabbing; }

.rte-ask { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); padding: 16px; }
.rte-ask-card { max-width: 360px; width: 100%; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, #1a1d22, #111316); box-shadow: var(--satin-rim), 0 30px 80px rgba(0, 0, 0, 0.7); }
.rte-ask-card p { margin: 0 0 16px; }
.rte-ask-row { display: flex; justify-content: flex-end; gap: 8px; }

/* Lists of routes in the portals */
.route-list { display: grid; gap: 10px; }
.route-card { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 18px;
  background: var(--satin-face); box-shadow: var(--satin-rim), var(--satin-shadow); }
.route-card h3 { margin: 0 0 4px; font-size: 15px; }
.route-card .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rte-thumb { width: 100px; height: 64px; border-radius: 12px; background: #0d0f12; box-shadow: var(--well-rim); }
.rte-thumb path { fill: none; stroke: #e8b46c; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.route-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.route-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 9px; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }

.assign-grid { display: grid; gap: 14px; }
.assign-grid fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.assign-grid legend { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.assign-grid label { display: flex; gap: 10px; align-items: center; font-size: 14px; }

@media (max-width: 860px) {
  .rte { grid-template-columns: 1fr; grid-template-rows: 46vh minmax(0, 1fr); }
  .rte-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-inline: 16px; }
  .rte-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-card { grid-template-columns: 72px minmax(0, 1fr); }
  .route-card .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .rte-thumb { width: 72px; height: 48px; }
}
