/* JAVIS NEXUS V2 – desktop.css (Basis + Desktop/Tablet, ab 768 px; immer geladen)
   Erzeugt per tools/migrate-css.js aus frontend/css/legacy/*; ab jetzt direkt gepflegt. Tokens: tokens.css. */
@keyframes spin { to { background-position: 38px 0, 0 0; } }
@keyframes pulse { 0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes spin-ring { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes net-pulse { 50% { opacity: .35; } }
@keyframes net-shimmer { to { background-position: -200% 0; } }
@keyframes net-spin { to { transform: rotate(360deg); } }
@keyframes net-glow { 50% { box-shadow: 0 0 14px rgba(0, 230, 138, .45); } }
@keyframes nxpulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
/* ===== page-cockpit: style.css + network.css ===== */
.page-cockpit * { box-sizing: border-box; }
html:has(> body.page-cockpit),
body.page-cockpit { height: 100%; margin: 0; }
/* RC2.1: der Body selbst war nicht border-box (die Regel oben gilt nur für Nachfahren) → 100 % Höhe + 12 px Innenabstand = 12 px Seitenscrollen bei niedrigen Fenstern. */
body.page-cockpit { box-sizing: border-box; }
body.page-cockpit {
  background: radial-gradient(1200px 700px at 50% 0%, #0a2a40 0%, var(--bg) 60%);
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 60px;
  gap: 10px;
  padding: 0 14px 12px;
}
.page-cockpit .bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: linear-gradient(rgba(25,227,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(25,227,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-cockpit .hidden { display: none !important; }
.page-cockpit button { font: inherit; color: inherit; cursor: pointer; }
.page-cockpit svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-cockpit .panel {
  position: relative; z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 0 30px rgba(25,227,255,.05), 0 0 22px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.page-cockpit .panel::before,
.page-cockpit .panel::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--cyan); filter: drop-shadow(0 0 4px var(--cyan));
}
.page-cockpit .panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.page-cockpit .panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.page-cockpit .topbar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; }
.page-cockpit .brand { display: flex; align-items: center; gap: 12px; color: var(--cyan); min-width: 250px; }
.page-cockpit .brand-logo { width: 42px; height: 42px; filter: drop-shadow(0 0 6px var(--cyan)); }
.page-cockpit .brand-name { font-size: 30px; font-weight: 300; letter-spacing: 4px; color: #eaffff; text-shadow: var(--glow); }
.page-cockpit .brand-name small { font-size: 22px; letter-spacing: 3px; color: #9fdcf0; }
.page-cockpit .topnav { display: flex; gap: 10px; flex: 1; justify-content: center; }
.page-cockpit .chip {
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(4,20,36,.8); color: var(--text); font-size: 15px;
}
.page-cockpit .chip.disabled { opacity: .55; cursor: default; }
.page-cockpit .chip.active { border-color: var(--cyan); color: var(--teal); box-shadow: var(--glow), inset 0 0 12px rgba(25,227,255,.2); }
.page-cockpit .top-right { display: flex; align-items: center; gap: 16px; }
.page-cockpit .clock { font-variant-numeric: tabular-nums; font-size: 15px; }
.page-cockpit .icon-btn {
  position: relative; background: none; border: 0; color: var(--cyan); width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; font-size: 16px;
}
.page-cockpit .icon-btn:hover { background: rgba(25,227,255,.12); }
.page-cockpit .icon-btn svg { width: 24px; height: 24px; }
.page-cockpit .badge { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.page-cockpit .layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 12px; min-height: 0; }
.page-cockpit .sidebar { padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.page-cockpit .side-head { display: flex; gap: 12px; align-items: center; padding: 4px 4px 10px; }
.page-cockpit .side-head strong { display: block; font-size: 17px; letter-spacing: .5px; }
.page-cockpit .side-head span { font-size: 12px; color: var(--muted); }
.page-cockpit .side-ico { width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--cyan); background: rgba(25,227,255,.1); flex: none; }
.page-cockpit .side-nav { display: flex; flex-direction: column; gap: 4px; }
.page-cockpit .side-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 8px;
  background: none; border: 1px solid transparent; text-align: left; font-size: 16px; color: var(--text);
}
.page-cockpit .side-item svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.page-cockpit .side-item:hover:not(:disabled) { background: rgba(25,227,255,.08); }
.page-cockpit .side-item.active { background: linear-gradient(90deg, rgba(20,241,217,.28), rgba(25,227,255,.08)); border-color: var(--line-strong); box-shadow: var(--glow); }
.page-cockpit .side-item:disabled { opacity: .45; cursor: not-allowed; }
.page-cockpit .globe { margin-top: auto; height: 170px; position: relative; display: grid; place-items: center; }
.page-cockpit .globe-sphere {
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(120,235,255,.85), rgba(15,110,170,.55) 45%, rgba(3,30,60,.9) 75%);
  box-shadow: 0 0 40px rgba(25,227,255,.55), inset 0 0 25px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}
.page-cockpit .globe-sphere::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(190,250,255,.25) 18px 19px), repeating-linear-gradient(0deg, transparent 0 18px, rgba(190,250,255,.25) 18px 19px);
  border-radius: 50%; animation: spin 14s linear infinite; background-size: 38px 38px;
}
.page-cockpit .globe-base { position: absolute; bottom: 6px; width: 150px; height: 26px; border-radius: 50%; border: 1px solid var(--cyan); box-shadow: 0 0 16px var(--cyan); opacity: .6; }
.page-cockpit .service { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(4,30,40,.7); }
.page-cockpit .service .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 14px var(--warn); }
.page-cockpit .service.online .dot { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.page-cockpit .service.offline .dot { background: var(--bad); box-shadow: 0 0 14px var(--bad); }
.page-cockpit .service .lbl { display: block; font-size: 13px; }
.page-cockpit .service strong { color: var(--ok); }
.page-cockpit .service.offline strong { color: var(--bad); }
.page-cockpit .map-wrap { overflow: hidden; padding: 0; min-height: 0; }
.page-cockpit #map { position: absolute; inset: 0; border-radius: 10px; background: #031122; z-index: 0; }
.page-cockpit .map-wrap::after { z-index: 600; }
.page-cockpit .map-wrap::before { z-index: 600; }
.page-cockpit .map-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; z-index: 700; }
.page-cockpit .map-zoom { position: absolute; right: 14px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 700; }
.page-cockpit .tool {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; line-height: 1;
  background: rgba(4,20,36,.88); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--cyan); box-shadow: var(--glow);
}
.page-cockpit .tool svg { width: 22px; height: 22px; }
.page-cockpit .tool:hover { background: rgba(25,227,255,.2); }
.page-cockpit .tool.on { background: rgba(25,227,255,.3); }
.page-cockpit .sim-banner {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 700;
  padding: 6px 18px; border: 1px solid var(--sim); color: var(--sim); background: rgba(40,24,0,.82);
  border-radius: 999px; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; box-shadow: 0 0 14px rgba(255,176,32,.4);
}
.page-cockpit .maplibregl-canvas { outline: none; }
.page-cockpit .maplibregl-map .maplibregl-ctrl-attrib,
.page-cockpit .maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(3, 12, 25, .86); color: var(--muted); font-size: 10px; border-radius: 6px; }
.page-cockpit .maplibregl-map .maplibregl-ctrl-attrib a { color: var(--cyan); }
.page-cockpit .maplibregl-ctrl-attrib-button { filter: invert(1); }
.page-cockpit .map-status {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 700; max-width: 80%;
  padding: 8px 18px; border: 1px solid var(--bad); color: #ffd7db; background: rgba(40,4,10,.9); border-radius: 8px; font-size: 13px;
}
.page-cockpit .layer-pop { position: absolute; top: 66px; right: 14px; z-index: 700; width: 210px; padding: 12px 14px; background: rgba(4,18,34,.95); }
.page-cockpit .layer-pop h4 { margin: 4px 0 6px; font-size: 13px; color: var(--cyan); font-weight: 600; }
.page-cockpit .layer-pop h4:not(:first-child) { margin-top: 12px; }
.page-cockpit .layer-pop label { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13.5px; }
.page-cockpit .layer-pop input { accent-color: var(--cyan); }
.page-cockpit .wt-marker { width: 0; height: 0; cursor: pointer; }
.page-cockpit .wt-marker .dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); }
.page-cockpit .wt-marker .ring { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 2px solid var(--c); animation: pulse 2s ease-out infinite; }
.page-cockpit .wt-marker.online { --c: var(--cyan); }
.page-cockpit .wt-marker.stale { --c: var(--warn); }
.page-cockpit .wt-marker.stale .ring,
.page-cockpit .wt-marker.offline .ring { animation: none; opacity: .35; }
.page-cockpit .wt-marker.offline { --c: #7a8a96; }
.page-cockpit .wt-marker.sim { --c: var(--sim); }
.page-cockpit .wt-marker.sim.stale,
.page-cockpit .wt-marker.sim.offline { --c: #8d7a52; }
.page-cockpit .wt-tip {
  position: absolute; left: 26px; top: 0; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  background: rgba(3,16,30,.92); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 8px; padding: 8px 12px; box-shadow: var(--glow);
}
.page-cockpit .wt-marker.sim .wt-tip .sub { color: var(--sim); }
.page-cockpit .wt-tip strong { display: block; font-size: 15px; }
.page-cockpit .wt-tip .sub { color: var(--teal); font-size: 12.5px; }
.page-cockpit .wt-tip.sim .sub { color: var(--sim); }
.page-cockpit .wt-tip .coords { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.page-cockpit .right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.page-cockpit .device-card { padding: 16px; }
.page-cockpit .empty { color: var(--muted); padding: 30px 0; text-align: center; }
.page-cockpit .device-head { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: start; }
.page-cockpit .phone-img { width: 62px; height: 108px; border-radius: 12px; border: 2px solid #3a4a8a; background: linear-gradient(160deg, #1a2a6a, #6a2fc4 60%, #1a2a6a); box-shadow: 0 0 14px rgba(120,80,255,.5); position: relative; }
.page-cockpit .phone-img i { position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #000; }
.page-cockpit .device-title h2 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.page-cockpit .status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.page-cockpit .status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px currentColor; color: var(--bad); }
.page-cockpit .status-dot.ONLINE { background: var(--ok); color: var(--ok); }
.page-cockpit .status-dot.VERALTET { background: var(--warn); color: var(--warn); }
.page-cockpit #d-status.ONLINE { color: var(--ok); }
.page-cockpit #d-status.VERALTET { color: var(--warn); }
.page-cockpit #d-status.OFFLINE { color: var(--bad); }
.page-cockpit .sim-tag { padding: 1px 8px; border: 1px solid var(--sim); color: var(--sim); border-radius: 999px; font-size: 11px; letter-spacing: 1px; }
.page-cockpit .battery { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); }
.page-cockpit .bat { width: 40px; height: 16px; border: 2px solid var(--ok); border-radius: 4px; padding: 1px; display: block; }
.page-cockpit .bat i { display: block; height: 100%; background: var(--ok); width: 50%; box-shadow: 0 0 6px var(--ok); }
.page-cockpit #device-select { grid-column: 1 / -1; margin-top: 12px; background: rgba(4,20,36,.9); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.page-cockpit .facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 16px 0; }
.page-cockpit .facts dt { color: var(--muted); }
.page-cockpit .facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.page-cockpit .btn-row { display: flex; gap: 10px; }
.page-cockpit .btn {
  flex: 1; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: rgba(25,227,255,.12); color: #eaffff; font-weight: 600; font-size: 15px; box-shadow: var(--glow);
}
.page-cockpit .btn:hover:not(:disabled) { background: rgba(25,227,255,.28); }
.page-cockpit .btn:disabled { opacity: .4; cursor: not-allowed; }
.page-cockpit .btn.primary { background: var(--grad-primary); }
.page-cockpit .btn.danger { border-color: rgba(255,77,94,.7); background: rgba(255,77,94,.15); box-shadow: 0 0 12px rgba(255,77,94,.3); }
.page-cockpit .btn.on { background: rgba(25,227,255,.4); }
.page-cockpit .btn.small { flex: none; padding: 6px 12px; font-size: 13px; }
.page-cockpit .history-card { padding: 14px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page-cockpit .history-card header { display: flex; justify-content: space-between; align-items: baseline; }
.page-cockpit .history-card h3,
.page-cockpit .modal h3 { margin: 0; font-size: 17px; font-weight: 600; }
.page-cockpit .link-btn { background: none; border: 0; color: var(--cyan); font-size: 13px; text-decoration: underline; }
.page-cockpit #mini-trail { width: 100%; height: 120px; margin: 10px 0; background: rgba(2,12,24,.7); border: 1px solid var(--line); border-radius: 8px; flex: none; }
.page-cockpit #mini-trail text { stroke: none; }
.page-cockpit .trail-line { fill: none; stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 3px var(--cyan)); }
.page-cockpit .trail-pt { fill: var(--teal); }
.page-cockpit .trail-end { fill: var(--bad); stroke: #fff; stroke-width: 1.5; }
.page-cockpit .mini-list { list-style: none; margin: 0; padding: 0; overflow: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.page-cockpit .mini-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(25,227,255,.1); }
.page-cockpit .mini-list li span:first-child { color: var(--text); }
.page-cockpit .nav-card { padding: 14px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.page-cockpit .nav-card header { display: flex; justify-content: space-between; align-items: center; }
.page-cockpit .nav-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.page-cockpit .nav-card h3 small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.page-cockpit .nav-points { display: flex; flex-direction: column; gap: 8px; }
.page-cockpit .nav-point { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(2,12,24,.6); }
.page-cockpit .nav-point.picking { border-color: #3d86ff; box-shadow: 0 0 12px rgba(61,134,255,.45); }
.page-cockpit .nav-point:focus-within { border-color: var(--line-strong); }
.page-cockpit .nav-point-head { display: flex; align-items: center; gap: 8px; }
.page-cockpit .nav-point-head label { flex: 1; color: var(--muted); font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; }
.page-cockpit .nav-search { position: relative; }
.page-cockpit .nav-search input {
  width: 100%; padding: 9px 34px 9px 34px; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(2,12,24,.9); border: 1px solid var(--line-strong); border-radius: 8px; outline: none;
}
.page-cockpit .nav-search input::placeholder { color: #5f8397; }
.page-cockpit .nav-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), var(--glow); }
.page-cockpit .nav-search-ico { position: absolute; left: 9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--cyan); pointer-events: none; }
.page-cockpit .nav-spin { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(25,227,255,.25); border-top-color: var(--cyan); animation: spin-ring .8s linear infinite; }
.page-cockpit .suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; margin: 0; padding: 4px; list-style: none;
  max-height: min(300px, 45vh); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(3,16,30,.98); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--glow), 0 10px 24px rgba(0,0,0,.6);
}
.page-cockpit .suggest-item { display: block; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.page-cockpit .suggest-item.active,
.page-cockpit .suggest-item:hover { background: rgba(25,227,255,.16); }
.page-cockpit .suggest-title { display: block; font-size: 14px; color: #eaffff; overflow-wrap: anywhere; }
.page-cockpit .suggest-sub { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.page-cockpit .suggest-item.outside .suggest-title { color: #9bb3c0; }
.page-cockpit .suggest-tag { display: inline-block; margin-top: 3px; padding: 0 7px; border: 1px solid var(--warn); color: var(--warn); border-radius: 999px; font-size: 10.5px; }
.page-cockpit .suggest-msg { padding: 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.page-cockpit .suggest-msg.error { color: #ffd7db; }
.page-cockpit .nav-hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.page-cockpit .nav-error { margin: 0; padding: 8px 10px; border: 1px solid var(--bad); border-radius: 8px; background: rgba(60,6,14,.6); color: #ffd7db; font-size: 13px; }
.page-cockpit .nav-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page-cockpit .nav-summary div { padding: 8px 12px; border: 1px solid rgba(61,134,255,.55); border-radius: 8px; background: rgba(20,60,140,.28); }
.page-cockpit .nav-summary small { display: block; color: var(--muted); font-size: 11.5px; }
.page-cockpit .nav-summary strong { font-size: 21px; font-weight: 500; color: #cfe4ff; }
.page-cockpit .nav-steps { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; flex: 1; }
.page-cockpit .nav-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid rgba(25,227,255,.1); cursor: pointer; font-size: 13px; }
.page-cockpit .nav-step:hover { background: rgba(61,134,255,.14); }
.page-cockpit .nav-step .ico { color: #6aa8ff; font-size: 17px; text-align: center; }
.page-cockpit .nav-step .dist { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-cockpit .nav-step.arrive .txt { color: var(--ok); }
.page-cockpit .nav-pin { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid #fff; font-size: 12px; font-weight: 700; color: #fff; }
.page-cockpit .nav-pin.start { background: #1f9d6a; box-shadow: 0 0 10px #1f9d6a; }
.page-cockpit .nav-pin.target { background: #d93a4c; box-shadow: 0 0 10px #d93a4c; }
.page-cockpit .nav-pin-label { pointer-events: none; }
.page-cockpit .maplibregl-marker.nav-pin { width: 30px; height: 30px; font-size: 13px; z-index: 3; }
.page-cockpit .nav-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2,12,24,.6); }
.page-cockpit .nav-tab { padding: 8px 6px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; transition: background .15s, color .15s; }
.page-cockpit .nav-tab:hover { color: var(--text); }
.page-cockpit .nav-tab.active { color: #eaffff; border-color: var(--line-strong); background: linear-gradient(90deg, rgba(20,241,217,.26), rgba(25,227,255,.08)); box-shadow: var(--glow); }
.page-cockpit .nav-pane { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.page-cockpit .poi-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.page-cockpit .poi-title strong { font-size: 13px; letter-spacing: 2px; color: var(--cyan); text-shadow: var(--glow); }
.page-cockpit .poi-title small { color: var(--muted); font-size: 12px; }
.page-cockpit .poi-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.page-cockpit .poi-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(2,12,24,.7); color: var(--text); font-size: 12.5px; transition: background .15s, border-color .15s;
}
.page-cockpit .poi-chip svg { stroke: var(--c); }
.page-cockpit .poi-chip:hover { border-color: var(--c); }
.page-cockpit .poi-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); color: #fff; }
.page-cockpit .poi-opts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.page-cockpit .poi-opts label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; min-width: 0; }
.page-cockpit .poi-opts select { width: 100%; padding: 8px 9px; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); background: rgba(2,12,24,.9); border: 1px solid var(--line-strong); border-radius: 8px; }
.page-cockpit .poi-opts select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.page-cockpit #poi-search.busy { position: relative; opacity: .8; }
.page-cockpit #poi-search.busy::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin-ring .8s linear infinite; }
.page-cockpit .poi-status { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.page-cockpit .poi-status.error { color: #ffd7db; padding: 7px 9px; border: 1px solid var(--bad); border-radius: 8px; background: rgba(60,6,14,.6); }
.page-cockpit .poi-status.warn { color: var(--warn); }
.page-cockpit .poi-status.loading { color: var(--cyan); }
.page-cockpit .poi-list { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; flex: 1; }
.page-cockpit .poi-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(25,227,255,.1); border-left: 3px solid transparent; }
.page-cockpit .poi-item.selected { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.page-cockpit .poi-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.page-cockpit .poi-ico svg { stroke: var(--c); }
.page-cockpit .poi-body { min-width: 0; }
.page-cockpit .poi-name { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.page-cockpit .poi-sub { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.page-cockpit .poi-warn { display: inline-block; margin-top: 2px; padding: 0 7px; border: 1px solid var(--warn); border-radius: 999px; color: var(--warn); font-size: 10.5px; }
.page-cockpit .poi-dist { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--cyan); white-space: nowrap; }
.page-cockpit .poi-actions { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.page-cockpit .poi-actions .btn.small { padding: 5px 10px; font-size: 12px; }
.page-cockpit .nav-tabs { grid-template-columns: repeat(3, 1fr); }
.page-cockpit .nav-pane#nav-pane-live { overflow-y: auto; padding-right: 2px; }
.page-cockpit .live-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.page-cockpit .live-head strong { font-size: 13px; letter-spacing: 2px; color: var(--cyan); text-shadow: var(--glow); }
.page-cockpit .live-state { padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--muted); }
.page-cockpit .live-state[data-state="active"] { color: var(--ok); border-color: var(--ok); }
.page-cockpit .live-state[data-state="rerouting"] { color: var(--warn); border-color: var(--warn); }
.page-cockpit .live-state[data-state="arrived"] { color: #fff; border-color: var(--cyan); background: rgba(25,227,255,.2); }
.page-cockpit .man-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; color: var(--cyan); border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(25,227,255,.1); }
.page-cockpit .live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.page-cockpit .live-stats div { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(2,12,24,.6); }
.page-cockpit .live-stats small { display: block; color: var(--muted); font-size: 11px; }
.page-cockpit .live-stats strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.page-cockpit .live-gps { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.page-cockpit .live-gps dt { color: var(--muted); }
.page-cockpit .live-gps dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.page-cockpit .gps-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.page-cockpit .gps-dot[data-state="ok"] { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.page-cockpit .gps-dot[data-state="poor"] { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.page-cockpit .gps-dot[data-state="stale"] { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.page-cockpit .live-source { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; }
.page-cockpit .live-source select,
.page-cockpit .live-sim select {
  width: 100%; padding: 8px 9px; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text);
  background: rgba(2,12,24,.9); border: 1px solid var(--line-strong); border-radius: 8px;
}
.page-cockpit .live-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.page-cockpit .live-msg { margin: 0; padding: 7px 9px; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); }
.page-cockpit .live-msg.warn { border-color: var(--warn); color: var(--warn); }
.page-cockpit .btn.toggle { flex: 1; opacity: .8; }
.page-cockpit .btn.toggle.on { opacity: 1; background: rgba(25,227,255,.3); border-color: var(--cyan); }
.page-cockpit .live-voice-line { margin: 0; font-size: 12px; color: var(--muted); }
.page-cockpit .sim-row { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); gap: 4px; }
.page-cockpit .sim-row output { color: var(--text); font-variant-numeric: tabular-nums; }
.page-cockpit .sim-row input[type=range] { width: 100%; accent-color: var(--cyan); }
.page-cockpit .sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page-cockpit .sim-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.page-cockpit .live-hud {
  position: absolute; left: 14px; bottom: 44px; z-index: 700; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: calc(100% - 84px); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(3,16,30,.92); box-shadow: var(--glow);
}
.page-cockpit .hud-speed { text-align: center; min-width: 54px; }
.page-cockpit .hud-speed strong { display: block; font-size: 28px; line-height: 1; color: #eaffff; font-variant-numeric: tabular-nums; }
.page-cockpit .hud-speed small,
.page-cockpit .hud-eta small,
.page-cockpit .hud-man small { color: var(--muted); font-size: 11.5px; }
.page-cockpit .hud-man { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-cockpit .hud-man strong { display: block; font-size: 14.5px; }
.page-cockpit .hud-eta strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.page-cockpit .live-hud .sim-tag { margin-left: auto; }
.page-cockpit .wt-vehicle { width: 0; height: 0; z-index: 4; }
.page-cockpit .wt-vehicle-halo { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(61,134,255,.22); border: 1px solid rgba(61,134,255,.6); }
.page-cockpit .wt-vehicle-arrow { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; transition: none; }
.page-cockpit .wt-vehicle-arrow::before { content: ""; position: absolute; inset: 0; background: #2f7bff; clip-path: polygon(50% 0, 92% 92%, 50% 72%, 8% 92%); filter: drop-shadow(0 0 4px #fff); }
.page-cockpit .wt-vehicle.sim .wt-vehicle-halo { background: rgba(255,176,32,.2); border-color: rgba(255,176,32,.7); }
.page-cockpit .wt-vehicle.sim .wt-vehicle-arrow::before { background: var(--sim); }
.page-cockpit .wt-popup { z-index: 10; }
.page-cockpit .wt-popup .maplibregl-popup-content { padding: 12px 14px 12px; background: rgba(3,16,30,.97); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--glow), 0 8px 22px rgba(0,0,0,.6); font-family: inherit; }
.page-cockpit .wt-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--line-strong); }
.page-cockpit .wt-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--line-strong); }
.page-cockpit .wt-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--line-strong); }
.page-cockpit .wt-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--line-strong); }
.page-cockpit .wt-popup .maplibregl-popup-close-button { color: var(--cyan); font-size: 20px; width: 30px; height: 30px; }
.page-cockpit .wt-popup .maplibregl-popup-close-button:hover { background: rgba(25,227,255,.15); }
.page-cockpit .poi-pop { display: flex; flex-direction: column; gap: 4px; min-width: 180px; padding-right: 14px; }
.page-cockpit .poi-pop-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--c); }
.page-cockpit .poi-pop-head svg { stroke: var(--c); }
.page-cockpit .poi-pop-name { font-size: 15px; overflow-wrap: anywhere; }
.page-cockpit .poi-pop-addr { font-size: 12.5px; color: var(--muted); }
.page-cockpit .poi-pop-dist { font-size: 12.5px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.page-cockpit .poi-pop-warn { font-size: 11.5px; color: var(--warn); }
.page-cockpit .poi-pop .btn { margin-top: 6px; }
@media (min-width: 1101px) {
.page-cockpit .right.nav-mode .device-card { display: none; }
}
.page-cockpit .statbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.page-cockpit .statbar .stat { display: flex; flex-direction: column; justify-content: center; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.page-cockpit .stat .lbl { color: var(--muted); font-size: 13px; }
.page-cockpit .stat strong { font-size: 26px; font-weight: 500; }
.page-cockpit .stat.ok strong { color: var(--ok); }
.page-cockpit .stat.warn strong { color: var(--warn); }
.page-cockpit .stat.bad strong { color: var(--bad); }
.page-cockpit .modal-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,6,14,.7); display: grid; place-items: center; }
.page-cockpit .modal { width: min(640px, 94vw); max-height: 86vh; overflow: auto; padding: 20px; background: rgba(4,18,34,.96); }
.page-cockpit .modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.page-cockpit .modal p { color: var(--muted); line-height: 1.5; }
.page-cockpit .modal input[type=text],
.page-cockpit .login input[type=password] {
  width: 100%; padding: 10px 12px; background: rgba(2,12,24,.9); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; font: inherit;
}
.page-cockpit .row { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.page-cockpit .dev-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.page-cockpit .dev-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.page-cockpit .dev-item .meta { flex: 1; min-width: 0; }
.page-cockpit .dev-item .meta small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.page-cockpit .pair-box { margin-top: 14px; padding: 12px; border: 1px dashed var(--sim); border-radius: 8px; }
.page-cockpit .pair-box code { display: block; margin: 8px 0; padding: 8px; background: rgba(0,0,0,.4); border-radius: 6px; overflow-wrap: anywhere; font-size: 12.5px; user-select: all; }
.page-cockpit .hist-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.page-cockpit .hist-table th,
.page-cockpit .hist-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(25,227,255,.12); }
.page-cockpit .hist-table th { color: var(--muted); font-weight: 500; }
.page-cockpit .switch { display: flex; align-items: center; gap: 12px; }
.page-cockpit .login { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: radial-gradient(900px 600px at 50% 20%, #07264a, var(--bg)); }
.page-cockpit .login-box { width: min(380px, 92vw); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.page-cockpit .login-box h1,
.page-cockpit .phone h1 { margin: 0; font-weight: 300; letter-spacing: 4px; font-size: 30px; color: #eaffff; text-shadow: var(--glow); }
.page-cockpit .login-box h1 small,
.page-cockpit .phone h1 small { font-size: 22px; color: #9fdcf0; }
.page-cockpit .login-box p,
.page-cockpit .phone .sub { margin: 0; color: var(--muted); }
.page-cockpit .login-box label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.page-cockpit .error { color: var(--bad); min-height: 1.2em; }
.page-cockpit .toasts { position: fixed; right: 18px; bottom: 90px; z-index: 4000; display: flex; flex-direction: column; gap: 8px; }
.page-cockpit .toast { padding: 10px 16px; border: 1px solid var(--line-strong); background: rgba(3,16,30,.95); border-radius: 8px; box-shadow: var(--glow); animation: fade .3s; }
.page-cockpit .toast.warn { border-color: var(--warn); }
.page-cockpit .toast.bad { border-color: var(--bad); }
.page-cockpit .phone-body { display: block; overflow: auto; padding: 18px; }
.page-cockpit .phone { max-width: 460px; margin: 6vh auto; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.page-cockpit .phone .notice { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.page-cockpit .phone .facts { margin: 6px 0; }
@media (max-width: 1100px) {
html:has(> body.page-cockpit),
body.page-cockpit { height: auto; min-height: 100%; }
body.page-cockpit { overflow-x: hidden; overflow-y: auto; grid-template-rows: auto auto auto; padding: 0 10px 12px; }
.page-cockpit .layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.page-cockpit .right { min-width: 0; }
.page-cockpit .right { min-height: auto; }
.page-cockpit .map-wrap { height: 60vh; }
.page-cockpit .nav-card { flex: none; order: -1; }
.page-cockpit .nav-search input { font-size: 16px; }
.page-cockpit .suggest-item { padding: 11px 10px; }
.page-cockpit .suggest { max-height: 38vh; }
.page-cockpit .nav-steps { max-height: 40vh; flex: none; }
.page-cockpit .nav-pane { flex: none; }
.page-cockpit .live-hud { bottom: 84px; left: 10px; max-width: calc(100% - 74px); gap: 10px; padding: 6px 10px; }
.page-cockpit .hud-speed strong { font-size: 22px; }
.page-cockpit .live-source select,
.page-cockpit .live-sim select { font-size: 16px; }
.page-cockpit .poi-list { max-height: 55vh; flex: none; }
.page-cockpit .poi-opts select { font-size: 16px; }
.page-cockpit .poi-chip { padding: 7px 11px; }
.page-cockpit .poi-actions .btn.small { padding: 8px 12px; }
.page-cockpit .wt-popup .maplibregl-popup-close-button { width: 36px; height: 36px; }
.page-cockpit .history-card { flex: none; }
.page-cockpit .topbar { gap: 10px; min-height: 56px; }
.page-cockpit .brand { min-width: 0; }
.page-cockpit .brand-name { font-size: 22px; letter-spacing: 2px; }
.page-cockpit .brand-name small { font-size: 16px; }
.page-cockpit .brand-logo { width: 34px; height: 34px; }
.page-cockpit .top-right { margin-left: auto; gap: 6px; }
.page-cockpit .clock { display: none; }
.page-cockpit .map-tools { gap: 8px; right: 10px; }
.page-cockpit .tool { width: 40px; height: 40px; }
.page-cockpit .sim-banner { top: auto; bottom: 46px; left: 10px; transform: none; max-width: calc(100% - 76px); font-size: 11px; letter-spacing: .5px; padding: 5px 12px; }
.page-cockpit .layer-pop { right: 10px; }
.page-cockpit .sidebar { display: none; }
.page-cockpit .topnav { display: none; }
.page-cockpit .statbar { grid-template-columns: repeat(2, 1fr); }
}
.page-cockpit :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.page-cockpit .sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-cockpit .panel { border-radius: var(--radius); }
.page-cockpit .cockpit-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.page-cockpit .cockpit-title strong { font-size: 22px; font-weight: 600; letter-spacing: 2px; color: var(--cyan); text-shadow: var(--glow); white-space: nowrap; }
.page-cockpit .cockpit-title em { font-style: normal; color: var(--text); }
.page-cockpit .cockpit-title span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-cockpit .svc-strip { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-cockpit .svc {
  --c: var(--muted); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,27,41,.8); min-width: 112px;
}
.page-cockpit .svc-dot { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.page-cockpit .svc-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.page-cockpit .svc-state { grid-column: 2; font-size: 11.5px; color: var(--c); line-height: 1.1; }
.page-cockpit .svc-ms { position: absolute; }
.page-cockpit .svc[data-state="online"] { --c: var(--ok); border-color: rgba(0,230,138,.45); }
.page-cockpit .svc[data-state="error"],
.page-cockpit .svc[data-state="timeout"] { --c: var(--warn); }
.page-cockpit .svc[data-state="offline"] { --c: var(--bad); }
.page-cockpit .svc[data-state="unconfigured"],
.page-cockpit .svc[data-state="unknown"] { --c: var(--muted); }
.page-cockpit .svc { position: relative; }
.page-cockpit .svc-ms { right: 10px; top: 5px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-cockpit .svc[data-state="unknown"] .svc-dot { box-shadow: none; opacity: .6; }
.page-cockpit .top-right { margin-left: 0; }
.page-cockpit .side-item .soon { margin-left: auto; font-size: 10.5px; letter-spacing: .6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.page-cockpit .side-item.active { border-color: var(--cyan); }
.page-cockpit .compass {
  position: absolute; left: 14px; top: 14px; z-index: 700; width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(3,11,20,.88); color: var(--cyan); box-shadow: var(--glow);
}
.page-cockpit .compass svg { width: 36px; height: 36px; grid-area: 1 / 1; }
.page-cockpit .compass b { grid-area: 1 / 1; font-size: 10px; align-self: start; margin-top: 1px; color: var(--text); }
.page-cockpit .compass #compass-needle { transform-origin: 20px 20px; }
.page-cockpit .compass .cn { fill: var(--cyan); stroke: none; }
.page-cockpit .compass .cs { fill: var(--muted); stroke: none; opacity: .7; }
.page-cockpit .compass:hover { background: rgba(0,229,255,.18); }
.page-cockpit .cp-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3,11,20,.55); }
.page-cockpit .cp-h { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); }
.page-cockpit .live-man { border-color: var(--line-strong); box-shadow: inset 0 0 18px rgba(0,229,255,.07); }
.page-cockpit .live-man-row { display: flex; gap: 12px; align-items: center; min-height: 56px; }
.page-cockpit .live-man-row strong { display: block; font-size: 19px; line-height: 1.2; }
.page-cockpit .live-man-row small { color: var(--muted); font-size: 13px; }
.page-cockpit .live-man .man-ico { width: 52px; height: 52px; font-size: 32px; }
.page-cockpit .live-stats strong { font-size: 17px; }
.page-cockpit .live-stats div { background: rgba(3,11,20,.55); }
.page-cockpit .speedo-card { padding: 6px 12px 10px; }
.page-cockpit .speedo { --pct: 0; position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.page-cockpit .speedo-svg { display: block; width: 100%; height: auto; overflow: visible; }
.page-cockpit .speedo-track,
.page-cockpit .speedo-arc { fill: none; stroke-width: 11; stroke-linecap: round; }
.page-cockpit .speedo-track { stroke: rgba(0,229,255,.13); }
.page-cockpit .speedo-arc { stroke: url(#speedo-grad); stroke-dasharray: calc(var(--pct) * 1) 100; transition: stroke-dasharray .55s ease-out; filter: drop-shadow(0 0 4px rgba(0,229,255,.55)); }
.page-cockpit .speedo .tick { stroke: rgba(234,251,255,.55); stroke-width: 1.5; }
.page-cockpit .speedo .tick.hot { stroke: var(--violet); }
.page-cockpit .speedo .tick-label { fill: var(--muted); font-size: 9.5px; text-anchor: middle; stroke: none; }
.page-cockpit .speedo .tick-label.hot { fill: #c9a0f7; }
.page-cockpit .speedo-read { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; line-height: 1; }
.page-cockpit .speedo-read strong { display: block; font-size: 54px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(0,229,255,.4); }
.page-cockpit .speedo-read small { font-size: 14px; color: var(--muted); }
.page-cockpit .trip-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 8px; font-size: 13px; }
.page-cockpit .trip-dl dt { color: var(--muted); }
.page-cockpit .trip-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.page-cockpit .trip-progress { height: 9px; border-radius: 999px; background: rgba(0,229,255,.12); overflow: hidden; }
.page-cockpit .trip-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .5s ease-out; }
.page-cockpit .trip-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.page-cockpit .voice-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page-cockpit .voice-toggle { min-height: 44px; font-size: 14px; }
.page-cockpit .voice-toggle.on { border-color: var(--ok); background: rgba(0,230,138,.2); color: var(--text); }
.page-cockpit .live-voice-line { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3,11,20,.55); font-size: 12.5px; overflow-wrap: anywhere; }
.page-cockpit .btn { min-height: 36px; }
.page-cockpit .btn.primary { border-color: var(--cyan); }
.page-cockpit .fold { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3,11,20,.45); padding: 0 12px; }
.page-cockpit .fold > summary { cursor: pointer; padding: 10px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .6px; color: var(--cyan); list-style: none; }
.page-cockpit .fold > summary::-webkit-details-marker { display: none; }
.page-cockpit .fold > summary::after { content: "▾"; color: var(--muted); margin-left: 8px; transition: transform .2s; }
.page-cockpit .fold:not([open]) > summary::after { transform: rotate(-90deg); }
.page-cockpit .fold[open] { padding-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.page-cockpit .fold > summary .gps-sum { margin-left: auto; font-weight: 400; color: var(--text); font-size: 12.5px; }
.page-cockpit .live-sim { border-color: rgba(255,176,32,.55); border-style: dashed; }
.page-cockpit .live-sim > summary { color: var(--sim); }
.page-cockpit .sim-source { margin: 0; font-size: 12.5px; color: var(--muted); }
.page-cockpit .sim-source strong { color: var(--text); font-weight: 500; }
.page-cockpit .live-sim .btn-row .btn { flex: 1; }
.page-cockpit .seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.page-cockpit .seg button { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(3,11,20,.8); color: var(--text); font-weight: 600; }
.page-cockpit .seg button[aria-checked="true"] { background: rgba(0,229,255,.28); border-color: var(--cyan); box-shadow: var(--glow); }
.page-cockpit .sim-acc { flex-direction: row; align-items: center; }
.page-cockpit .sim-acc select { width: auto; min-width: 100px; }
.page-cockpit .soon-note { margin: 0; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
@media (max-width: 1500px) {
.page-cockpit .cockpit-title span { display: none; }
.page-cockpit .svc { min-width: 0; }
}
@media (max-width: 1250px) {
.page-cockpit .brand-name small { display: none; }
.page-cockpit .brand { min-width: 0; }
}
@media (max-width: 1100px) {
.page-cockpit .topbar { flex-wrap: wrap; row-gap: 6px; padding-top: 6px; }
.page-cockpit .cockpit-title strong { font-size: 16px; letter-spacing: 1px; }
.page-cockpit .svc-strip { order: 5; flex-basis: 100%; margin: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
.page-cockpit .svc { flex: none; }
.page-cockpit .map-wrap { height: 52vh; }
.page-cockpit .speedo { max-width: 280px; }
.page-cockpit .live-man-row strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
.page-cockpit *,
.page-cockpit *::before,
.page-cockpit *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.page-cockpit .svc { grid-template-columns: auto 1fr auto; }
.page-cockpit .svc-name { grid-column: 2; grid-row: 1; }
.page-cockpit .svc-ms { position: static; grid-column: 3; grid-row: 1; margin-left: 8px; justify-self: end; }
.page-cockpit .svc-state { grid-column: 2 / 4; grid-row: 2; }
.page-cockpit .cp-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.page-cockpit .layout {
  grid-template-columns: clamp(200px, 14vw, 236px) minmax(0, 1fr) clamp(340px, 24vw, 390px);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "side map right";
}
.page-cockpit .sidebar { grid-area: side; overflow: auto; }
.page-cockpit .map-wrap { grid-area: map; }
.page-cockpit .right { grid-area: right; min-width: 0; }
.page-cockpit .cockpit-band,
.page-cockpit .cockpit-tabs { display: none; }
.page-cockpit .layout.cockpit {
  grid-template-rows: minmax(190px, 1fr) auto auto;
  grid-template-areas: "side map right" "side band right" "side tabs tabs";
}
.page-cockpit .layout.cockpit .cockpit-band {
  display: grid; grid-area: band; min-height: 0; height: clamp(170px, 24vh, 225px);
  grid-template-columns: minmax(230px, .95fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px;
}
.page-cockpit .layout.cockpit .cockpit-tabs { display: grid; grid-area: tabs; grid-template-columns: 3fr 1fr 1fr; gap: 10px; }
.page-cockpit .band-card { padding: 10px 14px; min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.page-cockpit .band-card .cp-h { flex: none; }
.page-cockpit .band-card.speedo-card { padding: 8px 10px 6px; justify-content: center; }
.page-cockpit .band-card .speedo { width: 100%; height: 100%; max-width: none; margin: 0; min-height: 0; }
.page-cockpit .band-card .speedo-svg { width: 100%; height: 100%; }
.page-cockpit .band-card .speedo-read { bottom: 3%; }
.page-cockpit .band-card .speedo-read strong { font-size: clamp(34px, 6vh, 58px); }
.page-cockpit .band-card .speedo-read small { font-size: 13px; }
.page-cockpit .band-card .speedo .tick-label { font-size: 10px; }
.page-cockpit .trip-dl { grid-template-columns: auto minmax(0, 1fr); }
.page-cockpit .trip-dl dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-cockpit .trip .trip-dl { font-size: 14px; gap: 5px 14px; }
.page-cockpit .trip .trip-dl dd { color: var(--text); }
.page-cockpit .trip-dl #trip-state,
.page-cockpit #trip-state { color: var(--ok); }
.page-cockpit .progress-big { display: flex; align-items: baseline; gap: 4px; line-height: 1; margin-bottom: 8px; }
.page-cockpit .progress-big strong { font-size: clamp(30px, 5vh, 46px); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(0,229,255,.35); }
.page-cockpit .progress-big small { font-size: 16px; color: var(--muted); }
.page-cockpit .progress-card .trip-progress { height: 12px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.page-cockpit .progress-card .trip-dl { margin-bottom: 0; }
.page-cockpit .progress-card .trip-note { margin-top: auto; }
.page-cockpit .cockpit-tabs .nav-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; border: 0; background: none; }
.page-cockpit .cockpit-tabs .nav-tab {
  min-height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  color: var(--text); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.page-cockpit .cockpit-tabs .nav-tab:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(0,229,255,.1); }
.page-cockpit .cockpit-tabs .nav-tab.active { border-color: var(--cyan); color: #fff; background: linear-gradient(180deg, rgba(0,229,255,.28), rgba(0,229,255,.08)); box-shadow: var(--glow), inset 0 0 14px rgba(0,229,255,.18); }
.page-cockpit .cockpit-tabs .nav-tab:disabled { opacity: .5; cursor: not-allowed; }
.page-cockpit .cockpit-tabs .soon { font-size: 10.5px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.page-cockpit .side-item .soon.on { color: var(--cyan); border-color: var(--cyan); }
.page-cockpit .view-toggle { position: absolute; left: 70px; top: 14px; z-index: 700; display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(3,11,20,.88); box-shadow: var(--glow); }
.page-cockpit .view-toggle button { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text); font-size: 13px; font-weight: 600; }
.page-cockpit .view-toggle button[aria-pressed="true"] { background: rgba(0,229,255,.28); border-color: var(--cyan); }
.page-cockpit .view-toggle button:disabled { opacity: .45; cursor: not-allowed; }
.page-cockpit .sys-chip { min-width: 0; grid-template-columns: auto 1fr; }
.page-cockpit .sys-chip .svc-state { grid-column: 2; }
.page-cockpit .sys-card { margin-top: auto; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3,11,20,.55); }
.page-cockpit .sys-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.page-cockpit .sys-row { --c: var(--muted); display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.page-cockpit .sys-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); }
.page-cockpit .sys-row strong { font-weight: 500; color: var(--c); font-size: 12.5px; }
.page-cockpit .sys-row[data-state="ok"] { --c: var(--ok); }
.page-cockpit .sys-row[data-state="ready"] { --c: var(--cyan); }
.page-cockpit .sys-row[data-state="warn"] { --c: var(--warn); }
.page-cockpit .sys-row[data-state="off"],
.page-cockpit .sys-row[data-state="unknown"] { --c: var(--muted); }
.page-cockpit .sys-row[data-state="off"] .sys-dot,
.page-cockpit .sys-row[data-state="unknown"] .sys-dot { box-shadow: none; opacity: .7; }
.page-cockpit .sys-row[data-state="bad"] { --c: var(--bad); }
.page-cockpit .nav-card { padding: 12px 14px; gap: 8px; }
.page-cockpit .live-run { margin: 0; }
.page-cockpit .fold-inner { border-top: 1px dashed var(--line); padding-top: 6px; }
.page-cockpit .fold-inner > summary { cursor: pointer; min-height: 32px; font-size: 12.5px; color: var(--muted); }
.page-cockpit .live-sim .sim-row { margin: 0; }
.page-cockpit .live-sim .btn-row .btn { min-height: 40px; }
@media (max-width: 1100px) {
.page-cockpit .layout,
.page-cockpit .layout.cockpit { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; }
.page-cockpit .map-wrap { order: 1; grid-area: auto; }
.page-cockpit .layout.cockpit .cockpit-tabs { order: 2; grid-area: auto; grid-template-columns: 1fr 1fr; }
.page-cockpit .layout.cockpit .cockpit-tabs .nav-tabs { grid-column: 1 / -1; }
.page-cockpit .right { order: 3; grid-area: auto; }
.page-cockpit .layout.cockpit .cockpit-band { order: 4; grid-area: auto; height: auto; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.page-cockpit .band-card.speedo-card { min-height: 170px; }
.page-cockpit .band-card .speedo { max-width: 300px; margin: 0 auto; height: auto; }
.page-cockpit .band-card .speedo-svg { height: auto; }
.page-cockpit .nav-card { flex: none; order: -1; }
.page-cockpit .view-toggle { left: 10px; top: 58px; }
.page-cockpit .view-toggle button { min-height: 44px; }
.page-cockpit .sidebar { display: none; }
}
.page-cockpit .nav-card > header { gap: 10px; }
.page-cockpit .nav-card > header h3 { flex: 1; }
.page-cockpit .nav-card .live-state { margin-right: 2px; }
.page-cockpit .live-man { padding: 8px 12px; }
.page-cockpit .live-man .cp-h { margin-bottom: 2px; }
.page-cockpit .live-man-row { min-height: 46px; }
.page-cockpit .live-man .man-ico { width: 44px; height: 44px; font-size: 28px; filter: drop-shadow(0 0 5px rgba(0,229,255,.5)); }
.page-cockpit .live-man-row strong { font-size: 18px; }
.page-cockpit .live-stats div { padding: 5px 8px; }
.page-cockpit .live-source select { padding: 7px 9px; }
.page-cockpit .live-source { gap: 0; }
.page-cockpit .btn { min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
.page-cockpit .voice-toggle { min-height: 36px; font-size: 14px; }
.page-cockpit .live-voice-line { padding: 4px 10px; }
.page-cockpit .fold > summary { min-height: 38px; padding: 6px 0; }
.page-cockpit .fold[open] { padding-bottom: 8px; gap: 8px; }
.page-cockpit .live-sim .btn-row .btn { min-height: 36px; }
.page-cockpit .seg button { min-height: 34px; }
.page-cockpit .sim-row { font-size: 12.5px; }
.page-cockpit .sim-source { font-size: 12px; }
@media (max-width: 1100px) {
.page-cockpit .btn,
.page-cockpit .voice-toggle,
.page-cockpit .seg button,
.page-cockpit .live-sim .btn-row .btn { min-height: 44px; }
.page-cockpit .fold > summary { min-height: 44px; }
}
.page-cockpit .tr-points { display: grid; gap: 8px; }
.page-cockpit #tr-when,
.page-cockpit #tr-arrive { width: 100%; background: rgba(4,20,36,.9); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; color-scheme: dark; }
.page-cockpit .tr-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.page-cockpit .tr-card { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; cursor: pointer; background: rgba(4,20,36,.55); }
.page-cockpit .tr-card:hover,
.page-cockpit .tr-card:focus-visible { border-color: var(--cyan); outline: none; }
.page-cockpit .tr-card.active { border-color: var(--cyan); background: rgba(0,229,255,.09); box-shadow: 0 0 14px rgba(0,229,255,.18); }
.page-cockpit .tr-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-cockpit .tr-card-head strong { font-size: 18px; color: var(--text); margin-right: auto; }
.page-cockpit .tr-times { color: var(--text); font-size: 13px; }
.page-cockpit .tr-state { font-size: 12px; }
.page-cockpit .tr-state.ok { color: #00e68a; }
.page-cockpit .tr-state.warn { color: #ffb020; }
.page-cockpit .tr-state.bad { color: #ff5263; }
.page-cockpit .tr-state.muted { color: var(--muted); }
.page-cockpit .tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.page-cockpit .tr-chip { font-size: 12px; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--line, #00e5ff) 55%, #04121f); border: 1px solid var(--line, #00e5ff); }
.page-cockpit .tr-walk { font-size: 12px; color: var(--muted); }
.page-cockpit .tr-detail { margin-top: 10px; border: 1px solid rgba(168,85,247,.4); border-radius: 12px; padding: 10px; }
.page-cockpit .tr-detail:empty { display: none; }
.page-cockpit .tr-detail h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a855f7; font-weight: 600; }
.page-cockpit .tr-leg { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 4px 0; }
.page-cockpit .tr-leg-time { font-weight: 700; color: var(--text); font-size: 13px; }
.page-cockpit .tr-leg-body { display: grid; gap: 2px; font-size: 13px; color: var(--text); justify-items: start; }
.page-cockpit .tr-track { color: var(--cyan); font-size: 12px; }
.page-cockpit .tr-warning { color: #ffb020; font-size: 11px; }
.page-cockpit .tr-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.page-cockpit .tr-deps { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.page-cockpit .tr-dep { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; font-size: 13px; padding: 2px 0; }
.page-cockpit .tr-dep .bad { color: #ff5263; }
.page-cockpit .muted { color: var(--muted); }
.page-cockpit .small { font-size: 11px; }
.page-cockpit .nav-pane#nav-pane-transit { overflow-y: auto; padding-right: 2px; }
.page-cockpit .nav-pane#nav-pane-transit > * { flex: none; }
.page-cockpit .nav-tabs,
.page-cockpit .cockpit-tabs .nav-tabs { grid-template-columns: repeat(4, 1fr); }
.page-cockpit .tr-sources { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.page-cockpit .tr-sources summary { cursor: pointer; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-cockpit .tr-sources label { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.page-cockpit .tr-sources select { background: rgba(4,20,36,.9); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; }
.page-cockpit .tr-src { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.page-cockpit .tr-src > .muted { grid-column: 1 / -1; }
.page-cockpit .tr-source { margin: 4px 0; display: grid; gap: 1px; font-size: 12px; color: var(--text); }
.page-cockpit .tr-source.warn > span:first-child { color: #ffb020; }
.page-cockpit .tr-sources h4 { margin: 8px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a855f7; }
.page-cockpit #tr-search.btn.primary { background: var(--grad-primary); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-weight: 700; }
.page-cockpit #tr-search.btn.primary:disabled { background: rgba(11,25,48,.9); color: var(--muted); border-color: var(--line); }
.page-cockpit a.side-item { text-decoration: none; color: inherit; }
body.page-cockpit { background:radial-gradient(1100px 700px at 90% -10%,rgba(138,43,226,.15),transparent 65%),radial-gradient(900px 620px at -10% 100%,rgba(0,212,255,.11),transparent 65%),var(--bg); }
.page-cockpit :where(button,a,input,select,textarea,[role="button"]):focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
.page-cockpit :where(button,a,input,select,textarea) { -webkit-tap-highlight-color:transparent; }
.page-cockpit ::selection { background:rgba(0,212,255,.3); color:white; }
.page-cockpit .panel { border-color:var(--line); border-radius:16px; background:linear-gradient(160deg,rgba(15,35,63,.94),rgba(8,22,43,.95) 72%); box-shadow:0 14px 34px rgba(0,0,0,.21),inset 0 1px 0 rgba(255,255,255,.035); }
.page-cockpit .panel::before,
.page-cockpit .panel::after { filter:drop-shadow(0 0 3px rgba(0,212,255,.45)); }
.page-cockpit .brand-logo { filter:drop-shadow(0 0 8px rgba(0,212,255,.65)); }
.page-cockpit .side-item,
.page-cockpit .chip,
.page-cockpit .btn,
.page-cockpit .tool { transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease; }
.page-cockpit .side-item:hover:not(:disabled) { background:rgba(0,212,255,.09); border-color:rgba(0,212,255,.26); }
.page-cockpit .side-item.active { color:#fff; background:var(--grad-active); border-color:rgba(196,230,255,.46); box-shadow:0 4px 18px rgba(0,143,255,.23),inset 0 1px 0 rgba(255,255,255,.19); }
.page-cockpit .side-item.active svg { color:white; }
.page-cockpit .btn { border-color:rgba(0,212,255,.43); background:rgba(7,24,44,.9); box-shadow:none; border-radius:12px; }
.page-cockpit .btn:hover:not(:disabled) { border-color:var(--cyan); background:rgba(0,212,255,.13); box-shadow:0 0 16px rgba(0,212,255,.12); }
.page-cockpit .btn.primary,
.page-cockpit #tr-search.btn.primary { color:white; background:var(--grad-primary); border:1px solid rgba(223,233,255,.36); box-shadow:0 6px 20px rgba(49,92,241,.18); font-weight:700; }
.page-cockpit .btn.primary:hover:not(:disabled),
.page-cockpit #tr-search.btn.primary:hover:not(:disabled) { background:linear-gradient(105deg,#00cef0,#478cff,#a642f3); box-shadow:0 8px 24px rgba(91,61,234,.27); }
.page-cockpit .btn.primary:disabled,
.page-cockpit #tr-search.btn.primary:disabled { background:rgba(11,25,48,.9); color:var(--muted); box-shadow:none; }
.page-cockpit .chip { border-color:rgba(0,212,255,.36); background:rgba(5,20,39,.9); }
.page-cockpit .chip:hover:not(.disabled) { background:rgba(0,212,255,.12); }
.page-cockpit #device-select,
.page-cockpit #tr-when,
.page-cockpit #tr-arrive,
.page-cockpit .tr-sources select { background:rgba(4,17,34,.95); border-color:rgba(0,212,255,.3); border-radius:10px; color:var(--text); }
.page-cockpit #device-select:focus,
.page-cockpit #tr-when:focus,
.page-cockpit #tr-arrive:focus,
.page-cockpit .tr-sources select:focus { outline:2px solid rgba(0,212,255,.5); outline-offset:2px; }
.page-cockpit .map-wrap,
.page-cockpit #map { background:#041324; }
.page-cockpit .tool { border-color:rgba(0,212,255,.52); border-radius:12px; background:rgba(4,20,38,.9); box-shadow:0 5px 15px rgba(0,0,0,.16); }
.page-cockpit .tool:hover { background:rgba(0,212,255,.16); box-shadow:0 0 18px rgba(0,212,255,.18); }
.page-cockpit .map-status { color:#ffe2e5; border-color:rgba(255,71,87,.9); background:rgba(53,5,17,.91); overflow-wrap:anywhere; }
.page-cockpit .wt-tip { width:max-content; max-width:min(280px,72vw); white-space:normal; overflow-wrap:break-word; }
.page-cockpit .tr-list { gap:9px; scrollbar-color:rgba(0,212,255,.32) transparent; }
.page-cockpit .tr-card { border-color:rgba(0,212,255,.25); border-radius:14px; background:linear-gradient(135deg,rgba(9,28,52,.94),rgba(7,20,41,.96)); transition:border-color .16s,background .16s,box-shadow .16s; }
.page-cockpit .tr-card:hover { border-color:rgba(0,212,255,.65); background:rgba(14,36,66,.96); }
.page-cockpit .tr-card.active { border-color:rgba(171,72,255,.95); background:linear-gradient(105deg,rgba(13,45,74,.94),rgba(45,22,81,.66)); box-shadow:inset 0 0 0 1px rgba(171,72,255,.12),0 0 19px rgba(138,43,226,.17); }
.page-cockpit .tr-card-head strong { font-size:clamp(18px,2vw,24px); font-variant-numeric:tabular-nums; }
.page-cockpit .tr-detail { background:rgba(8,19,41,.74); border-color:rgba(150,69,241,.52); border-radius:15px; }
.page-cockpit .tr-leg-body { min-width:0; overflow-wrap:anywhere; }
.page-cockpit .tr-leg-time { font-variant-numeric:tabular-nums; }
.page-cockpit .tr-sources { background:rgba(4,19,36,.55); border-color:rgba(0,212,255,.29); }
.page-cockpit .tr-source,
.page-cockpit .tr-src { overflow-wrap:anywhere; }
@media (forced-colors:active) {
.page-cockpit .panel,
.page-cockpit .tr-card,
.page-cockpit .btn,
.page-cockpit .tool { border:1px solid CanvasText; }
}
@media (max-width: 1100px) {
html:has(> body.page-cockpit) { --bottom-nav: calc(66px + env(safe-area-inset-bottom, 0px)); }
body.page-cockpit { padding-bottom: calc(var(--bottom-nav) + 12px); }
.page-cockpit .sidebar { display: block; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; border-radius: 0; background: rgba(3, 11, 23, .98); box-shadow: 0 -9px 26px rgba(0, 0, 0, .42); backdrop-filter: none; }
.page-cockpit .sidebar::before,
.page-cockpit .sidebar::after { display: none; }
.page-cockpit .sidebar .side-head,
.page-cockpit .sidebar .sys-card { display: none; }
.page-cockpit .sidebar .side-nav { flex-direction: row; gap: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.page-cockpit .sidebar .side-nav::-webkit-scrollbar { display: none; }
.page-cockpit .sidebar .side-item { flex: 0 0 auto; min-width: 66px; min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 4px; font-size: 10.5px; text-align: center; border-radius: 11px; }
.page-cockpit .sidebar .side-item svg { width: 21px; height: 21px; }
.page-cockpit .sidebar .side-item .soon { display: none; }
.page-cockpit .map-status { left: 10px; right: 64px; bottom: 84px; transform: none; max-width: none; font-size: 12px; }
}
.page-cockpit .map-status.info { color: var(--text); border-color: var(--cyan); background: rgba(3, 20, 36, .92); }
.page-cockpit .net-view {
  --nb-bg: #020a12; --nb-panel: #071a29; --nb-raise: #0b2435; --nb-cyan: #00e5ff; --nb-blue: #009dff; --nb-violet: #a855f7;
  --nb-ok: #00e68a; --nb-warn: #ffb020; --nb-bad: #ff5263; --nb-text: #eafbff; --nb-muted: #8db4c6; --nb-line: rgba(0, 229, 255, .22);
  position: fixed; z-index: 100; top: var(--net-top, 64px); left: var(--net-left, 14px); right: 14px; bottom: calc(var(--net-bottom, 0px) + 10px);
  overflow: auto; overscroll-behavior: contain; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(1100px 600px at 70% -10%, rgba(0, 157, 255, .12), transparent 60%), var(--nb-bg);
  border: 1px solid var(--nb-line); border-radius: 14px; color: var(--nb-text);
}
.page-cockpit .net-view .panel,
.page-cockpit .net-view .net-card { background: linear-gradient(180deg, rgba(11, 36, 53, .78), rgba(7, 26, 41, .86)); border: 1px solid var(--nb-line); border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 229, 255, .04), 0 8px 24px rgba(0, 0, 0, .35); }
.page-cockpit .net-view .muted { color: var(--nb-muted); }
.page-cockpit .net-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.page-cockpit .net-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.page-cockpit .net-logo { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--nb-cyan); stroke-width: 3; stroke-linecap: round; }
.page-cockpit .net-logo circle { fill: var(--nb-cyan); stroke: none; }
.page-cockpit .net-title-block { flex: 1 1 280px; min-width: 0; }
.page-cockpit .net-head h2 { margin: 0; font-size: 24px; letter-spacing: 1.5px; font-weight: 700; }
.page-cockpit .net-sub { margin: 2px 0 0; color: var(--nb-muted); }
.page-cockpit .net-router { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--nb-line); border-radius: 12px; background: rgba(7, 26, 41, .8); flex-wrap: wrap; }
.page-cockpit .net-router > svg { width: 52px; height: 34px; flex: none; fill: none; stroke: var(--nb-text); stroke-width: 2; stroke-linecap: round; }
.page-cockpit .net-router strong { display: block; font-size: 15px; }
.page-cockpit .net-router span { color: var(--nb-muted); font-size: 13px; }
.page-cockpit .net-router-state { display: grid; gap: 4px; justify-items: start; }
.page-cockpit .net-router-state small { color: var(--nb-muted); font-size: 12px; }
.page-cockpit .net-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; border: 1px solid var(--nb-line); color: var(--nb-muted); }
.page-cockpit .net-badge[data-state="online"] { color: var(--nb-ok); border-color: rgba(0, 230, 138, .6); background: rgba(0, 230, 138, .08); }
.page-cockpit .net-badge[data-state="offline"] { color: var(--nb-bad); border-color: rgba(255, 82, 99, .6); }
.page-cockpit .net-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--nb-line); background: rgba(0, 229, 255, .08); color: var(--nb-cyan); cursor: pointer; }
.page-cockpit .net-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.page-cockpit .net-iconbtn:hover { background: rgba(0, 229, 255, .18); }
.page-cockpit .net-head .btn { flex: none; min-height: 44px; padding: 8px 16px; }
.page-cockpit .net-collectors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.page-cockpit .net-collectors .svc { min-width: 0; }
.page-cockpit .net-collectors .svc[data-state="online"] { --c: var(--nb-ok); }
.page-cockpit .net-collectors .svc[data-state="unconfigured"] { --c: var(--nb-warn); }
.page-cockpit .net-sync { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 14px; border: 1px solid var(--nb-line); border-radius: 10px; background: rgba(7, 26, 41, .7); min-height: 44px; }
.page-cockpit #net-sync-text { flex: 1 1 220px; min-width: 0; }
.page-cockpit .net-sync-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nb-muted); flex: none; }
.page-cockpit .net-sync[data-state="ok"] .net-sync-dot { background: var(--nb-ok); box-shadow: 0 0 8px var(--nb-ok); }
.page-cockpit .net-sync[data-state="loading"] .net-sync-dot { background: var(--nb-cyan); animation: net-pulse 1.1s ease-in-out infinite; }
.page-cockpit .net-sync[data-state="stale"] .net-sync-dot,
.page-cockpit .net-sync[data-state="unconfigured"] .net-sync-dot { background: var(--nb-warn); }
.page-cockpit .net-sync[data-state="error"] .net-sync-dot,
.page-cockpit .net-sync[data-state="auth"] .net-sync-dot,
.page-cockpit .net-sync[data-state="unreachable"] .net-sync-dot { background: var(--nb-bad); }
.page-cockpit .net-sync[data-state="stale"] { border-color: rgba(255, 176, 32, .5); }
.page-cockpit .net-sync[data-state="error"],
.page-cockpit .net-sync[data-state="auth"],
.page-cockpit .net-sync[data-state="unreachable"] { border-color: rgba(255, 82, 99, .5); }
.page-cockpit .net-sync progress { flex: 1 1 160px; max-width: 320px; height: 8px; accent-color: var(--nb-cyan); }
.page-cockpit .net-sync .btn { flex: none; min-height: 44px; }
.page-cockpit .net-notice { margin: 0; padding: 10px 14px; border: 1px solid var(--nb-warn); border-radius: 10px; background: rgba(60, 40, 0, .5); color: #ffe9b0; }
.page-cockpit .net-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--nb-line); }
.page-cockpit .net-tabs [role=tab] { min-height: 44px; padding: 8px 18px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--nb-muted); font: inherit; cursor: pointer; }
.page-cockpit .net-tabs [role=tab][aria-selected="true"] { color: var(--nb-cyan); border-bottom-color: var(--nb-cyan); text-shadow: 0 0 10px rgba(0, 229, 255, .4); }
.page-cockpit .net-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-cockpit .net-stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--nb-line); border-radius: 12px; background: linear-gradient(180deg, #0b2435, #071a29); }
.page-cockpit .net-stat > svg { width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 12px; fill: none; stroke: var(--nb-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(0, 229, 255, .1); }
.page-cockpit .net-stat.ok > svg { stroke: var(--nb-ok); background: rgba(0, 230, 138, .1); }
.page-cockpit .net-stat.violet > svg { stroke: var(--nb-violet); background: rgba(168, 85, 247, .12); }
.page-cockpit .net-stat strong { display: block; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.page-cockpit .net-stat span { color: var(--nb-muted); font-size: 13px; }
.page-cockpit .net-stats[data-load="loading"] strong { color: transparent; position: relative; min-width: 3ch; display: inline-block; border-radius: 6px; background: linear-gradient(90deg, rgba(0, 229, 255, .08), rgba(0, 229, 255, .25), rgba(0, 229, 255, .08)); background-size: 200% 100%; animation: net-shimmer 1.4s linear infinite; }
.page-cockpit .net-stats[data-load="stale"] { opacity: .75; }
.page-cockpit .net-grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 12px; align-items: start; }
.page-cockpit .net-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.page-cockpit .net-card { padding: 16px; display: grid; gap: 10px; min-width: 0; }
.page-cockpit .net-card h3 { margin: 0; font-size: 17px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.page-cockpit .net-card h3 small,
.page-cockpit .net-card .muted { font-size: 12px; font-weight: 400; }
.page-cockpit .net-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page-cockpit .net-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-cockpit .net-toolbar h3 { flex: 1 1 200px; }
.page-cockpit .net-view input[type=search],
.page-cockpit .net-view select { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--nb-line); background: rgba(2, 10, 18, .8); color: var(--nb-text); font: inherit; }
.page-cockpit .net-view input[type=search] { flex: 1 1 200px; min-width: 0; }
.page-cockpit .net-view select:disabled { opacity: .5; }
.page-cockpit .net-table-wrap { position: relative; max-height: 52vh; overflow: auto; border: 1px solid var(--nb-line); border-radius: 10px; }
.page-cockpit .net-table-wrap table { width: 100%; border-collapse: collapse; }
.page-cockpit .net-table-wrap th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--nb-muted); background: #0a2233; }
.page-cockpit .net-table-wrap td { padding: 9px 12px; border-top: 1px solid rgba(0, 229, 255, .08); overflow-wrap: anywhere; vertical-align: middle; }
.page-cockpit .net-table-wrap td.m { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
.page-cockpit .net-table-wrap td.na,
.page-cockpit .net-table-wrap .nm.na,
.page-cockpit .net-table-wrap td.na .cn { color: var(--nb-muted); }
.page-cockpit .net-table-wrap tbody tr { cursor: pointer; }
.page-cockpit .net-table-wrap tbody tr:hover { background: rgba(0, 229, 255, .06); }
.page-cockpit .net-table-wrap tbody tr.sel { background: rgba(0, 157, 255, .2); box-shadow: inset 3px 0 0 var(--nb-cyan); }
.page-cockpit .net-table-wrap tbody tr:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--nb-cyan); }
.page-cockpit .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--nb-muted); }
.page-cockpit .dot[data-state="ok"] { background: var(--nb-ok); box-shadow: 0 0 6px var(--nb-ok); }
.page-cockpit .dot[data-state="off"] { background: #6b8493; }
.page-cockpit .dot[data-state="unknown"] { background: var(--nb-warn); }
.page-cockpit .cico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; fill: none; stroke: var(--nb-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-cockpit .net-empty { padding: 28px 12px; text-align: center; margin: 0; }
.page-cockpit #net-more { min-height: 44px; justify-self: start; flex: none; }
.page-cockpit #net-devices-err:empty { display: none; }
.page-cockpit .net-spinner { display: none; position: absolute; inset: 0; z-index: 2; background: rgba(2, 10, 18, .6); }
.page-cockpit .net-spinner::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(0, 229, 255, .25); border-top-color: var(--nb-cyan); animation: net-spin .9s linear infinite; }
.page-cockpit .net-table-wrap.loading .net-spinner { display: block; }
.page-cockpit .net-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.page-cockpit .net-seg { display: inline-flex; border: 1px solid var(--nb-line); border-radius: 10px; overflow: hidden; }
.page-cockpit .net-seg button { min-height: 44px; padding: 6px 14px; border: 0; background: none; color: var(--nb-muted); font: inherit; cursor: pointer; }
.page-cockpit .net-seg button[aria-pressed="true"] { background: rgba(0, 229, 255, .18); color: var(--nb-cyan); }
.page-cockpit .net-seg button:disabled { opacity: .4; cursor: not-allowed; }
.page-cockpit .net-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.page-cockpit .net-rates > div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nb-line); display: grid; gap: 2px; background: rgba(2, 10, 18, .4); }
.page-cockpit .net-rates span { font-size: 12px; color: var(--nb-muted); }
.page-cockpit .net-rates strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.page-cockpit .net-rates .down strong { color: var(--nb-cyan); }
.page-cockpit .net-rates .up strong { color: var(--nb-violet); }
.page-cockpit .net-chart-wrap { position: relative; min-height: 120px; }
.page-cockpit .net-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.page-cockpit .net-chart .grid { stroke: rgba(0, 229, 255, .12); stroke-width: 1; }
.page-cockpit .net-chart text { stroke: none; font-weight: 400; }
.page-cockpit .net-chart .ax { fill: var(--nb-muted); font-size: 11px; }
.page-cockpit .net-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; }
.page-cockpit .net-chart .ln.down { stroke: var(--nb-cyan); }
.page-cockpit .net-chart .ln.up { stroke: var(--nb-violet); }
.page-cockpit .net-chart .area { stroke: none; }
.page-cockpit .net-chart .area.down { fill: rgba(0, 229, 255, .14); }
.page-cockpit .net-chart .area.up { fill: rgba(168, 85, 247, .14); }
.page-cockpit .net-chart .cursor { stroke: rgba(234, 251, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.page-cockpit .net-chart .dot { stroke: var(--nb-bg); stroke-width: 1.5; margin: 0; }
.page-cockpit .net-chart .dot.down { fill: var(--nb-cyan); }
.page-cockpit .net-chart .dot.up { fill: var(--nb-violet); }
.page-cockpit .net-tip { position: absolute; top: 4px; z-index: 3; display: grid; gap: 2px; padding: 6px 10px; border-radius: 8px; font-size: 12px; pointer-events: none; background: rgba(2, 10, 18, .94); border: 1px solid var(--nb-line); white-space: nowrap; }
.page-cockpit .net-tip .down { color: var(--nb-cyan); }
.page-cockpit .net-tip .up { color: var(--nb-violet); }
.page-cockpit .net-wan-empty { margin: 0; padding: 40px 0; text-align: center; font-size: 15px; }
.page-cockpit .net-legend { margin: 0; font-size: 12px; color: var(--nb-muted); display: flex; gap: 6px; align-items: center; }
.page-cockpit .net-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.page-cockpit .net-legend i:first-child { margin-left: 0; }
.page-cockpit .net-legend i.down { background: var(--nb-cyan); }
.page-cockpit .net-legend i.up { background: var(--nb-violet); }
.page-cockpit #net-wan-note:empty { display: none; }
.page-cockpit .net-totals,
.page-cockpit #net-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.page-cockpit .net-totals dt,
.page-cockpit #net-detail dt { color: var(--nb-muted); }
.page-cockpit .net-totals dd,
.page-cockpit #net-detail dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.page-cockpit #net-detail h4 { margin: 0 0 8px; font-size: 16px; color: var(--nb-cyan); }
.page-cockpit #net-detail p { margin: 0; }
.page-cockpit .net-conn { display: grid; gap: 10px; }
.page-cockpit .conn-row { display: grid; grid-template-columns: 90px auto 1fr; gap: 10px; align-items: center; }
.page-cockpit .conn-row b { font-variant-numeric: tabular-nums; }
.page-cockpit .conn-row .track { height: 8px; border-radius: 4px; background: rgba(0, 229, 255, .1); overflow: hidden; }
.page-cockpit .conn-row .bar { display: block; height: 100%; background: linear-gradient(90deg, var(--nb-blue), var(--nb-cyan)); transition: width .4s ease; }
.page-cockpit .net-mapgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.page-cockpit .net-mapside { display: grid; gap: 12px; }
.page-cockpit .net-map-frame { position: relative; height: clamp(360px, 56vh, 640px); border-radius: 10px; overflow: hidden; border: 1px solid var(--nb-line); background: #020a12; }
.page-cockpit .net-worldmap { position: absolute; inset: 0; }
.page-cockpit .net-layers { position: absolute; left: 10px; top: 10px; z-index: 2; margin: 0; padding: 8px 10px; border: 1px solid var(--nb-line); border-radius: 10px; background: rgba(2, 10, 18, .85); display: grid; gap: 2px; font-size: 13px; }
.page-cockpit .net-layers legend { padding: 0 4px; color: var(--nb-muted); font-size: 12px; }
.page-cockpit .net-layers label,
.page-cockpit .net-check { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.page-cockpit .net-check { min-height: 44px; font-size: 13px; color: var(--nb-muted); }
.page-cockpit .net-layers input,
.page-cockpit .net-check input { width: 18px; height: 18px; accent-color: var(--nb-cyan); }
.page-cockpit .net-legend-box { position: absolute; left: 10px; bottom: 10px; z-index: 2; margin: 0; padding: 8px 12px; list-style: none; display: grid; gap: 4px; font-size: 12px; border: 1px solid var(--nb-line); border-radius: 10px; background: rgba(2, 10, 18, .85); }
.page-cockpit .net-legend-box i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.page-cockpit .c-active { background: #00e5ff; }
.page-cockpit .c-high { background: #a855f7; }
.page-cockpit .c-cdn { background: #59b8ff; }
.page-cockpit .c-risk { background: #ff5263; }
.page-cockpit .net-map-banner,
.page-cockpit .net-banner-top,
.page-cockpit .net-map-status { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 10px; text-align: center; max-width: 90%; }
.page-cockpit .net-map-banner { top: 50%; transform: translate(-50%, -50%); font-size: 16px; background: rgba(2, 10, 18, .88); border: 1px solid var(--nb-line); }
.page-cockpit .net-banner-top { top: 10px; background: rgba(60, 40, 0, .9); border: 1px solid var(--nb-warn); color: #ffe9b0; font-weight: 600; }
.page-cockpit .net-map-status { bottom: 10px; background: rgba(60, 6, 14, .85); border: 1px solid var(--nb-bad); font-size: 13px; }
.page-cockpit .net-flowlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.page-cockpit .net-filters { display: grid; gap: 8px; }
.page-cockpit .net-view button:focus-visible,
.page-cockpit .net-view input:focus-visible,
.page-cockpit .net-view select:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 1100px) {
.page-cockpit .net-grid,
.page-cockpit .net-mapgrid { grid-template-columns: minmax(0, 1fr); }
.page-cockpit .net-bottom { grid-template-columns: minmax(0, 1fr); }
.page-cockpit .net-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-cockpit .net-router { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.page-cockpit .net-spinner::after,
.page-cockpit .net-sync[data-state="loading"] .net-sync-dot,
.page-cockpit .net-stats[data-load="loading"] strong { animation: none; }
.page-cockpit .conn-row .bar { transition: none; }
}
.page-cockpit .sidebar { overflow-x: hidden; }
body.page-cockpit.net-open .statbar { display: none; }
.page-cockpit .net-view { overflow-x: hidden; }
.page-cockpit .net-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px 12px; }
.page-cockpit .net-strip .net-collectors { flex: 0 1 auto; }
.page-cockpit .net-strip .net-sync { flex: 1 1 320px; margin: 0; }
.page-cockpit .net-sec { min-width: 0; }
.page-cockpit .net-scroll { overflow: auto; min-height: 0; }
.page-cockpit .net-stat > div { display: grid; gap: 1px; min-width: 0; flex: 1; }
.page-cockpit .net-stat .stat-time { color: var(--nb-muted); font-size: 11px; }
.page-cockpit .distbar { display: block; height: 4px; border-radius: 2px; background: rgba(107, 132, 147, .45); overflow: hidden; margin-top: 4px; }
.page-cockpit .distbar b { display: block; height: 100%; width: 0; background: var(--nb-ok); transition: width .5s ease; }
.page-cockpit .net-stats[data-load="ok"] .net-stat.ok > svg { animation: net-glow 3.2s ease-in-out infinite; }
.page-cockpit .net-mode { display: inline-block; margin-left: 10px; padding: 3px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0; border-radius: 999px; border: 1px solid var(--nb-line); color: var(--nb-muted); }
.page-cockpit .net-mode[data-mode="imported"] { color: var(--nb-warn); border-color: rgba(255, 176, 32, .6); background: rgba(255, 176, 32, .08); }
.page-cockpit .net-mode[data-mode="live"] { color: var(--nb-ok); border-color: rgba(0, 230, 138, .6); }
.page-cockpit .net-actions-col { display: flex; flex-wrap: wrap; gap: 8px; }
.page-cockpit .net-actions-col .btn { flex: 1 1 auto; min-height: 44px; }
.page-cockpit .net-maptools { display: flex; gap: 12px; align-items: center; }
.page-cockpit .c-hist { background: #6b8493; }
.page-cockpit .net-flow-wrap { max-height: none; }
.page-cockpit .net-flow-wrap tr[data-cls="high"] td:first-child { box-shadow: inset 3px 0 0 var(--nb-violet); }
.page-cockpit .net-flow-wrap tr[data-cls="hist"] td:first-child { box-shadow: inset 3px 0 0 #6b8493; }
.page-cockpit .net-flow-wrap tr[data-cls="obs"] td:first-child { box-shadow: inset 3px 0 0 var(--nb-cyan); }
.page-cockpit .net-activity-chart { width: 100%; height: 80px; display: block; }
.page-cockpit .net-activity-chart .ln { vector-effect: non-scaling-stroke; }
.page-cockpit .net-center .net-card h3 small { font-weight: 400; }
.page-cockpit .net-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(2, 10, 18, .78); }
.page-cockpit .net-modal-box { width: min(640px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 10px; padding: 18px; border-radius: 14px; border: 1px solid var(--nb-line); background: #071a29; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.page-cockpit .net-modal-box h3 { margin: 0; }
.page-cockpit .net-field { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.page-cockpit .net-field legend { padding: 0; margin-bottom: 4px; color: var(--nb-muted); }
.page-cockpit .net-field input[type=file],
.page-cockpit .net-field input[type=text] { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--nb-line); background: rgba(2, 10, 18, .8); color: var(--nb-text); font: inherit; }
.page-cockpit .net-devpick { max-height: 160px; overflow: auto; display: grid; gap: 0; padding: 4px 8px; border: 1px solid var(--nb-line); border-radius: 10px; }
.page-cockpit .net-devpick .net-check { min-height: 44px; }
.page-cockpit .net-import-result { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0, 230, 138, .5); background: rgba(0, 230, 138, .08); }
.page-cockpit .net-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.page-cockpit .net-modal-actions .btn { flex: none; min-height: 44px; padding: 8px 18px; }
@media (min-width: 1101px) and (min-height: 760px) {
.page-cockpit .net-view { display: flex; flex-direction: column; overflow: hidden; gap: 10px; padding: 12px 16px 14px; }
.page-cockpit .net-head,
.page-cockpit .net-strip,
.page-cockpit .net-tabs,
.page-cockpit .net-notice { flex: none; }
.page-cockpit .net-sec:not(.hidden) { flex: 1 1 0; min-height: 0; }
.page-cockpit .net-overview:not(.hidden) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.page-cockpit .net-overview .net-grid { min-height: 0; align-items: stretch; }
.page-cockpit .net-overview .net-devices { display: flex; flex-direction: column; min-height: 0; gap: 8px; }
.page-cockpit .net-overview .net-devices .net-table-wrap { flex: 1 1 0; min-height: 0; max-height: none; }
.page-cockpit .net-overview .net-wan { display: flex; flex-direction: column; min-height: 0; gap: 6px; padding: 12px 14px; overflow: hidden; }
.page-cockpit .net-overview .net-wan .net-card-head { gap: 6px 10px; }
.page-cockpit .net-overview .net-wan .net-chart-wrap { flex: 1 1 0; min-height: 90px; display: grid; }
.page-cockpit .net-overview .net-wan .net-chart { width: 100%; height: 100%; }
.page-cockpit .net-overview .net-wan .net-totals { grid-template-columns: auto 1fr auto 1fr; gap: 2px 10px; font-size: 13px; }
.page-cockpit .net-overview .net-wan .net-totals dd { text-align: left; }
.page-cockpit .net-overview .net-wan .net-rates strong { font-size: 20px; }
.page-cockpit .net-overview .net-bottom { height: 168px; align-items: stretch; }
.page-cockpit .net-overview .net-bottom .net-card { grid-template-rows: auto minmax(0, 1fr); padding: 12px 14px; gap: 6px; min-height: 0; overflow: hidden; }
.page-cockpit .net-overview .net-bottom .net-card h3 { font-size: 15px; }
.page-cockpit .net-overview #net-detail dl { grid-template-columns: auto 1fr auto 1fr; gap: 2px 12px; font-size: 13px; }
.page-cockpit .net-overview #net-detail dd { text-align: left; }
.page-cockpit .net-stat { padding: 10px 14px; }
.page-cockpit .net-stat strong { font-size: 30px; }
.page-cockpit .net-center:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr) clamp(150px, 24vh, 220px); gap: 10px; }
.page-cockpit .net-center .net-mapcard { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
.page-cockpit .net-center .net-map-frame { flex: 1 1 0; height: auto; min-height: 0; }
.page-cockpit .net-center .net-mapside { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.page-cockpit .net-center .net-mapside .net-card { min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr); }
.page-cockpit .net-center .net-mapside .net-activity { grid-template-rows: auto auto auto; }
.page-cockpit .net-center .net-flows { display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; gap: 6px; }
.page-cockpit .net-center .net-flows .net-flow-wrap { flex: 1 1 0; min-height: 0; }
.page-cockpit .net-center .net-sources { min-height: 0; overflow: auto; padding: 12px 14px; gap: 6px; grid-template-rows: auto auto auto; align-content: start; }
.page-cockpit .net-center .net-sources .net-totals { font-size: 12px; gap: 2px 10px; }
}
@media (max-height: 759px) and (min-width: 1101px) {
.page-cockpit .net-view { overflow-y: auto; }
.page-cockpit .net-overview .net-table-wrap { max-height: 40vh; }
.page-cockpit .net-center:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; }
.page-cockpit .net-center .net-map-frame { height: 60vh; }
.page-cockpit .net-center .net-flows { grid-column: 1; }
.page-cockpit .net-center .net-sources { grid-column: 2; }
}
@media (max-width: 1100px) {
.page-cockpit .net-center:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.page-cockpit .net-center .net-mapside { display: grid; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.page-cockpit .net-stats[data-load="ok"] .net-stat.ok > svg,
.page-cockpit .distbar b { animation: none; transition: none; }
}
@media (min-width: 1101px) and (min-height: 760px) {
.page-cockpit .net-overview .net-wan .net-controls { gap: 6px; }
.page-cockpit .net-overview .net-wan .net-seg button { min-height: 34px; padding: 4px 12px; }
.page-cockpit .net-overview .net-wan .net-rates { gap: 8px; }
.page-cockpit .net-overview .net-wan .net-rates > div { padding: 6px 10px; }
.page-cockpit .net-overview .net-wan .net-rates strong { font-size: 18px; }
.page-cockpit .net-overview .net-wan .net-legend { margin: 0; }
.page-cockpit .net-overview .net-wan .net-chart-wrap { min-height: 110px; }
.page-cockpit .net-center:not(.hidden) { grid-template-rows: minmax(0, 1fr) clamp(190px, 25vh, 240px); }
.page-cockpit .net-center .net-sources .net-totals dd { text-align: right; overflow-wrap: anywhere; }
.page-cockpit .net-center .net-layers { padding: 4px 8px; font-size: 12px; }
.page-cockpit .net-center .net-layers label { min-height: 24px; }
.page-cockpit .net-center .net-layers legend { font-size: 11px; }
}
.page-cockpit .net-maptools .btn { flex: none; min-height: 36px; }
@media (max-width: 1100px) {
.page-cockpit .net-maptools .btn { min-height: 44px; }
}
@media (min-width: 1101px) and (min-height: 760px) {
.page-cockpit .net-center:not(.hidden) { grid-template-rows: minmax(0, 1fr) clamp(210px, 28vh, 270px); }
.page-cockpit .net-center .net-mapside .net-activity .net-activity-chart { height: 52px; }
.page-cockpit .net-center #net-flow-detail dl { gap: 1px 10px; font-size: 12.5px; }
}
@media (min-width: 1101px) and (min-height: 760px) {
.page-cockpit .net-overview #net-sysinfo { grid-template-columns: auto 1fr auto 1fr; font-size: 13px; gap: 2px 12px; }
.page-cockpit .net-overview #net-sysinfo dd { text-align: left; }
}
@media (max-width: 1100px) {
.page-cockpit .net-view { left: 0; right: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; }
}
@media (min-width: 1101px) and (min-height: 760px) {
.page-cockpit .net-center .net-mapside .net-activity .net-activity-chart { height: 40px; }
.page-cockpit .net-center .net-mapside .net-activity { gap: 4px; padding-top: 10px; padding-bottom: 10px; }
}
.page-cockpit .net-view {
  --nb-bg:#030b17; --nb-panel:#0b1930; --nb-raise:#10213f;
  --nb-cyan:#00d4ff; --nb-blue:#328df4; --nb-violet:#8a2be2;
  --nb-ok:#00ff88; --nb-warn:#ffb800; --nb-bad:#ff4757;
  --nb-text:#eaf6ff; --nb-muted:#a0bfd0; --nb-line:rgba(0,212,255,.23);
  background:radial-gradient(900px 500px at 80% -10%,rgba(138,43,226,.12),transparent 70%),var(--nb-bg);
  border-color:var(--nb-line); color:var(--nb-text);
  scrollbar-color:rgba(0,212,255,.35) transparent;
}
.page-cockpit .net-view .net-card,
.page-cockpit .net-view .panel { border:1px solid var(--nb-line); border-radius:16px; background:linear-gradient(160deg,rgba(15,35,63,.94),rgba(8,22,43,.95) 72%); box-shadow:0 14px 34px rgba(0,0,0,.21),inset 0 1px 0 rgba(255,255,255,.035); }
.page-cockpit .net-view .net-card::before,
.page-cockpit .net-view .net-card::after { pointer-events:none; }
.page-cockpit .net-view .net-stat { border-color:var(--nb-line); border-radius:15px; background:linear-gradient(150deg,rgba(13,34,61,.96),rgba(7,23,44,.94)); }
.page-cockpit .net-view .net-stat strong,
.page-cockpit .net-view .net-rates strong { font-variant-numeric:tabular-nums; }
.page-cockpit .net-view .net-tabs [role="tab"][aria-selected="true"] { color:var(--nb-cyan); border-bottom-color:var(--nb-cyan); }
.page-cockpit .net-view .net-table-wrap th { background:#0c2340; }
.page-cockpit .net-view .net-table-wrap tbody tr.sel { background:rgba(0,212,255,.12); }
.page-cockpit .net-view .net-iconbtn { border-color:rgba(0,212,255,.52); border-radius:12px; background:rgba(4,20,38,.9); box-shadow:0 5px 15px rgba(0,0,0,.16); }
.page-cockpit .net-view .net-iconbtn:hover { background:rgba(0,212,255,.16); box-shadow:0 0 18px rgba(0,212,255,.18); }
.page-cockpit .net-view .net-badge[data-state="online"] { background:rgba(0,255,136,.09); }
.page-cockpit .net-view .net-badge[data-state="offline"] { background:rgba(255,71,87,.09); }
.page-cockpit .net-view .net-sync { background:rgba(7,24,44,.86); border-color:var(--nb-line); }
.page-cockpit .net-view .net-table-wrap { border-color:var(--nb-line); }
.page-cockpit .net-view input[type="search"],
.page-cockpit .net-view select { background:rgba(4,17,34,.95); border-color:rgba(0,212,255,.3); color:var(--nb-text); }
.page-cockpit .net-view :where(button,a,input,select,[role="tab"]):focus-visible { outline:2px solid var(--nb-cyan); outline-offset:3px; }
.page-cockpit .net-view .net-map-frame { background:#041324; border-color:var(--nb-line); }
.page-cockpit .net-view .net-map-frame .maplibregl-ctrl-attrib,
.page-cockpit .net-view .net-map-frame .maplibregl-ctrl-attrib.maplibregl-compact { background:rgba(3,12,25,.86); }
.page-cockpit .net-view .net-map-frame .maplibregl-ctrl-attrib a { color:var(--nb-cyan); }
.page-cockpit .net-view .net-tip { background:rgba(3,12,25,.95); border-color:var(--nb-line); }
.page-cockpit .net-view .net-stat,
.page-cockpit .net-view .net-iconbtn,
.page-cockpit .net-view .net-card { transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
@media (prefers-reduced-motion:reduce) {
.page-cockpit .net-view .net-stat,
.page-cockpit .net-view .net-iconbtn,
.page-cockpit .net-view .net-card { transition:none!important; }
.page-cockpit .net-view .net-spinner::after,
.page-cockpit .net-view .net-sync-dot { animation:none!important; }
}
@media (forced-colors:active) {
.page-cockpit .net-view .net-card,
.page-cockpit .net-view .net-stat,
.page-cockpit .net-view .net-iconbtn { border:1px solid CanvasText; }
}
@media (max-width:1100px) {
.page-cockpit .net-view { bottom:calc(var(--net-bottom, 0px) + var(--bottom-nav, 0px) + 10px); }
}
/* ===== page-dashboard: nexus.css ===== */
html:has(> body.page-dashboard) { --side: 232px; --nx-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.page-dashboard * { box-sizing: border-box; }
html:has(> body.page-dashboard),
body.page-dashboard { height: 100%; margin: 0; }
body.page-dashboard { background: radial-gradient(1200px 700px at 85% -10%, rgba(138, 43, 226, .22), transparent 60%), radial-gradient(900px 600px at -5% 105%, rgba(0, 212, 255, .14), transparent 55%), var(--bg); color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; overflow: hidden; }
.page-dashboard .hidden { display: none !important; }
.page-dashboard [hidden] { display: none !important; }
.page-dashboard a { color: var(--cyan); text-decoration: none; }
.page-dashboard a:hover { text-decoration: underline; }
.page-dashboard button,
.page-dashboard input,
.page-dashboard select { font: inherit; color: inherit; }
.page-dashboard :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.page-dashboard .ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-dashboard .nx-app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.page-dashboard .nx-side { display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; background: linear-gradient(180deg, rgba(11, 25, 48, .92), rgba(6, 19, 38, .92)); border-right: 1px solid var(--line); min-height: 0; }
.page-dashboard .nx-brand { display: flex; align-items: center; gap: 12px; color: var(--text); padding: 4px 8px; text-decoration: none; }
.page-dashboard .nx-brand:hover { text-decoration: none; }
.page-dashboard .nx-brand div { display: grid; line-height: 1.05; }
.page-dashboard .nx-brand strong { font-size: 23px; letter-spacing: .12em; font-weight: 600; }
.page-dashboard .nx-brand span { font-size: 11px; letter-spacing: .16em; }
.page-dashboard .nx-brand em { font-style: normal; font-size: 12px; letter-spacing: .5em; color: var(--cyan); margin-top: 2px; }
.page-dashboard .nx-brand.big strong { font-size: 30px; }
.page-dashboard .nx-logo { width: 40px; height: 40px; fill: none; stroke: url(#none); stroke: var(--cyan); stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 7px var(--cyan)); }
.page-dashboard .nx-logo path:nth-child(2) { stroke: var(--violet); }
.page-dashboard .nx-nav { display: grid; gap: 4px; align-content: start; overflow-y: auto; min-height: 0; }
.page-dashboard .nx-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--text); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.page-dashboard .nx-nav a:hover { background: rgba(0, 212, 255, .08); border-color: var(--line); }
.page-dashboard .nx-nav a.active { background: var(--grad-active); border-color: rgba(255, 255, 255, .35); box-shadow: 0 0 18px rgba(0, 150, 255, .45); font-weight: 600; }
.page-dashboard .nx-nav a .ic { color: var(--cyan); }
.page-dashboard .nx-nav a.active .ic { color: #fff; }
.page-dashboard .nx-sysline { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.page-dashboard .nx-sysline small { margin-left: auto; opacity: .6; }
.page-dashboard .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 8px currentColor; flex: none; display: inline-block; }
.page-dashboard .dot[data-state="online"],
.page-dashboard .dot.online { background: var(--ok); color: var(--ok); }
.page-dashboard .dot[data-state="warn"],
.page-dashboard .dot.warn { background: var(--warn); color: var(--warn); }
.page-dashboard .dot[data-state="bad"],
.page-dashboard .dot.bad { background: var(--err); color: var(--err); }
.page-dashboard .dot[data-state="unknown"],
.page-dashboard .dot.unknown { background: #5d7a8c; color: #5d7a8c; box-shadow: none; }
.page-dashboard .nx-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.page-dashboard .nx-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px 8px; }
.page-dashboard .nx-title { min-width: 0; margin-right: auto; }
.page-dashboard .nx-title h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.page-dashboard .nx-title p { margin: 0; color: var(--muted); font-size: 13px; }
.page-dashboard .nx-search { display: flex; align-items: center; gap: 10px; width: min(420px, 38vw); padding: 0 16px; height: 44px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(11, 25, 48, .8); box-shadow: var(--glow); color: var(--muted); }
.page-dashboard .nx-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.page-dashboard .nx-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(11, 25, 48, .8); color: var(--cyan); cursor: pointer; }
.page-dashboard .nx-iconbtn:hover { box-shadow: var(--glow); }
.page-dashboard .nx-iconbtn .badge { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--err); box-shadow: 0 0 8px var(--err); }
.page-dashboard .nx-content { overflow-y: auto; padding: 8px 22px 22px; min-height: 0; scrollbar-color: rgba(0, 212, 255, .35) transparent; }
.page-dashboard .view { display: grid; gap: 16px; align-content: start; }
.page-dashboard .nx-card { position: relative; background: linear-gradient(180deg, rgba(16, 33, 63, .78), rgba(11, 25, 48, .86)); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 6px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.page-dashboard .nx-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.page-dashboard .nx-card h2 .ic { color: var(--cyan); width: 20px; height: 20px; }
.page-dashboard .nx-card h2 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.page-dashboard .nx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.page-dashboard .nx-kpi { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 25, 48, .82); min-width: 0; }
.page-dashboard .nx-kpi .ic { width: 28px; height: 28px; color: var(--cyan); }
.page-dashboard .nx-kpi small { display: block; color: var(--muted); font-size: 12px; }
.page-dashboard .nx-kpi b { font-size: 24px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.page-dashboard .nx-kpi.hl { border-color: rgba(138, 43, 226, .8); box-shadow: 0 0 16px rgba(138, 43, 226, .3); }
.page-dashboard .nx-kpi.hl2 { border-color: rgba(0, 212, 255, .7); box-shadow: 0 0 16px rgba(0, 212, 255, .25); }
.page-dashboard .nx-kpi .ic { stroke: currentColor; }
.page-dashboard .nx-kpi.hl .ic { color: #b983ff; }
.page-dashboard .nx-grid-top { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.page-dashboard .nx-grid-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page-dashboard .nx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.page-dashboard .nx-split.transit { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); }
.page-dashboard .nx-split.trips { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
.page-dashboard .map-card { padding: 0; overflow: hidden; min-height: 420px; }
.page-dashboard .map-card.tall { min-height: min(70vh, 720px); }
.page-dashboard .map-card.full { height: calc(100dvh - 130px); min-height: 380px; }
.page-dashboard .nx-map { position: absolute; inset: 0; }
.page-dashboard .map-over { position: absolute; z-index: 3; pointer-events: none; }
.page-dashboard .map-tools { position: absolute; z-index: 4; right: 12px; top: 12px; display: grid; gap: 8px; }
.page-dashboard .map-tools button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(6, 19, 38, .88); color: var(--cyan); cursor: pointer; display: grid; place-items: center; font-size: 20px; }
.page-dashboard .map-tools button:hover { box-shadow: var(--glow); }
.page-dashboard .map-status { position: absolute; z-index: 4; left: 12px; bottom: 12px; right: 70px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--err); background: rgba(40, 6, 14, .88); font-size: 12.5px; }
.page-dashboard .map-badge { position: absolute; z-index: 4; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--sim); color: var(--sim); background: rgba(6, 19, 38, .88); font-size: 11px; letter-spacing: .1em; }
.page-dashboard .nx-list { display: grid; gap: 2px; }
.page-dashboard .nx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(0, 212, 255, .1); }
.page-dashboard .nx-row:last-child { border-bottom: 0; }
.page-dashboard .nx-row b { font-weight: 600; }
.page-dashboard .nx-row small { color: var(--muted); display: block; }
.page-dashboard .nx-row .val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.page-dashboard .nx-row .val.ok { color: var(--ok); }
.page-dashboard .nx-row .val.warn { color: var(--warn); }
.page-dashboard .nx-row .val.bad { color: var(--err); }
.page-dashboard .nx-row.click { cursor: pointer; border-radius: 10px; }
.page-dashboard .nx-row.click:hover,
.page-dashboard .nx-row.click.on { background: rgba(0, 212, 255, .1); }
.page-dashboard .nx-more { display: inline-block; margin-top: 8px; font-size: 13px; }
.page-dashboard .nx-empty { color: var(--muted); padding: 10px 2px; font-size: 13px; }
.page-dashboard .nx-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.page-dashboard .nx-error { color: #ffc2c8; min-height: 1.2em; margin: 0; }
.page-dashboard .nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(11, 25, 48, .9); color: var(--text); cursor: pointer; font-weight: 600; }
.page-dashboard .nx-btn:hover { box-shadow: var(--glow); }
.page-dashboard .nx-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.page-dashboard .nx-btn.primary { background: var(--grad-primary); border-color: rgba(255, 255, 255, .4); border-radius: 999px; color: #fff; }
.page-dashboard .nx-btn.primary:disabled { background: rgba(11, 25, 48, .9); color: var(--muted); border-color: var(--line); }
.page-dashboard .nx-btn.danger { border-color: var(--err); color: #ffd0d4; }
.page-dashboard .nx-btn.wide { flex: 1; }
.page-dashboard .nx-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(6, 19, 38, .8); color: var(--cyan); cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.page-dashboard .nx-chip:hover { box-shadow: var(--glow); }
.page-dashboard .nx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.page-dashboard .nx-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 19, 38, .7); }
.page-dashboard .nx-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); cursor: pointer; font-weight: 600; }
.page-dashboard .nx-seg button.on { background: var(--grad-active); color: #fff; }
.page-dashboard .nx-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.page-dashboard .nx-select { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.page-dashboard .nx-select.block { display: grid; margin-top: 10px; }
.page-dashboard .nx-select select,
.page-dashboard .nx-card select,
.page-dashboard .nx-card input[type="datetime-local"] { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(6, 19, 38, .9); color: var(--text); }
.page-dashboard .nx-links { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 8px; }
.page-dashboard .nx-events { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; display: grid; gap: 3px; }
.page-dashboard .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 11.5px; }
.page-dashboard .pill.ok { color: var(--ok); border-color: rgba(0, 255, 136, .5); }
.page-dashboard .pill.warn { color: var(--warn); border-color: rgba(255, 184, 0, .5); }
.page-dashboard .pill.bad { color: var(--err); border-color: rgba(255, 71, 87, .5); }
.page-dashboard .pill.sim { color: var(--sim); border-color: var(--sim); }
.page-dashboard .trip { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; align-items: center; }
.page-dashboard .trip:hover,
.page-dashboard .trip.on { border-color: var(--line2); background: rgba(0, 212, 255, .07); }
.page-dashboard .trip svg.thumb { width: 76px; height: 56px; border-radius: 10px; background: rgba(6, 19, 38, .9); border: 1px solid var(--line); }
.page-dashboard .thumb path { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--cyan)); }
.page-dashboard .trip b { display: block; }
.page-dashboard .trip small { color: var(--muted); }
.page-dashboard .trip .dist { text-align: right; color: var(--cyan); font-weight: 600; white-space: nowrap; }
.page-dashboard .trip-detail { display: grid; gap: 12px; }
.page-dashboard .trip-detail svg.thumb.big { width: 100%; height: 180px; }
.page-dashboard .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.page-dashboard .fact { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 19, 38, .7); }
.page-dashboard .fact small { display: block; color: var(--muted); font-size: 11.5px; }
.page-dashboard .fact b { font-size: 18px; }
.page-dashboard .chart svg { width: 100%; height: 220px; }
.page-dashboard .chart rect { fill: url(#none); fill: var(--cyan); opacity: .85; }
.page-dashboard .chart text { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.page-dashboard .chart .val { fill: var(--text); }
.page-dashboard .speedline { fill: none; stroke: var(--violet); stroke-width: 2; }
.page-dashboard .maplibregl-map .maplibregl-ctrl-attrib,
.page-dashboard .maplibregl-map .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(3, 12, 25, .86); color: var(--muted); font-size: 10px; border-radius: 6px; }
.page-dashboard .maplibregl-map .maplibregl-ctrl-attrib a { color: var(--cyan); }
.page-dashboard .maplibregl-ctrl-attrib-button { filter: invert(1); }
.page-dashboard .wt-marker { width: 0; height: 0; cursor: pointer; }
.page-dashboard .wt-marker .dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); }
.page-dashboard .wt-marker .ring { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; border: 2px solid var(--c); animation: nxpulse 2s ease-out infinite; }
.page-dashboard .wt-marker.online { --c: var(--cyan); }
.page-dashboard .wt-marker.stale { --c: var(--warn); }
.page-dashboard .wt-marker.offline { --c: #7a8a96; }
.page-dashboard .wt-marker.sim { --c: var(--sim); }
.page-dashboard .wt-marker.stale .ring,
.page-dashboard .wt-marker.offline .ring { animation: none; opacity: .35; }
.page-dashboard .wt-tip { position: absolute; left: 20px; top: -22px; min-width: 150px; padding: 8px 12px; border-radius: 10px; background: rgba(3, 16, 30, .92); border: 1px solid var(--line2); white-space: nowrap; pointer-events: none; }
.page-dashboard .wt-tip strong { display: block; }
.page-dashboard .wt-tip .sub { color: var(--cyan); font-size: 12px; }
.page-dashboard .wt-tip .coords { font-size: 12px; font-variant-numeric: tabular-nums; }
.page-dashboard .nav-pin,
.page-dashboard .maplibregl-marker.nav-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; font-size: 13px; font-weight: 700; color: #fff; }
.page-dashboard .nav-pin.start { background: #1f9d6a; box-shadow: 0 0 10px #1f9d6a; }
.page-dashboard .nav-pin.target { background: #d93a4c; box-shadow: 0 0 10px #d93a4c; }
.page-dashboard .nav-pin-label { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
.page-dashboard .wt-marker .ring { animation: none; }
}
.page-dashboard .planner { display: grid; gap: 10px; }
.page-dashboard .nx-fields { position: relative; display: grid; gap: 8px; }
.page-dashboard .nx-field { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 19, 38, .75); }
.page-dashboard .nx-field .grow { flex: 1; min-width: 0; position: relative; }
.page-dashboard .nx-field label { display: block; font-size: 11px; color: var(--cyan); }
.page-dashboard .nx-field.target label { color: var(--magenta); }
.page-dashboard .nx-field input { width: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: 15px; padding: 2px 0; }
.page-dashboard .nx-field:focus-within { border-color: var(--line2); box-shadow: var(--glow); }
.page-dashboard .pin { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #04121f; flex: none; }
.page-dashboard .pin.s { background: var(--cyan); }
.page-dashboard .pin.z { background: var(--magenta); }
.page-dashboard .nx-swap { position: absolute; right: 74px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); color: var(--cyan); cursor: pointer; display: grid; place-items: center; }
.page-dashboard .nx-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.page-dashboard .nx-when label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.page-dashboard .nx-when input,
.page-dashboard .nx-when select { width: 100%; }
.page-dashboard .poi-status { margin: 0; color: var(--muted); font-size: 12.5px; }
.page-dashboard .poi-status[data-kind="error"] { color: #ffc2c8; }
.page-dashboard .poi-status[data-kind="ok"] { color: var(--ok); }
.page-dashboard .suggest { position: absolute; z-index: 20; left: -8px; right: -8px; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow: auto; border: 1px solid var(--line2); border-radius: 12px; background: rgba(3, 12, 26, .98); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.page-dashboard .suggest-item { display: block; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.page-dashboard .suggest-item.active,
.page-dashboard .suggest-item:hover { background: rgba(0, 212, 255, .16); }
.page-dashboard .suggest-title { display: block; font-size: 14px; }
.page-dashboard .suggest-sub { display: block; font-size: 12px; color: var(--muted); }
.page-dashboard .suggest-msg { padding: 10px; font-size: 12.5px; color: var(--muted); }
.page-dashboard .suggest-msg.error { color: #ffc2c8; }
.page-dashboard .tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.page-dashboard .tr-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; background: rgba(6, 19, 38, .6); }
.page-dashboard .tr-card:hover,
.page-dashboard .tr-card:focus-visible { border-color: var(--cyan); outline: none; }
.page-dashboard .tr-card.active { border-color: var(--violet); background: linear-gradient(90deg, rgba(0, 212, 255, .1), rgba(138, 43, 226, .14)); box-shadow: 0 0 16px rgba(138, 43, 226, .35); }
.page-dashboard .tr-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-dashboard .tr-card-head strong { font-size: 22px; margin-right: auto; }
.page-dashboard .tr-times { font-size: 13px; }
.page-dashboard .tr-state { font-size: 12px; }
.page-dashboard .tr-state.ok { color: var(--ok); }
.page-dashboard .tr-state.warn { color: var(--warn); }
.page-dashboard .tr-state.bad { color: var(--err); }
.page-dashboard .tr-state.muted { color: var(--muted); }
.page-dashboard .tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.page-dashboard .tr-chip { font-size: 12px; font-weight: 600; color: #fff; padding: 3px 10px; border-radius: 9px; background: color-mix(in srgb, var(--line, #00d4ff) 50%, #04121f); border: 1px solid var(--line, #00d4ff); }
.page-dashboard .tr-walk { font-size: 12px; color: var(--muted); }
.page-dashboard .tr-detail { border: 1px solid rgba(138, 43, 226, .45); border-radius: 14px; padding: 10px 12px; }
.page-dashboard .tr-detail:empty { display: none; }
.page-dashboard .tr-detail h4,
.page-dashboard .tr-sources h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b983ff; font-weight: 600; }
.page-dashboard .tr-leg { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 4px 0; position: relative; }
.page-dashboard .tr-leg-time { font-weight: 700; font-size: 13px; }
.page-dashboard .tr-leg-body { display: grid; gap: 2px; font-size: 13px; justify-items: start; }
.page-dashboard .tr-track { color: var(--cyan); font-size: 12px; }
.page-dashboard .tr-warning { color: var(--warn); font-size: 11.5px; }
.page-dashboard .tr-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.page-dashboard .tr-deps { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.page-dashboard .tr-dep { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; font-size: 13px; padding: 2px 0; }
.page-dashboard .tr-dep .bad { color: var(--err); }
.page-dashboard .muted { color: var(--muted); }
.page-dashboard .small { font-size: 11.5px; }
.page-dashboard .btn-row { display: flex; gap: 8px; margin-top: 6px; }
.page-dashboard .btn.small,
.page-dashboard button.btn.small { min-height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(6, 19, 38, .8); color: var(--cyan); cursor: pointer; }
.page-dashboard .tr-sources { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.page-dashboard .tr-sources summary { cursor: pointer; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-dashboard .tr-sources label { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.page-dashboard .tr-sources select { width: 100%; }
.page-dashboard .tr-src { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.page-dashboard .tr-src > .muted { grid-column: 1 / -1; }
.page-dashboard .tr-source { margin: 4px 0; display: grid; gap: 1px; font-size: 12px; }
.page-dashboard .tr-source.warn > span:first-child { color: var(--warn); }
.page-dashboard .nx-login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3, 11, 23, .94); }
.page-dashboard .nx-login-box { width: min(380px, 92vw); display: grid; gap: 14px; padding: 24px; }
.page-dashboard .nx-login-box label { display: grid; gap: 6px; color: var(--muted); }
.page-dashboard .nx-login-box input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(6, 19, 38, .9); color: var(--text); }
@media (max-width: 1500px) {
.page-dashboard .nx-kpi b { font-size: 21px; }
}
@media (max-width: 1280px) {
html:has(> body.page-dashboard) { --side: 76px; }
.page-dashboard .nx-nav a span,
.page-dashboard .nx-brand div,
.page-dashboard .nx-sysline span,
.page-dashboard .nx-sysline small { display: none; }
.page-dashboard .nx-nav a { justify-content: center; padding: 12px 0; }
.page-dashboard .nx-brand { justify-content: center; }
.page-dashboard .nx-sysline { justify-content: center; }
.page-dashboard .nx-grid-top { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
.page-dashboard .nx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-dashboard .nx-grid-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
html:has(> body.page-dashboard) { --side: 0px; }
body.page-dashboard { overflow: auto; }
.page-dashboard .nx-app { display: block; height: auto; min-height: 100dvh; }
.page-dashboard .nx-side { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; top: auto; height: 62px; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line2); background: rgba(3, 11, 23, .96); gap: 0; }
.page-dashboard .nx-side .nx-brand,
.page-dashboard .nx-sysline { display: none; }
.page-dashboard .nx-nav { display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; width: 100%; scrollbar-width: none; }
.page-dashboard .nx-nav a { flex: 0 0 auto; min-width: 66px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px; border-radius: 10px; }
.page-dashboard .nx-nav a span { display: block; }
.page-dashboard .nx-nav a .ic { width: 21px; height: 21px; }
.page-dashboard .nx-main { display: block; }
.page-dashboard .nx-content { overflow: visible; padding: 6px 14px 86px; }
.page-dashboard .nx-head { padding: 12px 14px 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.page-dashboard .nx-title h1 { font-size: 22px; }
.page-dashboard .nx-search { order: 5; width: 100%; flex: 1 1 100%; }
.page-dashboard .nx-grid-top,
.page-dashboard .nx-split,
.page-dashboard .nx-split.transit,
.page-dashboard .nx-split.trips { grid-template-columns: minmax(0, 1fr); }
.page-dashboard .nx-grid-bottom { grid-template-columns: minmax(0, 1fr); }
.page-dashboard .map-card { min-height: 320px; }
.page-dashboard .map-card.tall { min-height: 360px; }
.page-dashboard .map-card.full { height: 62dvh; }
.page-dashboard .nx-kpi { padding: 10px 12px; gap: 10px; }
.page-dashboard .nx-kpi .ic { width: 24px; height: 24px; }
.page-dashboard .nx-kpi b { font-size: 19px; }
.page-dashboard .tr-list { max-height: none; }
.page-dashboard .nx-when { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-dashboard .nx-when .nx-chip { grid-column: 1 / -1; }
.page-dashboard .nx-swap { right: 60px; }
}
.page-dashboard .nx-grid-top { height: clamp(430px, 52vh, 560px); }
.page-dashboard .nx-grid-top .planner-card { overflow-y: auto; min-height: 0; }
.page-dashboard .nx-grid-top .map-card { min-height: 0; }
.page-dashboard .nx-split.transit .planner-card { max-height: calc(100dvh - 130px); overflow-y: auto; }
.page-dashboard .nx-split.transit .map-card.tall { min-height: calc(100dvh - 130px); }
@media (max-width: 900px) {
.page-dashboard .nx-grid-top { height: auto; }
.page-dashboard .nx-grid-top .planner-card { overflow: visible; }
.page-dashboard .nx-split.transit .planner-card { max-height: none; overflow: visible; }
.page-dashboard .nx-split.transit .map-card.tall { min-height: 360px; }
}
html:has(> body.page-dashboard) { scrollbar-color:rgba(0,212,255,.35) transparent; }
body.page-dashboard { color:var(--text); background:radial-gradient(ellipse 1100px 700px at 95% -15%,rgba(138,43,226,.17),transparent 65%),radial-gradient(ellipse 900px 620px at -10% 100%,rgba(0,212,255,.11),transparent 65%),var(--bg); }
.page-dashboard button,
.page-dashboard input,
.page-dashboard select,
.page-dashboard textarea { font:inherit; }
.page-dashboard button,
.page-dashboard a,
.page-dashboard input,
.page-dashboard select,
.page-dashboard textarea { -webkit-tap-highlight-color:transparent; }
.page-dashboard :where(button,a,input,select,textarea,[role="button"]):focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
.page-dashboard :where(button,a,[role="button"]):disabled { cursor:not-allowed; opacity:.5; }
.page-dashboard ::selection { background:rgba(0,212,255,.3); color:#fff; }
.page-dashboard .nx-side { background:linear-gradient(180deg,rgba(10,25,47,.98),rgba(4,14,29,.98)); border-color:var(--line); }
.page-dashboard .nx-brand,
.page-dashboard .brand { filter:drop-shadow(0 0 8px rgba(0,212,255,.12)); }
.page-dashboard .nx-logo,
.page-dashboard .brand-logo { filter:drop-shadow(0 0 8px rgba(0,212,255,.65)); }
.page-dashboard .nx-nav a,
.page-dashboard .side-item { transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease; }
.page-dashboard .nx-nav a:hover,
.page-dashboard .side-item:hover:not(:disabled) { background:rgba(0,212,255,.09); border-color:rgba(0,212,255,.26); }
.page-dashboard .nx-nav a.active,
.page-dashboard .side-item.active { color:#fff; background:var(--grad-active); border:1px solid rgba(196,230,255,.46); box-shadow:0 4px 18px rgba(0,143,255,.23),inset 0 1px 0 rgba(255,255,255,.19); }
.page-dashboard .nx-nav a.active .ic,
.page-dashboard .side-item.active svg { color:#fff; }
.page-dashboard .nx-head { gap:14px; }
.page-dashboard .nx-title h1 { letter-spacing:-.025em; font-weight:700; }
.page-dashboard .nx-title p { color:var(--muted); }
.page-dashboard .nx-search { background:rgba(8,23,43,.94); border-color:rgba(0,212,255,.44); box-shadow:0 0 0 1px rgba(0,212,255,.035),0 8px 22px rgba(0,0,0,.14); }
.page-dashboard .nx-search:focus-within { border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,212,255,.12); }
.page-dashboard .nx-iconbtn,
.page-dashboard .icon-btn { transition:background .18s,border-color .18s,box-shadow .18s; }
.page-dashboard .nx-iconbtn:hover,
.page-dashboard .icon-btn:hover { background:rgba(0,212,255,.12); box-shadow:var(--glow); }
.page-dashboard .nx-card,
.page-dashboard .panel,
.page-dashboard .net-view .net-card { border:1px solid rgba(0,212,255,.23); border-radius:16px; background:linear-gradient(160deg,rgba(15,35,63,.94),rgba(8,22,43,.95) 72%); box-shadow:0 14px 34px rgba(0,0,0,.21),inset 0 1px 0 rgba(255,255,255,.035); }
.page-dashboard .nx-card h2,
.page-dashboard .net-card h3 { letter-spacing:-.012em; }
.page-dashboard .nx-kpi { border:1px solid rgba(0,212,255,.28); background:linear-gradient(150deg,rgba(11,30,56,.96),rgba(8,19,39,.94)); border-radius:16px; min-height:76px; }
.page-dashboard .nx-kpi b { color:#f5fbff; font-variant-numeric:tabular-nums; }
.page-dashboard .nx-kpi.hl { border-color:rgba(160,76,255,.7); box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 18px rgba(138,43,226,.13); }
.page-dashboard .nx-kpi.hl2 { border-color:rgba(0,212,255,.62); box-shadow:0 0 16px rgba(0,212,255,.1); }
.page-dashboard .nx-row { border-bottom-color:rgba(0,212,255,.1); }
.page-dashboard .nx-row .val { font-variant-numeric:tabular-nums; }
.page-dashboard .nx-btn,
.page-dashboard .btn { min-height:42px; border-radius:12px; border-color:rgba(0,212,255,.43); background:rgba(7,24,44,.9); box-shadow:none; transition:background .18s,border-color .18s,box-shadow .18s; }
.page-dashboard .nx-btn:hover:not(:disabled),
.page-dashboard .btn:hover:not(:disabled) { border-color:var(--cyan); background:rgba(0,212,255,.13); box-shadow:0 0 16px rgba(0,212,255,.12); }
.page-dashboard .nx-btn.primary,
.page-dashboard .btn.primary,
.page-dashboard .nx-search-btn { color:white; background:var(--grad-primary); border:1px solid rgba(223,233,255,.36); box-shadow:0 6px 20px rgba(49,92,241,.18); font-weight:700; }
.page-dashboard .nx-btn.primary:hover:not(:disabled),
.page-dashboard .btn.primary:hover:not(:disabled) { background:linear-gradient(105deg,#00cef0,#478cff,#a642f3); box-shadow:0 8px 24px rgba(91,61,234,.27); }
.page-dashboard .nx-chip,
.page-dashboard .chip { border-color:rgba(0,212,255,.36); background:rgba(5,20,39,.9); }
.page-dashboard .nx-chip:hover,
.page-dashboard .chip:hover { background:rgba(0,212,255,.12); }
.page-dashboard .nx-card input,
.page-dashboard .nx-card select,
.page-dashboard .nx-login input,
.page-dashboard .net-view input[type="search"],
.page-dashboard .net-view select { background-color:rgba(4,17,34,.95); border-color:rgba(0,212,255,.27); color:var(--text); }
.page-dashboard .nx-card input:focus,
.page-dashboard .nx-card select:focus,
.page-dashboard .net-view input:focus,
.page-dashboard .net-view select:focus { outline:2px solid rgba(0,212,255,.45); outline-offset:1px; }
.page-dashboard .tr-list { gap:9px; scrollbar-color:rgba(0,212,255,.32) transparent; }
.page-dashboard .tr-card { border:1px solid rgba(0,212,255,.25); border-radius:14px; background:linear-gradient(135deg,rgba(9,28,52,.94),rgba(7,20,41,.96)); transition:border-color .16s,background .16s,box-shadow .16s; }
.page-dashboard .tr-card:hover { border-color:rgba(0,212,255,.65); background:rgba(14,36,66,.96); }
.page-dashboard .tr-card.active { border-color:rgba(171,72,255,.95); background:linear-gradient(105deg,rgba(13,45,74,.94),rgba(45,22,81,.66)); box-shadow:inset 0 0 0 1px rgba(171,72,255,.12),0 0 19px rgba(138,43,226,.17); }
.page-dashboard .tr-card-head strong { font-size:clamp(20px,2vw,25px); line-height:1.15; font-variant-numeric:tabular-nums; }
.page-dashboard .tr-chip { border-radius:8px; font-weight:650; }
.page-dashboard .tr-detail { background:rgba(8,19,41,.74); border-color:rgba(150,69,241,.52); border-radius:15px; }
.page-dashboard .tr-leg { min-width:0; }
.page-dashboard .tr-leg-body { min-width:0; overflow-wrap:anywhere; }
.page-dashboard .tr-leg-time { font-variant-numeric:tabular-nums; color:#f3f9ff; }
.page-dashboard .tr-sources { background:rgba(4,19,36,.55); border-color:rgba(0,212,255,.29); }
.page-dashboard .tr-source,
.page-dashboard .tr-src { overflow-wrap:anywhere; }
.page-dashboard .map-card,
.page-dashboard .map-wrap,
.page-dashboard .net-map-frame { overflow:hidden; background:#041324; }
.page-dashboard .nx-map,
.page-dashboard #map,
.page-dashboard .net-worldmap { background:#041324; }
.page-dashboard .map-tools button,
.page-dashboard .tool,
.page-dashboard .net-iconbtn { border-color:rgba(0,212,255,.52); border-radius:12px; background:rgba(4,20,38,.9); color:var(--cyan); box-shadow:0 5px 15px rgba(0,0,0,.16); }
.page-dashboard .map-tools button:hover,
.page-dashboard .tool:hover,
.page-dashboard .net-iconbtn:hover { background:rgba(0,212,255,.16); box-shadow:0 0 18px rgba(0,212,255,.18); }
.page-dashboard .map-status { color:#ffe2e5; border-color:rgba(255,71,87,.9); background:rgba(53,5,17,.91); overflow-wrap:anywhere; }
.page-dashboard .map-badge,
.page-dashboard .sim-banner { border-color:var(--sim); color:#ffd66a; background:rgba(33,25,4,.9); }
.page-dashboard .wt-tip { width:max-content; max-width:min(280px,72vw); white-space:normal; overflow-wrap:break-word; }
.page-dashboard .net-view { --nb-bg:var(--bg); --nb-panel:var(--surface); --nb-raise:var(--surface2); --nb-cyan:var(--cyan); --nb-blue:#328df4; --nb-violet:var(--violet); --nb-ok:var(--ok); --nb-warn:var(--warn); --nb-bad:var(--err); --nb-text:var(--text); --nb-muted:var(--muted); --nb-line:rgba(0,212,255,.23); background:radial-gradient(900px 500px at 80% -10%,rgba(138,43,226,.12),transparent 70%),var(--bg); border-color:var(--line); }
.page-dashboard .net-view .net-card,
.page-dashboard .net-view .panel { border-radius:16px; }
.page-dashboard .net-stat { border-radius:15px; background:linear-gradient(150deg,rgba(13,34,61,.96),rgba(7,23,44,.94)); border-color:var(--nb-line); }
.page-dashboard .net-stat strong { font-variant-numeric:tabular-nums; }
.page-dashboard .net-tabs [role="tab"][aria-selected="true"] { color:var(--cyan); border-bottom-color:var(--cyan); }
.page-dashboard .net-table-wrap th { background:#0c2340; }
.page-dashboard .net-table-wrap tbody tr.sel { background:rgba(0,212,255,.12); }
.page-dashboard .layout.cockpit .panel,
.page-dashboard .layout .panel { border-color:var(--line); }
.page-dashboard .cockpit-band,
.page-dashboard .cockpit-tabs { border-color:var(--line); }
.page-dashboard .status-dot.ONLINE,
.page-dashboard .service.online .dot { background:var(--ok); color:var(--ok); }
.page-dashboard .status-dot.VERALTET { background:var(--warn); color:var(--warn); }
.page-dashboard .status-dot.OFFLINE,
.page-dashboard .service.offline .dot { background:var(--err); color:var(--err); }
@media (min-width:901px) {
.page-dashboard .nx-content { padding-bottom:26px; }
.page-dashboard .nx-grid-top { gap:16px; }
.page-dashboard .nx-grid-top .planner-card { overscroll-behavior:contain; }
.page-dashboard .nx-grid-top .map-card { min-width:0; }
}
@media (min-width:901px) and (max-width:1280px) {
.page-dashboard .nx-grid-top { grid-template-columns:minmax(300px,380px) minmax(0,1fr); }
.page-dashboard .nx-grid-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
.page-dashboard .nx-app { min-height:100dvh; }
.page-dashboard .nx-side { height:var(--nx-bottom); padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px)); background:rgba(3,11,23,.98); border-top:1px solid rgba(0,212,255,.45); box-shadow:0 -9px 26px rgba(0,0,0,.42); }
.page-dashboard .nx-nav { display:flex; gap:4px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:none; }
.page-dashboard .nx-nav::-webkit-scrollbar { display:none; }
.page-dashboard .nx-nav a { flex:0 0 67px; min-height:54px; padding:5px 3px; border-radius:11px; gap:3px; font-size:10px; }
.page-dashboard .nx-nav a.active { box-shadow:0 0 10px rgba(0,212,255,.2); }
.page-dashboard .nx-content { padding-bottom:calc(var(--nx-bottom) + 26px); scroll-padding-bottom:calc(var(--nx-bottom) + 26px); }
.page-dashboard .nx-grid-top { height:auto; }
.page-dashboard .nx-grid-top .planner-card { overflow:visible; }
.page-dashboard .nx-split.transit .planner-card { max-height:none; overflow:visible; }
.page-dashboard .nx-grid-top,
.page-dashboard .nx-split,
.page-dashboard .nx-split.transit,
.page-dashboard .nx-split.trips { grid-template-columns:minmax(0,1fr); }
.page-dashboard .nx-grid-bottom { grid-template-columns:minmax(0,1fr); }
.page-dashboard .nx-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
.page-dashboard .nx-head { background:linear-gradient(180deg,rgba(3,11,23,.98) 72%,rgba(3,11,23,.88)); }
.page-dashboard .nx-search { min-width:0; }
.page-dashboard .nx-card,
.page-dashboard .net-view .net-card { border-radius:15px; }
.page-dashboard .map-card { min-height:340px; }
.page-dashboard .map-card.full { height:min(65dvh,600px); min-height:340px; }
.page-dashboard .tr-list { max-height:none; }
.page-dashboard .tr-detail { padding:12px; }
.page-dashboard .net-view { bottom:calc(var(--nx-bottom) + 10px); }
}
@media (prefers-reduced-motion:reduce) {
.page-dashboard *,
.page-dashboard *::before,
.page-dashboard *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
@media (forced-colors:active) {
.page-dashboard .nx-card,
.page-dashboard .panel,
.page-dashboard .tr-card,
.page-dashboard .net-card,
.page-dashboard .nx-nav a.active { border:1px solid CanvasText; }
.page-dashboard .nx-btn.primary,
.page-dashboard .btn.primary { border:1px solid ButtonText; }
}
.page-dashboard .nx-card .nx-field input { background-color: transparent; border: 0; outline: 0; }
.page-dashboard .nx-card .nx-field input:focus { outline: 0; }
.page-dashboard .map-status { bottom: 34px; }
.page-dashboard .map-status.info { color: var(--text); border-color: var(--cyan); background: rgba(3, 20, 36, .92); }

/* ===== NEXUS V2: Mobile/Tablet-Navigation „Dashboard | Karte | ÖPNV | Mehr“ (Dashboard, ≤ 900 px) ===== */
.page-dashboard .nx-more-btn, .page-dashboard .nx-sheet, .page-dashboard .nx-sheet-back { display:none; }
.page-dashboard .nx-sheet.hidden, .page-dashboard .nx-sheet-back.hidden { display:none; }
@media (max-width:900px) {
  .page-dashboard .nx-brand, .page-dashboard .nx-sysline, .page-dashboard .nx-nav a.more-item { display:none; }
  .page-dashboard .nx-side { display:flex; align-items:stretch; padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px)); }
  .page-dashboard .nx-nav { flex:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; overflow:visible; width:100%; }
  .page-dashboard .nx-nav a, .page-dashboard .nx-more-btn { min-width:0; flex:none; min-height:56px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:5px 2px; border-radius:14px; font-size:11px; color:var(--text); text-decoration:none; background:transparent; border:1px solid transparent; font-family:inherit; cursor:pointer; }
  .page-dashboard .nx-more-btn { display:flex; }
  .page-dashboard .nx-more-btn .ic { color:var(--cyan); width:22px; height:22px; }
  .page-dashboard .nx-more-btn.active, .page-dashboard .nx-more-btn[aria-expanded="true"] { color:#fff; background:var(--grad-active); box-shadow:0 0 10px rgba(0,212,255,.2); }
  .page-dashboard .nx-more-btn.active .ic, .page-dashboard .nx-more-btn[aria-expanded="true"] .ic { color:#fff; }
  .page-dashboard .nx-sheet-back { position:fixed; inset:0; z-index:60; background:rgba(0,6,14,.62); display:block; }
  .page-dashboard .nx-sheet-back.hidden { display:none; }
  .page-dashboard .nx-sheet { position:fixed; left:0; right:0; bottom:var(--nx-bottom); z-index:70; display:block; max-height:calc(100dvh - var(--nx-bottom) - 24px); overflow:auto; overscroll-behavior:contain; padding:10px 14px 16px; background:rgba(7,20,38,.99); border:1px solid rgba(0,212,255,.35); border-bottom:0; border-radius:20px 20px 0 0; box-shadow:0 -14px 40px rgba(0,0,0,.55); outline:none; }
  .page-dashboard .nx-sheet.hidden { display:none; }
  .page-dashboard .nx-side { z-index:80; }
  .page-dashboard .nx-sheet-grip { width:42px; height:4px; border-radius:2px; background:rgba(143,176,196,.5); margin:0 auto 12px; }
  .page-dashboard .nx-sheet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
  .page-dashboard .nx-sheet-grid a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:76px; padding:10px 4px; border-radius:14px; color:var(--text); text-decoration:none; font-size:12.5px; text-align:center; background:rgba(0,212,255,.06); border:1px solid rgba(0,212,255,.22); }
  .page-dashboard .nx-sheet-grid a .ic { width:24px; height:24px; color:var(--cyan); }
  .page-dashboard .nx-sheet-grid a.active { color:#fff; background:var(--grad-active); border-color:rgba(196,230,255,.46); }
  .page-dashboard .nx-sheet-grid a.active .ic { color:#fff; }
  .page-dashboard .nx-sheet-grid a:focus-visible, .page-dashboard .nx-more-btn:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
}
@media (max-width:900px) and (min-width:768px) {
  .page-dashboard .nx-sheet-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .page-dashboard .nx-sheet { left:50%; right:auto; width:min(560px,100%); transform:translateX(-50%); }
}
@media (prefers-reduced-motion:no-preference) { @media (max-width:900px) { .page-dashboard .nx-sheet:not(.hidden) { animation:nx-sheet-up .2s ease-out; } } }
@keyframes nx-sheet-up { from { transform:translateY(24px); opacity:0; } }

@media (max-width:900px) { .page-dashboard .nx-sheet .nx-btn { min-height:48px; } }
.page-dashboard .nx-sheet .nx-btn { width:100%; }

/* ===== NEXUS V2: Cockpit – Mobile/Tablet-Navigation „Dashboard | Karte | ÖPNV | Mehr“ (≤ 1100 px) ===== */
.page-cockpit .only-small, .page-cockpit .lbl-short, .page-cockpit .nx-sheet, .page-cockpit .nx-sheet-back { display:none; }
@media (max-width:1100px) {
  .page-cockpit .sidebar .side-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; overflow:visible; }
  .page-cockpit .sidebar .more-item, .page-cockpit .sidebar .only-wide, .page-cockpit .sidebar .lbl-full { display:none; }
  .page-cockpit .sidebar .only-small { display:flex; }
  .page-cockpit .sidebar .lbl-short { display:inline; }
  .page-cockpit .sidebar .side-item { min-width:0; min-height:56px; flex:none; font-size:11px; }
  .page-cockpit .sidebar .side-item.more-btn[aria-expanded="true"] { color:#fff; background:var(--grad-active); }
  .page-cockpit .sidebar .side-item.more-btn.active svg, .page-cockpit .sidebar .side-item.more-btn[aria-expanded="true"] svg { color:#fff; }
  .page-cockpit .nx-sheet-back { position:fixed; inset:0; z-index:140; background:rgba(0,6,14,.62); display:block; }
  .page-cockpit .nx-sheet { position:fixed; left:0; right:0; bottom:var(--bottom-nav); z-index:150; display:block; max-height:calc(100dvh - var(--bottom-nav) - 24px); overflow:auto; overscroll-behavior:contain; padding:10px 14px 16px; background:rgba(7,20,38,.99); border:1px solid rgba(0,212,255,.35); border-bottom:0; border-radius:20px 20px 0 0; box-shadow:0 -14px 40px rgba(0,0,0,.55); outline:none; }
  .page-cockpit .nx-sheet.hidden, .page-cockpit .nx-sheet-back.hidden { display:none; }
  .page-cockpit .nx-sheet-grip { width:42px; height:4px; border-radius:2px; background:rgba(143,176,196,.5); margin:0 auto 12px; }
  .page-cockpit .nx-sheet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .page-cockpit .nx-sheet-grid button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:80px; padding:10px 4px; border-radius:14px; color:var(--text); font:inherit; font-size:12.5px; text-align:center; cursor:pointer; background:rgba(0,212,255,.06); border:1px solid rgba(0,212,255,.22); }
  .page-cockpit .nx-sheet-grid button svg { width:24px; height:24px; color:var(--cyan); fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .page-cockpit .nx-sheet-grid button.active { color:#fff; background:var(--grad-active); border-color:rgba(196,230,255,.46); }
  .page-cockpit .nx-sheet-grid button.active svg { color:#fff; }
  .page-cockpit .nx-sheet-grid button:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
}
@media (min-width:768px) and (max-width:1100px) { .page-cockpit .nx-sheet { left:50%; right:auto; width:min(560px,100%); transform:translateX(-50%); } .page-cockpit .nx-sheet-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1100px) { .page-cockpit .sidebar { z-index:160; } }

/* Tablet/Mobil (Dashboard): Karte füllt die Kartenansicht bis zur Navigationsleiste; auf dem Tablet steht die Karte über dem Planer (Vorlage) */
@media (max-width:900px) {
  .page-dashboard .map-card.full { height:calc(100dvh - var(--nx-bottom) - 176px); min-height:340px; max-height:none; }
}
@media (min-width:600px) and (max-width:900px) {
  .page-dashboard .nx-grid-top .map-card { order:-1; min-height:380px; }
}

/* Cockpit ≥ 1101 px: Dienst-Chips bleiben in einer Zeile (kein Überlauf der Kopfzeile), SIMULATION-Hinweis liegt unter den Kartenumschaltern */
@media (min-width:1101px) {
  .page-cockpit .svc-strip { flex-wrap:nowrap; min-width:0; }
  .page-cockpit .svc { min-width:0; }
}
@media (min-width:1101px) and (max-width:1500px) {
  .page-cockpit .cockpit-title strong { font-size:17px; letter-spacing:1px; }
  .page-cockpit .svc { padding:4px 8px; column-gap:6px; }
  .page-cockpit .svc-name { font-size:12px; }
  .page-cockpit .svc-state { font-size:10.5px; white-space:nowrap; }
}
@media (min-width:1101px) { .page-cockpit .sim-banner { top:66px; } }

@media (min-width:1101px) { .page-dashboard #stat-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); } }

/* ===================================================================================================================
   NEXUS V2 – Komponentenschicht (Designvorlage): Neon-Karten, Statuspillen, Gerätekarten, Fahrten, Statistik,
   Einstellungen, ÖPNV-Details, leere/Fehler-Zustände, Login, Modals. Nutzt ausschließlich tokens.css.
   =================================================================================================================== */
.page-cockpit .sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---- Dashboard: Karten, Pillen, Knöpfe -------------------------------------------------------------------------- */
.page-dashboard .nx-card { border:1.5px solid var(--neon-line); box-shadow:var(--neon-card); }
.page-dashboard .nx-card h2 { padding-bottom:10px; border-bottom:1px solid rgba(0,212,255,.14); margin-bottom:12px; }
.page-dashboard .nx-card h2.nx-h2-gap { margin-top:20px; }
.page-dashboard .nx-kpi { border-width:1.5px; box-shadow:var(--neon-card); }
.page-dashboard .nx-row .val.ok, .page-dashboard .nx-row .val.warn, .page-dashboard .nx-row .val.bad, .page-dashboard .nx-row .val.muted,
.page-dashboard .pill, .page-dashboard .tr-state, .page-dashboard .trip .dist {
  display:inline-flex; align-items:center; justify-content:center; padding:3px 12px; border-radius:999px; border:1px solid currentColor; font-size:12px; font-weight:600; white-space:nowrap; line-height:1.3;
}
.page-dashboard .nx-row .val.ok, .page-dashboard .pill.ok, .page-dashboard .tr-state.ok { color:var(--ok); background:rgba(0,255,136,.08); border-color:rgba(0,255,136,.55); }
.page-dashboard .nx-row .val.warn, .page-dashboard .pill.warn, .page-dashboard .tr-state.warn { color:var(--warn); background:rgba(255,176,32,.09); border-color:rgba(255,176,32,.55); }
.page-dashboard .nx-row .val.bad, .page-dashboard .pill.bad, .page-dashboard .tr-state.bad { color:var(--fail); background:rgba(255,77,109,.09); border-color:rgba(255,77,109,.55); }
.page-dashboard .nx-row .val.muted, .page-dashboard .tr-state.muted { color:var(--muted); background:rgba(143,176,196,.08); border-color:rgba(143,176,196,.4); }
.page-dashboard .pill.sim { background:rgba(255,176,32,.09); }
.page-dashboard .trip .dist { color:var(--cyan); background:rgba(0,212,255,.08); border-color:rgba(0,212,255,.5); }
.page-dashboard .nx-btn { border-width:1.5px; }
.page-dashboard .nx-btn.small { min-height:34px; padding:0 14px; font-size:13px; }
.page-dashboard .nx-btn.danger { background:rgba(255,77,109,.08); border-color:rgba(255,77,109,.7); color:#ffd0d8; }
.page-dashboard .nx-btn.primary { box-shadow:0 0 18px rgba(0,170,255,.28); }
.page-dashboard .nx-iconbtn { border-radius:14px; border-width:1.5px; box-shadow:var(--glow); }

/* ---- Dashboard: Geräte -------------------------------------------------------------------------------------------- */
.page-dashboard .nx-list.devices { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.page-dashboard .nx-dev { display:grid; gap:12px; padding:14px; border:1.5px solid var(--neon-line); border-radius:16px; background:linear-gradient(180deg,rgba(16,33,63,.72),rgba(7,20,38,.9)); box-shadow:var(--neon-card); cursor:pointer; }
.page-dashboard .nx-dev:hover, .page-dashboard .nx-dev:focus-visible { border-color:var(--cyan); outline:none; box-shadow:var(--neon-card), var(--glow); }
.page-dashboard .nx-dev.online { border-color:rgba(0,255,136,.45); }
.page-dashboard .nx-dev.warn { border-color:rgba(255,176,32,.55); }
.page-dashboard .nx-dev.bad { border-color:rgba(255,77,109,.5); }
.page-dashboard .nx-dev-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; }
.page-dashboard .nx-dev-head .ic { width:42px; height:42px; padding:9px; border-radius:13px; border:1px solid var(--line2); background:rgba(0,212,255,.08); color:var(--cyan); }
.page-dashboard .nx-dev-head b { display:block; overflow-wrap:anywhere; }
.page-dashboard .nx-dev-head small { color:var(--muted); font-size:12px; }
.page-dashboard .nx-dev-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.page-dashboard .nx-dev-facts .fact b { font-size:14px; }
.page-dashboard .nx-bar { height:8px; border-radius:99px; background:rgba(0,212,255,.12); overflow:hidden; }
.page-dashboard .nx-bar i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--ok),var(--cyan)); box-shadow:0 0 10px rgba(0,255,136,.4); }
.page-dashboard .nx-bar.low i { background:linear-gradient(90deg,var(--fail),var(--warn)); }
.page-dashboard .nx-dev .nx-actions { margin-top:0; }

/* ---- Dashboard: Fahrten, Statistik ---------------------------------------------------------------------------------- */
.page-dashboard .trip { border:1px solid rgba(0,212,255,.18); background:rgba(6,19,38,.55); margin-bottom:8px; }
.page-dashboard .trip:hover { border-color:var(--cyan); }
.page-dashboard .trip.on { border:1.5px solid var(--cyan); background:linear-gradient(90deg,rgba(0,212,255,.1),rgba(138,43,226,.12)); box-shadow:var(--glow); }
.page-dashboard .trip svg.thumb { border-width:1.5px; }
.page-dashboard .trip-detail > h2 { margin:0; font-size:17px; padding:0; border:0; }
.page-dashboard .trip-detail svg.thumb.big { border:1.5px solid var(--neon-line); box-shadow:inset 0 0 30px rgba(0,110,255,.08); }
.page-dashboard .facts .fact { border-width:1.5px; }
.page-dashboard .trip-detail .facts .fact:nth-child(1), .page-dashboard #stat-kpis .nx-kpi.hl { border-color:rgba(138,43,226,.8); box-shadow:0 0 16px rgba(138,43,226,.3); }
.page-dashboard .trip-detail .facts .fact:nth-child(2) { border-color:rgba(0,212,255,.6); box-shadow:0 0 14px rgba(0,212,255,.2); }
.page-dashboard .speedline { stroke:#b46bff; stroke-width:2.2; filter:drop-shadow(0 0 4px rgba(138,43,226,.8)); vector-effect:non-scaling-stroke; }
.page-dashboard .chart rect { fill:url(#nx-bar-grad); opacity:1; filter:drop-shadow(0 0 6px rgba(0,212,255,.45)); }
.page-dashboard .chart text { font-size:12px; }
.page-dashboard #stat-kpis .nx-kpi { align-items:flex-start; }
.page-dashboard #stat-kpis .nx-kpi small:last-child { font-size:11.5px; }
.page-dashboard .nx-seg { border-width:1.5px; box-shadow:var(--glow); }

/* ---- Dashboard: Einstellungen, Favoriten ------------------------------------------------------------------------------ */
.page-dashboard .nx-links { list-style:none; padding:0; margin:0 0 6px; }
.page-dashboard .nx-links a { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(6,19,38,.7); color:var(--text); text-decoration:none; }
.page-dashboard .nx-links a::after { content:"›"; margin-left:auto; color:var(--cyan); font-size:20px; line-height:1; }
.page-dashboard .nx-links a:hover, .page-dashboard .nx-links a:focus-visible { border-color:var(--cyan); box-shadow:var(--glow); outline:none; }
.page-dashboard .nx-events { list-style:none; padding:0; }
.page-dashboard .nx-events li { padding:6px 10px; border-left:2px solid var(--violet); background:rgba(138,43,226,.07); border-radius:0 8px 8px 0; }
.page-dashboard .nx-events:empty { display:none; }

/* ---- Dashboard: ÖPNV-Details (Verbindungen, Verlauf der Teilstrecken) --------------------------------------------------- */
.page-dashboard .tr-card { border-width:1.5px; }
.page-dashboard .tr-card.active { box-shadow:0 0 18px rgba(138,43,226,.3); }
.page-dashboard .tr-detail { border:1.5px solid rgba(138,43,226,.55); background:rgba(138,43,226,.05); box-shadow:0 0 18px rgba(138,43,226,.14); }
.page-dashboard .tr-leg { padding:6px 0 6px 0; }
.page-dashboard .tr-leg-time { color:var(--cyan); }
.page-dashboard .tr-leg::before { content:""; position:absolute; left:58px; top:0; bottom:0; width:2px; background:linear-gradient(180deg,rgba(0,212,255,.55),rgba(138,43,226,.55)); }
.page-dashboard .tr-leg-body { padding-left:18px; position:relative; }
.page-dashboard .tr-leg-body::before { content:""; position:absolute; left:-6px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--bg); border:2px solid var(--cyan); box-shadow:0 0 8px var(--cyan); }
.page-dashboard .tr-sources { border-width:1.5px; }

/* ---- Dashboard: leere und fehlerhafte Zustände -------------------------------------------------------------------------- */
.page-dashboard .nx-empty { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px dashed rgba(0,212,255,.38); border-radius:14px; background:rgba(0,212,255,.04); color:var(--muted); }
.page-dashboard .nx-empty::before { content:"i"; flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--cyan); color:var(--cyan); font-weight:700; font-size:14px; }
.page-dashboard .nx-error:not(:empty) { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(255,77,109,.65); border-radius:12px; background:rgba(255,77,109,.1); color:#ffc9d2; }
.page-dashboard .nx-error:not(:empty)::before { content:"!"; flex:none; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--fail); color:#1a0309; font-weight:800; font-size:13px; }
.page-dashboard .poi-status[data-kind="error"] { padding:8px 12px; border:1px solid rgba(255,77,109,.6); border-radius:10px; background:rgba(255,77,109,.1); }

/* ---- Dashboard: Anmeldung ------------------------------------------------------------------------------------------------- */
.page-dashboard .nx-login { background:radial-gradient(900px 560px at 50% 18%,rgba(0,80,160,.38),transparent 70%),repeating-linear-gradient(0deg,rgba(0,212,255,.045) 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,rgba(0,212,255,.045) 0 1px,transparent 1px 44px),var(--bg); }
.page-dashboard .nx-login-box { width:min(400px,92vw); padding:30px 28px 26px; border:1.5px solid var(--cyan); box-shadow:0 0 0 1px rgba(0,212,255,.15),0 0 34px rgba(0,170,255,.3),0 0 70px rgba(138,43,226,.18); gap:14px; }
.page-dashboard .nx-login-box label { display:grid; gap:6px; color:var(--muted); font-size:13px; }
.page-dashboard .nx-login-box input { min-height:46px; padding:0 14px; border-radius:12px; border:1.5px solid var(--line2); background:rgba(3,11,23,.9); color:var(--text); font-size:16px; }
.page-dashboard .nx-login-box input:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,212,255,.2),var(--glow); }
.page-dashboard .nx-login-box .nx-btn.primary { min-height:48px; font-size:15px; }

/* ---- Cockpit: Pillen, Login, Modals, Meldungen ------------------------------------------------------------------------------ */
.page-cockpit .pill { display:inline-flex; align-items:center; padding:3px 12px; border-radius:999px; border:1px solid currentColor; font-size:12px; font-weight:600; white-space:nowrap; line-height:1.3; }
.page-cockpit .pill.ok { color:var(--ok); background:rgba(0,255,136,.08); border-color:rgba(0,255,136,.55); }
.page-cockpit .pill.warn { color:var(--warn); background:rgba(255,176,32,.09); border-color:rgba(255,176,32,.55); }
.page-cockpit .pill.bad { color:var(--fail); background:rgba(255,77,109,.09); border-color:rgba(255,77,109,.55); }
.page-cockpit .login { background:radial-gradient(900px 560px at 50% 18%,rgba(0,80,160,.38),transparent 70%),repeating-linear-gradient(0deg,rgba(0,212,255,.045) 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,rgba(0,212,255,.045) 0 1px,transparent 1px 44px),var(--bg); }
.page-cockpit .login-box { width:min(400px,92vw); padding:30px 28px 26px; border:1.5px solid var(--cyan); box-shadow:0 0 0 1px rgba(0,212,255,.15),0 0 34px rgba(0,170,255,.3),0 0 70px rgba(138,43,226,.18); }
.page-cockpit .login-logo { display:flex; align-items:center; gap:14px; }
.page-cockpit .login-logo > div { display:grid; line-height:1.05; }
.page-cockpit .login-logo strong { font-size:30px; font-weight:600; letter-spacing:.12em; }
.page-cockpit .login-logo span { font-size:11px; letter-spacing:.16em; }
.page-cockpit .login-logo em { font-style:normal; font-size:12px; letter-spacing:.5em; color:var(--cyan); margin-top:2px; }
.page-cockpit .login-mark { width:52px; height:52px; filter:drop-shadow(0 0 8px rgba(0,212,255,.6)); }
.page-cockpit .login-mark path { fill:none; stroke-width:3; stroke-linejoin:round; }
.page-cockpit .login-mark path:first-child { stroke:var(--cyan); }
.page-cockpit .login-mark path:last-child { stroke:var(--violet); }
.page-cockpit .login-box p { margin:0; }
.page-cockpit .login input[type=password] { min-height:46px; border-radius:12px; border:1.5px solid var(--line2); }
.page-cockpit .login input[type=password]:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,212,255,.2),var(--glow); }
.page-cockpit .login .btn.primary { min-height:48px; border-radius:999px; background:var(--grad-primary); border-color:rgba(255,255,255,.4); color:#fff; font-size:15px; }
.page-cockpit .login .error:not(:empty) { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(255,77,109,.65); border-radius:12px; background:rgba(255,77,109,.1); color:#ffc9d2; }
.page-cockpit .login .error:not(:empty)::before { content:"!"; flex:none; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--fail); color:#1a0309; font-weight:800; font-size:13px; }

.page-cockpit .modal-backdrop { background:rgba(0,6,14,.74); backdrop-filter:blur(3px); }
.page-cockpit .modal { border:1.5px solid var(--neon-line); box-shadow:var(--neon-card),0 30px 80px rgba(0,0,0,.65); }
.page-cockpit .modal header { padding-bottom:12px; border-bottom:1px solid rgba(0,212,255,.18); }
.page-cockpit .modal header h3 { font-size:18px; letter-spacing:.02em; }
.page-cockpit .modal header .icon-btn { width:40px; height:40px; border-radius:12px; border:1.5px solid var(--line2); display:grid; place-items:center; color:var(--cyan); }
.page-cockpit .modal .modal-lead { margin:0 0 12px; }
.page-cockpit .modal input[type=text] { min-height:42px; border-radius:12px; border:1.5px solid var(--line2); }
.page-cockpit .modal input[type=text]:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,212,255,.18); }
.page-cockpit .dev-item { border:1.5px solid var(--neon-line); border-radius:14px; background:linear-gradient(180deg,rgba(16,33,63,.6),rgba(7,20,38,.8)); box-shadow:var(--neon-card); }
.page-cockpit .dev-item .status-dot { flex:none; }
.page-cockpit .modal .btn.danger { border-radius:999px; background:rgba(255,77,109,.08); border-color:rgba(255,77,109,.7); box-shadow:none; }
.page-cockpit .modal .btn.primary { border-radius:999px; background:var(--grad-primary); border-color:rgba(255,255,255,.4); color:#fff; }
.page-cockpit .hist-wrap { max-height:52vh; overflow:auto; border:1px solid var(--line); border-radius:12px; }
.page-cockpit .hist-wrap .hist-table th { position:sticky; top:0; background:rgba(7,20,38,.98); color:var(--cyan); font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
.page-cockpit .hist-table tbody tr:nth-child(even) { background:rgba(0,212,255,.04); }
.page-cockpit .empty-state { padding:16px; border:1px dashed rgba(0,212,255,.38); border-radius:14px; background:rgba(0,212,255,.04); text-align:center; }
.page-cockpit .toast { border-width:1.5px; border-left-width:4px; border-radius:12px; box-shadow:var(--neon-card); }
.page-cockpit .nav-error, .page-cockpit .poi-status.error { border-color:rgba(255,77,109,.65); background:rgba(255,77,109,.1); border-radius:12px; color:#ffc9d2; }

/* ---- Cockpit: Info-Karten in Dialogen (Simulation, Einstellungen), Handy-Seite -------------------------------------------- */
.page-cockpit .sim-flag { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 14px; margin-bottom:14px; border:1.5px solid var(--sim); border-radius:12px; background:rgba(255,176,32,.09); color:#ffe2a8; }
.page-cockpit .sim-flag strong { letter-spacing:.14em; color:var(--sim); }
.page-cockpit .card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.page-cockpit .info-card { padding:14px; border:1.5px solid var(--neon-line); border-radius:14px; background:linear-gradient(180deg,rgba(16,33,63,.6),rgba(7,20,38,.8)); box-shadow:var(--neon-card); min-width:0; }
.page-cockpit .info-card.wide { grid-column:1 / -1; }
.page-cockpit .info-card h4 { margin:0 0 10px; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan); font-weight:600; }
.page-cockpit .info-card p { margin:0 0 8px; color:var(--muted); font-size:13.5px; line-height:1.5; }
.page-cockpit .info-big { margin:2px 0 10px; }
.page-cockpit .info-big .pill { font-size:15px; padding:5px 18px; }
.page-cockpit .limit-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.page-cockpit .limit-list li { display:flex; align-items:center; gap:12px; color:var(--text); font-size:13.5px; }
.page-cockpit .limit-list .pill { min-width:92px; justify-content:center; }
.page-cockpit .kv { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; font-size:13.5px; }
.page-cockpit .kv dt { color:var(--muted); }
.page-cockpit .kv dd { margin:0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.page-cockpit .modal-note { margin:12px 0 0; font-size:12.5px; color:var(--muted); }
.page-cockpit .modal-actions { display:flex; gap:10px; margin-top:12px; }
.page-cockpit .modal-actions .btn { flex:1; min-height:46px; border-radius:999px; }
.page-cockpit .modal-actions .btn.danger { background:rgba(255,77,109,.08); }

.page-cockpit .phone { border:1.5px solid var(--cyan); box-shadow:0 0 0 1px rgba(0,212,255,.15),0 0 34px rgba(0,170,255,.28),0 0 70px rgba(138,43,226,.16); gap:16px; }
.page-cockpit .phone .login-logo { margin-bottom:2px; }
.page-cockpit .phone .sub { font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--cyan); margin:0; }
.page-cockpit .ph-card { display:flex; align-items:center; gap:14px; padding:12px 14px; border:1.5px solid var(--neon-line); border-radius:14px; background:rgba(6,19,38,.7); box-shadow:var(--neon-card); min-width:0; }
.page-cockpit .ph-card > div { min-width:0; }
.page-cockpit .ph-card small { display:block; color:var(--muted); font-size:12px; }
.page-cockpit .ph-card strong { display:block; font-size:17px; overflow-wrap:anywhere; }
.page-cockpit .ph-ic { flex:none; width:44px; height:44px; padding:10px; border-radius:13px; border:1px solid var(--line2); background:rgba(0,212,255,.08); fill:none; stroke:var(--cyan); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.page-cockpit .phone .status-line { padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(0,212,255,.05); }
.page-cockpit .phone .btn-row { flex-direction:column; }
.page-cockpit .phone .btn { min-height:52px; border-radius:999px; font-size:16px; }
.page-cockpit .phone .btn.primary { background:var(--grad-primary); border-color:rgba(255,255,255,.4); color:#fff; box-shadow:0 0 18px rgba(0,170,255,.28); }
.page-cockpit .phone .btn.primary:disabled { background:rgba(11,25,48,.9); color:var(--muted); box-shadow:none; }
.page-cockpit .phone .btn.danger { background:rgba(255,77,109,.08); border-color:rgba(255,77,109,.7); color:#ffd0d8; box-shadow:none; }
.page-cockpit .ph-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.page-cockpit .ph-fact { padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(6,19,38,.7); min-width:0; }
.page-cockpit .ph-fact:nth-child(1) { border-color:rgba(138,43,226,.7); box-shadow:0 0 14px rgba(138,43,226,.22); }
.page-cockpit .ph-fact:nth-child(2) { border-color:rgba(0,212,255,.55); }
.page-cockpit .ph-fact small { display:block; color:var(--muted); font-size:11.5px; }
.page-cockpit .ph-fact b { font-size:17px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.page-cockpit .phone .error:not(:empty) { display:flex; align-items:center; gap:10px; margin:0; padding:10px 12px; border:1px solid rgba(255,77,109,.65); border-radius:12px; background:rgba(255,77,109,.1); color:#ffc9d2; }
.page-cockpit .phone .error:not(:empty)::before { content:"!"; flex:none; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--fail); color:#1a0309; font-weight:800; font-size:13px; }

/* Network Intelligence bei geringer Höhe (Laptop): scrollen statt Inhalte zu quetschen */
@media (min-width:1101px) and (max-height:899px) {
  .page-cockpit .net-view { overflow-y:auto; }
  .page-cockpit .net-overview:not(.hidden) { grid-template-rows:auto auto auto; }
  .page-cockpit .net-overview .net-grid { min-height:360px; }
  .page-cockpit .net-overview .net-devices .net-table-wrap { min-height:200px; }
  .page-cockpit .net-overview .net-wan { overflow:visible; }
  .page-cockpit .net-overview .net-wan .net-chart-wrap { min-height:110px; }
  .page-cockpit .net-overview .net-bottom { height:auto; min-height:168px; }
}

.page-cockpit #ph-main:not(.hidden), .page-cockpit #ph-unpaired:not(.hidden) { display:grid; gap:14px; }
