:root {
  --eve-bg0: #020202;
  --eve-bg1: #060606;
  --eve-bg2: #0b0b0b;

  --eve-panel: rgba(6, 6, 6, 0.95);
  --eve-panel2: rgba(8, 8, 8, 0.98);

  --eve-line: rgba(173, 196, 212, 0.5);
  --eve-line2: rgba(173, 196, 212, 0.26);
  --eve-line3: rgba(173, 196, 212, 0.14);

  --eve-text: #aeb5bb;
  --eve-dim: #889096;
  --eve-soft: #6f767c;

  --eve-cyan: #62b8e8;
  --eve-cyan2: rgba(98, 184, 232, 0.35);
  --eve-warn: #ff9f9f;

  --dock-width: 64px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--eve-text);
  font-family: "Tahoma", "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 700px at 115% -8%, rgba(35, 35, 35, 0.38) 0%, transparent 62%),
    radial-gradient(900px 560px at -12% 108%, rgba(30, 30, 30, 0.30) 0%, transparent 55%),
    linear-gradient(180deg, var(--eve-bg2) 0%, var(--eve-bg0) 100%);
}

.eve-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: var(--dock-width) 1fr;
}

.eve-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.18;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(620px 360px at 50% 50%, rgba(20, 36, 50, 0.42) 0%, rgba(5, 8, 10, 0.74) 58%, rgba(2, 2, 2, 0.92) 100%),
    linear-gradient(180deg, rgba(6, 8, 10, 0.92) 0%, rgba(2, 2, 2, 0.98) 100%);
  backdrop-filter: blur(2px);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.boot-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loader-panel {
  width: min(420px, calc(100vw - 32px));
  min-height: 280px;
  padding: 24px 20px 18px 20px;
  border: 1px solid rgba(141, 172, 194, 0.36);
  background:
    radial-gradient(420px 190px at 50% -8%, rgba(96, 176, 220, 0.10) 0%, transparent 68%),
    linear-gradient(180deg, rgba(13, 16, 19, 0.96) 0%, rgba(5, 7, 9, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 22px 48px rgba(0, 0, 0, 0.58);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
}

.boot-scan {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
}

.boot-scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(154, 195, 222, 0.25);
}

.boot-scan-ring-a {
  transform: scale(1);
  box-shadow: inset 0 0 18px rgba(122, 182, 221, 0.16);
}

.boot-scan-ring-b {
  transform: scale(0.74);
  border-color: rgba(126, 188, 228, 0.38);
}

.boot-scan-ring-c {
  transform: scale(0.48);
  border-color: rgba(108, 193, 246, 0.55);
}

.boot-scan-sweep {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(84, 177, 231, 0) 0deg,
    rgba(84, 177, 231, 0) 300deg,
    rgba(117, 209, 255, 0.42) 336deg,
    rgba(117, 209, 255, 0.08) 360deg
  );
  animation: boot-scan-spin 1.6s linear infinite;
}

.boot-scan-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(208, 241, 255, 0.95) 0%, rgba(100, 194, 245, 0.75) 42%, rgba(51, 130, 176, 0.55) 72%, rgba(8, 26, 36, 0.25) 100%);
  box-shadow:
    0 0 14px rgba(118, 202, 248, 0.52),
    0 0 30px rgba(72, 161, 211, 0.20);
  animation: boot-core-pulse 1.15s ease-in-out infinite;
}

.boot-loader-title {
  margin-top: 2px;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b5c0c8;
  text-align: center;
}

.boot-loader-status {
  min-height: 16px;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  color: #8f9aa3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.boot-loader.warn .boot-loader-status {
  color: #ffb5b5;
}

@keyframes boot-scan-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes boot-core-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

.eve-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-right: 1px solid var(--eve-line3);
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%),
    radial-gradient(300px 900px at 50% 20%, rgba(70, 70, 70, 0.12) 0%, transparent 65%);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.35);
}

.dock-cap {
  width: 100%;
  height: 14px;
  border: 1px solid var(--eve-line3);
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.74) 0%, rgba(10, 10, 10, 0.94) 100%);
  clip-path: none;
  opacity: 0.9;
}

.dock-spacer {
  width: 100%;
  flex: 1;
}

.dock-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(180, 180, 180, 0.2);
  background:
    linear-gradient(180deg, rgba(36, 36, 36, 0.7) 0%, rgba(8, 8, 8, 0.95) 100%);
  color: #adb4b9;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 90ms linear, background 90ms linear, color 90ms linear, box-shadow 90ms linear;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 12px 18px rgba(255, 255, 255, 0.05);
  clip-path: none;
  padding: 0;
  overflow: hidden;
}

.dock-icon:hover {
  border-color: rgba(210, 220, 228, 0.4);
  color: #cdd4d9;
}

.dock-icon.active {
  border-color: rgba(108, 202, 244, 0.92);
  color: #d8dde1;
  background:
    linear-gradient(180deg, rgba(64, 75, 84, 0.72) 0%, rgba(9, 9, 9, 0.95) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(13, 52, 74, 0.85),
    0 0 0 1px rgba(98, 184, 232, 0.12),
    0 0 18px rgba(98, 184, 232, 0.10);
}

.dock-icon.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, rgba(98, 184, 232, 0.0) 0%, rgba(98, 184, 232, 0.92) 25%, rgba(98, 184, 232, 0.92) 75%, rgba(98, 184, 232, 0.0) 100%);
  box-shadow: 0 0 14px rgba(98, 184, 232, 0.22);
}

.dock-glyph {
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.dock-svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}

.dock-portrait {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  margin: 0;
  padding: 0;
  background: #0a0d10;
}

.dock-icon.has-portrait .dock-portrait {
  display: block;
}

.dock-icon.has-portrait .dock-pilot-fallback {
  display: none;
}

.eve-desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.eve-window {
  position: absolute;
  display: none;
  flex-direction: column;
  min-width: 340px;
  min-height: 160px;
  border: 1px solid var(--eve-line3);
  background: var(--eve-panel);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(160, 170, 180, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(1px);
  clip-path: none;
  overflow: hidden;
}

.eve-window.active { display: flex; }
.eve-window.closed { display: none; }
.auth-only.hidden { display: none !important; }

.eve-window.focused {
  border-color: rgba(196, 214, 225, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(82, 94, 102, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.58);
}

.eve-window.minimized {
  min-height: 34px;
  height: 34px !important;
}

.eve-window.minimized .eve-window-body { display: none; }

#mapWindow {
  left: 14px;
  top: 12px;
  width: calc(100% - 28px);
  height: calc(100% - 24px);
}

#mapWindow .eve-window-body {
  height: calc(100% - 29px);
  min-height: 0;
}

#mapWindow .map-toolbar {
  height: 45px;
  min-height: 45px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

#mapWindow .map-canvas {
  min-height: 0;
  flex: 1 1 auto;
}

#mapWindow .map-footer {
  height: auto;
  min-height: 0;
  overflow: visible;
}

#pilotWindow {
  right: 26px;
  top: 54px;
  width: 340px;
  max-height: calc(100% - 74px);
}

#routeWindow {
  right: 20px;
  top: 20px;
  width: 530px;
  max-height: calc(100% - 40px);
}

#marketWindow {
  right: 20px;
  top: 336px;
  width: 806px;
  max-height: calc(100% - 356px);
}

#legendWindow {
  left: 88px;
  top: 22px;
  width: 420px;
  max-height: calc(100% - 42px);
}

#campConfirmedWindow {
  width: 360px;
  min-height: 170px;
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
}

#routeWindow .window-title {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #b2b8bd;
}

#routeWindow .window-hint {
  color: #7d8388;
  margin-right: 2px;
}

#pilotWindow .window-title {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #b2b8bd;
}

#pilotWindow .window-hint {
  color: #80898f;
  margin-right: 2px;
}

#marketWindow .window-title {
  font-size: 15px;
  letter-spacing: 0.07em;
  color: #b2b8bd;
}

#marketWindow .window-hint {
  color: #80898f;
  margin-right: 2px;
}

#legendWindow .window-title {
  font-size: 15px;
  letter-spacing: 0.07em;
  color: #b2b8bd;
}

#legendWindow .window-hint {
  color: #80898f;
  margin-right: 2px;
}

#campConfirmedWindow .window-title {
  font-size: 15px;
  letter-spacing: 0.07em;
  color: #b2b8bd;
}

#campConfirmedWindow .window-hint {
  color: #80898f;
  margin-right: 2px;
}

#marketWindow .eve-window-header {
  border-bottom: 1px solid rgba(170, 176, 182, 0.18);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(6, 6, 6, 0.99) 100%);
}

#routeWindow .eve-window-header {
  border-bottom: 1px solid rgba(170, 176, 182, 0.18);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(6, 6, 6, 0.99) 100%);
}

#pilotWindow .eve-window-header {
  border-bottom: 1px solid rgba(170, 176, 182, 0.18);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(6, 6, 6, 0.99) 100%);
}

#legendWindow .eve-window-header {
  border-bottom: 1px solid rgba(170, 176, 182, 0.18);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(6, 6, 6, 0.99) 100%);
}

#campConfirmedWindow .eve-window-header {
  border-bottom: 1px solid rgba(170, 176, 182, 0.18);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(6, 6, 6, 0.99) 100%);
}

.eve-window-header {
  position: relative;
  height: 29px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 10px;
  border-bottom: 1px solid rgba(190, 200, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(34, 34, 34, 0.88) 0%, rgba(8, 8, 8, 0.98) 100%);
  user-select: none;
  cursor: move;
}

.eve-window-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.window-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.win-ctl {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f1f3f5;
  cursor: pointer;
  position: relative;
  clip-path: none;
  border-radius: 1px;
}

.win-ctl:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.win-ctl::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.ctl-options::before {
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -3px 0 currentColor, 0 3px 0 currentColor;
}

.ctl-minimize::before {
  width: 8px;
  height: 1px;
  background: currentColor;
  top: auto;
  bottom: 4px;
}

.ctl-close {
  color: #ededed;
}

.ctl-close::before {
  width: 8px;
  height: 8px;
  background:
    linear-gradient(45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%);
}

.window-menu {
  position: absolute;
  top: 100%;
  right: 8px;
  min-width: 132px;
  padding: 4px;
  border: 1px solid rgba(93, 120, 140, 0.42);
  background: rgba(7, 7, 7, 0.98);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  z-index: 70;
}

.window-menu[hidden] { display: none; }

.window-menu-item {
  width: 100%;
  height: 24px;
  text-align: left;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--eve-text);
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  cursor: pointer;
}

.window-menu-item:hover {
  border-color: rgba(210, 220, 228, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.window-title {
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aab2b8;
}

.window-hint {
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  color: var(--eve-dim);
  justify-self: end;
}

.eve-window-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(190, 200, 210, 0.1);
  background: rgba(7, 7, 7, 0.88);
}

.eve-input,
.eve-btn {
  height: 29px;
  border: 1px solid rgba(210, 220, 228, 0.18);
  background: rgba(5, 5, 5, 0.94);
  color: var(--eve-text);
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
}

.eve-input {
  min-width: 190px;
  padding: 0 9px;
}

.eve-input:focus {
  outline: none;
  border-color: rgba(98, 184, 232, 0.82);
  box-shadow: 0 0 0 1px rgba(98, 184, 232, 0.16);
}

.eve-btn {
  padding: 0 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background:
    linear-gradient(180deg, rgba(46, 46, 46, 0.65) 0%, rgba(7, 7, 7, 0.96) 100%);
}

.eve-btn:hover { border-color: rgba(210, 220, 228, 0.4); color: #ffffff; }
.eve-btn:active { transform: translateY(1px); }

.eve-check,
.eve-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--eve-dim);
  font-size: 12px;
  user-select: none;
}

.eve-check input[type="checkbox"],
.eve-radio input[type="radio"] {
  appearance: none;
  margin: 0;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(210, 220, 228, 0.28);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  display: inline-grid;
  place-items: center;
}

.eve-radio input[type="radio"] { border-radius: 50%; }
.eve-check input[type="checkbox"] { border-radius: 2px; }

.eve-check input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid rgba(236, 240, 244, 0.96);
  border-bottom: 2px solid rgba(236, 240, 244, 0.96);
  transform: rotate(-45deg);
  opacity: 0;
}

.eve-radio input[type="radio"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(236, 240, 244, 0.96);
  opacity: 0;
}

.eve-check input[type="checkbox"]:checked::after,
.eve-radio input[type="radio"]:checked::after {
  opacity: 1;
}

.eve-check input[type="checkbox"]:focus-visible,
.eve-radio input[type="radio"]:focus-visible {
  outline: none;
  border-color: rgba(98, 184, 232, 0.82);
  box-shadow: 0 0 0 1px rgba(98, 184, 232, 0.18);
}

.map-canvas {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1;
  background:
    radial-gradient(900px 560px at 45% 38%, rgba(40, 40, 40, 0.16) 0%, rgba(8, 8, 8, 0.12) 62%, rgba(2, 2, 2, 0.25) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 6px);
}

.route-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.node-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 168px;
  max-width: 260px;
  padding: 8px 10px 9px 10px;
  pointer-events: none;
  z-index: 1100;
  border: 1px solid rgba(175, 196, 210, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 20, 22, 0.96) 0%, rgba(7, 9, 11, 0.98) 100%),
    radial-gradient(200px 100px at 85% 10%, rgba(73, 117, 144, 0.16) 0%, transparent 65%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.55);
  clip-path: none;
  font-family: "Consolas", "Lucida Console", monospace;
}

.node-tooltip[hidden] {
  display: none;
}

.node-tooltip-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ea6ad;
  margin-bottom: 4px;
}

.node-tooltip-row {
  font-size: 12px;
  color: #c6ccd1;
  line-height: 1.3;
  margin-top: 2px;
}

.node-tooltip-value {
  font-weight: 700;
}

.node-tooltip-key {
  color: #97a2aa;
}

.preview-actions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1080;
}

.preview-actions-layer[hidden] {
  display: none;
}

.preview-action-tip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 140px;
  max-width: 280px;
  padding: 6px 8px 7px 8px;
  border: 1px solid rgba(189, 212, 228, 0.46);
  background:
    linear-gradient(180deg, rgba(16, 20, 24, 0.96) 0%, rgba(7, 10, 13, 0.98) 100%),
    radial-gradient(180px 90px at 86% 10%, rgba(72, 118, 149, 0.2) 0%, transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.48);
  font-family: "Consolas", "Lucida Console", monospace;
  pointer-events: auto;
  z-index: 1;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.preview-action-tip:hover,
.preview-action-tip:focus-within {
  z-index: 9999;
  border-color: rgba(214, 230, 241, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.56);
}

.preview-action-step-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(184, 209, 226, 0.62);
  background: linear-gradient(180deg, rgba(36, 58, 72, 0.95) 0%, rgba(17, 31, 41, 0.96) 100%);
  color: #d9e3eb;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.preview-action-title {
  color: #d6dee5;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  padding-left: 24px;
  letter-spacing: 0.02em;
}

.preview-action-line {
  color: #b8c2cb;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 1px;
}

.preview-action-line-top {
  color: #96b6cb;
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-bottom: 1px;
}

.preview-action-line-body {
  color: #d3dbe2;
}

.preview-action-section-title {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(173, 196, 212, 0.20);
  color: #97a6b2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-action-extra {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(173, 196, 212, 0.22);
  color: #8e99a2;
  font-size: 10px;
}

.map-footer {
  min-height: 76px;
  padding: 5px 10px 6px 10px;
  border-top: 1px solid rgba(190, 200, 210, 0.1);
  background: rgba(6, 6, 6, 0.9);
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
}

.map-overlays {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 32px;
}

.map-overlays-title {
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3aa;
}

.map-overlay-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: #aeb7be;
}

.map-overlays-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(180, 193, 202, 0.2);
}

.map-overlays-subtitle {
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9aa3aa;
}

.map-overlay-check input[type="radio"] {
  width: 16px;
  height: 16px;
}

.map-overlay-check input[type="radio"]::after {
  width: 8px;
  height: 8px;
}

.map-help {
  position: relative;
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(184, 197, 206, 0.38);
  background: rgba(16, 20, 24, 0.88);
  color: #c8d1d8;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: help;
  user-select: none;
}

.map-help:hover,
.map-help:focus-visible {
  border-color: rgba(210, 221, 229, 0.68);
  color: #f0f5f8;
  outline: none;
}

.map-help-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(380px, 78vw);
  padding: 8px 10px;
  border: 1px solid rgba(174, 196, 210, 0.42);
  background:
    linear-gradient(180deg, rgba(19, 23, 27, 0.96) 0%, rgba(8, 11, 14, 0.98) 100%),
    radial-gradient(220px 120px at 82% 10%, rgba(64, 111, 141, 0.18) 0%, transparent 70%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  color: #c3ccd3;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 20;
}

.map-help-tooltip-stats {
  width: min(980px, 92vw);
  white-space: pre-wrap;
  line-height: 1.4;
}

.map-help:hover .map-help-tooltip,
.map-help:focus-visible .map-help-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.map-timeline {
  display: grid;
  grid-template-columns: auto auto auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.map-time-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9ea9b2;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
}

.map-time-input {
  width: 175px;
  height: 24px;
  font-size: 11px;
  padding: 0 6px;
}

.map-time-btn {
  min-height: 24px;
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.map-timeline-track-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.map-timeline-slider {
  width: 100%;
  margin: 0;
  accent-color: #7cb7d8;
  position: relative;
  z-index: 2;
}

.map-timeline-markers {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  bottom: 3px;
  pointer-events: none;
  z-index: 1;
}

.map-timeline-marker {
  position: absolute;
  width: 2px;
  bottom: 0;
  border-radius: 1px;
  background: rgba(255, 96, 96, 0.78);
  box-shadow: 0 0 4px rgba(255, 82, 82, 0.34);
}

.map-timeline-current {
  min-width: 126px;
  text-align: right;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  color: #92a2ae;
}

.meta,
.status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  color: var(--eve-soft);
}

.status { margin-top: 3px; color: #858d93; }
.status.warn { color: var(--eve-warn); }

.route-body {
  padding: 8px 8px 8px 8px;
  gap: 4px;
  overflow: auto;
  background:
    radial-gradient(420px 220px at 90% 14%, rgba(36, 86, 114, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.988) 0%, rgba(3, 4, 5, 0.996) 100%);
  font-family: "Consolas", "Lucida Console", monospace;
}

.pilot-body {
  padding: 10px;
  gap: 10px;
  background:
    radial-gradient(260px 140px at 85% 10%, rgba(34, 73, 96, 0.18) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.985) 0%, rgba(4, 5, 6, 0.996) 100%);
}

.market-body {
  padding: 9px;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 149, 158, 0.62) rgba(9, 12, 15, 0.92);
  background:
    radial-gradient(380px 180px at 92% 10%, rgba(36, 86, 114, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.99) 0%, rgba(3, 4, 5, 1.0) 100%);
  font-family: "Consolas", "Lucida Console", monospace;
}

.market-body::-webkit-scrollbar {
  width: 9px;
}

.market-body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(7, 10, 12, 0.96) 0%, rgba(3, 5, 7, 0.98) 100%);
  border-left: 1px solid rgba(120, 132, 140, 0.24);
}

.market-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150, 161, 170, 0.78) 0%, rgba(107, 118, 128, 0.74) 100%);
  border: 1px solid rgba(205, 215, 224, 0.24);
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.28);
}

.market-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(172, 182, 191, 0.84) 0%, rgba(124, 136, 145, 0.8) 100%);
}

.market-body::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(188, 198, 206, 0.9) 0%, rgba(138, 150, 159, 0.86) 100%);
}

.market-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 110px 140px auto;
  gap: 8px;
  align-items: end;
}

.market-field {
  display: grid;
  gap: 4px;
  color: #8e969d;
  font-size: 11px;
}

.market-field .eve-input {
  width: 100%;
  min-width: 0;
}

.market-start-btn {
  min-width: 116px;
}

.market-start-btn.market-stop-btn {
  border-color: rgba(207, 120, 120, 0.52);
  color: #f1c7c7;
}

.market-start-btn.market-stop-btn:hover {
  border-color: rgba(232, 160, 160, 0.68);
  color: #ffe6e6;
}

.market-plans {
  display: grid;
  gap: 8px;
}

.market-progress {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(173, 196, 212, 0.24);
  background: rgba(6, 10, 14, 0.78);
}

.market-progress.hidden {
  display: none;
}

.market-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  color: #a8b1b8;
}

.market-progress-bar {
  height: 9px;
  border: 1px solid rgba(138, 158, 173, 0.34);
  background: rgba(7, 10, 13, 0.96);
}

.market-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(110, 161, 194, 0.88) 0%, rgba(164, 210, 238, 0.92) 100%);
  transition: width 160ms linear;
}

.market-plan {
  border: 1px solid rgba(173, 196, 212, 0.22);
  background: rgba(6, 8, 10, 0.88);
  padding: 8px;
}

.market-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ced4d8;
  font-size: 12px;
  margin-bottom: 6px;
}

.market-plan-head-right {
  color: #aeb6bc;
  font-size: 11px;
  text-align: right;
}

.market-source-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(160, 183, 200, 0.30);
  background: rgba(6, 8, 11, 0.90);
  color: #d6dee5;
  font-size: 10px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.market-source-cache {
  border-color: rgba(140, 168, 196, 0.42);
  color: #9ec0dc;
}

.market-source-new {
  border-color: rgba(124, 186, 146, 0.42);
  color: #9ed3ad;
}

.market-source-mixed {
  border-color: rgba(186, 170, 124, 0.42);
  color: #d8c890;
}

.market-plan-meta {
  color: #8e979e;
  font-size: 11px;
}

.market-steps {
  display: grid;
  gap: 5px;
}

.market-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid rgba(173, 196, 212, 0.16);
  background: rgba(8, 11, 14, 0.78);
  padding: 6px;
}

.market-step-main {
  color: #c6ccd1;
  font-size: 12px;
  line-height: 1.55;
}

.market-step-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(160, 183, 200, 0.30);
  background: rgba(6, 8, 11, 0.90);
  color: #e6edf2;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.market-step-system {
  display: inline-block;
  margin-right: 7px;
  font-weight: 700;
}

.market-step-wh {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border: 1px solid rgba(182, 171, 212, 0.42);
  background: rgba(18, 14, 26, 0.82);
  color: #d9c9ff;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.market-step-wh-enter {
  border-color: rgba(168, 146, 214, 0.50);
  color: #d7c2ff;
}

.market-step-wh-exit {
  border-color: rgba(146, 206, 214, 0.50);
  color: #bfeef5;
}

.market-step-jump-add {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(120, 158, 180, 0.32);
  background: rgba(10, 18, 26, 0.86);
  color: #9fc0d7;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.market-step-source {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(160, 183, 200, 0.30);
  background: rgba(6, 8, 11, 0.90);
  color: #d6dee5;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.market-step-source-cache {
  border-color: rgba(140, 168, 196, 0.42);
  color: #9ec0dc;
}

.market-step-source-new {
  border-color: rgba(124, 186, 146, 0.42);
  color: #9ed3ad;
}

.market-step-source-mixed {
  border-color: rgba(186, 170, 124, 0.42);
  color: #d8c890;
}

.market-step-sub {
  color: #8e979e;
  font-size: 11px;
  margin-top: 3px;
}

.market-step-location {
  color: #9fa8af;
  font-size: 11px;
}

.market-step-action-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 7px;
  border: 1px solid rgba(160, 183, 200, 0.30);
  background: rgba(6, 8, 11, 0.90);
  color: #dce4ea;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-step-action-buy {
  border-color: rgba(214, 118, 118, 0.55);
  color: #ffb8b8;
}

.market-step-action-sell {
  border-color: rgba(126, 198, 150, 0.55);
  color: #b7efc5;
}

.market-step-action-neutral {
  border-color: rgba(160, 183, 200, 0.30);
  color: #dce4ea;
}

.market-step-at {
  color: #adb5bc;
  margin-left: 2px;
  margin-right: 2px;
}

.market-step-at-system {
  font-weight: 700;
}

.market-step-location-link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.40);
  margin-right: 4px;
}

.market-step-location-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.market-step-isk {
  display: inline-block;
  margin-left: 5px;
  font-weight: 700;
}

.market-step-isk-in {
  color: #8ee59f;
}

.market-step-isk-out {
  color: #ff8f8f;
}

.market-step-isk-neutral {
  color: #c3cbd2;
}

.market-step-remove {
  align-self: center;
  height: 24px;
  min-width: 50px;
  border: 1px solid rgba(173, 196, 212, 0.28);
  background: rgba(7, 8, 10, 0.92);
  color: #aeb6bc;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 11px;
  cursor: pointer;
}

.market-step-remove:hover {
  border-color: rgba(210, 220, 228, 0.45);
  color: #ffffff;
}

.market-plan-actions {
  margin-top: 7px;
  display: flex;
  justify-content: flex-end;
}

.market-preview-btn {
  min-width: 88px;
}

.market-empty {
  color: #808a91;
  font-size: 12px;
  padding: 8px 2px;
}

.legend-body {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.camp-confirmed-body {
  padding: 12px;
  background:
    radial-gradient(260px 120px at 84% 12%, rgba(43, 95, 122, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.988) 0%, rgba(4, 5, 6, 0.996) 100%);
}

.camp-confirmed-panel {
  border: 1px solid rgba(129, 146, 160, 0.24);
  background: rgba(6, 9, 12, 0.88);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.camp-confirmed-title {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9d0d5;
}

.camp-confirmed-text {
  color: #b3bcc3;
  font-size: 12px;
}

.camp-confirmed-actions {
  display: flex;
  justify-content: flex-end;
}

.legend-section {
  border: 1px solid rgba(129, 146, 160, 0.20);
  background: rgba(6, 9, 12, 0.86);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.legend-title {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9d0d5;
}

.legend-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 7px;
}

.legend-text {
  display: grid;
  gap: 1px;
  color: #aab2b8;
  font-size: 11px;
  line-height: 1.35;
}

.legend-text strong {
  color: #d8dee3;
  font-size: 11px;
  font-weight: 700;
}

.legend-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(170, 176, 182, 0.42);
  background: #5f8aa9;
}

.legend-dot.sec-high { background: #2f71ce; }
.legend-dot.sec-mid { background: #6cbfb2; }
.legend-dot.sec-low { background: #b77755; }

.legend-dot.danger-ring {
  box-shadow: 0 0 0 2px rgba(228, 108, 108, 0.82);
}

.legend-line {
  width: 30px;
  height: 0;
  border-top: 2px solid #aeb6be;
  position: relative;
}

.legend-line.gate-line {
  border-top-color: #a9b0b8;
}

.legend-line.ext-line {
  border-top-color: rgba(168, 176, 186, 0.52);
  border-top-style: dashed;
}

.legend-line.wh-line,
.legend-line.wh-thera-line {
  border-top-color: rgba(214, 176, 255, 0.92);
}

.legend-line.wh-turnur-line {
  border-top-color: #31f6ff;
}

.legend-line.route-line {
  border-top: 2px solid #f5f6f8;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.42);
}

.legend-line.route-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #f5f6f8;
}

.pilot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: 8px;
  border: 1px solid rgba(98, 129, 148, 0.34);
  background: rgba(8, 11, 14, 0.9);
}

.pilot-portrait {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(108, 141, 162, 0.52);
  background: #111;
  object-fit: cover;
}

.pilot-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pilot-name {
  color: #cfd6dc;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilot-location {
  color: #8f98a0;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
}

.pilot-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pilot-btn {
  min-width: 86px;
  height: 27px;
  font-size: 11px;
  padding: 0 10px;
}

.route-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding-bottom: 4px;
}

.route-sep {
  border-top: 1px solid rgba(118, 140, 156, 0.30);
  margin: 6px 0 5px 0;
}

.route-slider-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8d959b;
  font-size: 12px;
  padding-left: 17px;
  margin: 0 0 2px 0;
}

.route-slider-row input[type="range"] {
  width: 128px;
  accent-color: #36a0db;
  height: 12px;
}

.route-preview-sep {
  margin-top: 8px;
}

.route-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #c2c8cd;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.route-preview-meta {
  color: #8f989f;
  font-size: 11px;
}

.route-preview-list {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.route-preview-list::-webkit-scrollbar {
  width: 8px;
}

.route-preview-list::-webkit-scrollbar-track {
  background: rgba(6, 8, 10, 0.92);
}

.route-preview-list::-webkit-scrollbar-thumb {
  background: rgba(138, 149, 158, 0.52);
  border: 1px solid rgba(180, 191, 199, 0.25);
}

.route-preview-empty {
  color: #7e878e;
  font-size: 12px;
  padding: 4px 2px 2px 2px;
}

.route-preview-row {
  border: 1px solid rgba(150, 170, 185, 0.18);
  background: rgba(7, 10, 13, 0.82);
  padding: 6px;
}

.route-preview-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.route-preview-step {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid rgba(160, 183, 200, 0.30);
  background: rgba(6, 8, 11, 0.90);
  color: #e4ebf0;
  font-size: 10px;
}

.route-preview-jump {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid rgba(121, 162, 187, 0.35);
  background: rgba(7, 14, 20, 0.92);
  color: #9ec7df;
  font-size: 10px;
}

.route-preview-system {
  font-weight: 700;
  font-size: 12px;
}

.route-preview-phase {
  color: #8e979e;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.route-preview-actions {
  display: grid;
  gap: 3px;
}

.route-preview-action {
  font-size: 11px;
  color: #bac2c9;
  line-height: 1.40;
}

.route-preview-action-market .market-step-action-badge {
  margin-right: 4px;
}

.route-preview-action-buy {
  color: #ffb8b8;
}

.route-preview-action-sell {
  color: #b7efc5;
}

.route-preview-action-gate {
  color: #aeb6be;
}

.route-preview-action-find-wh,
.route-preview-action-enter-wh,
.route-preview-action-exit-wh,
.route-preview-action-wh-link {
  color: #d3b9ff;
}

.route-preview-action-arrive {
  color: #d1d8de;
}

.muted { color: #7a838a; }

.route-body .eve-check,
.route-body .eve-radio {
  display: flex;
  width: 100%;
  color: #7a8288;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
  line-height: 1.18;
  gap: 6px;
  min-height: 21px;
  padding: 0 2px 0 0;
}

.route-body .eve-check:hover,
.route-body .eve-radio:hover {
  background: rgba(52, 94, 120, 0.34) !important;
  color: #ffffff !important;
}

.route-body .eve-check.is-checked,
.route-body .eve-radio.is-checked {
  background: transparent !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  color: #ffffff !important;
}

.route-body .eve-check:not(.is-checked),
.route-body .eve-radio:not(.is-checked) {
  background: transparent;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  color: #757d84;
}

.route-body .eve-check .muted,
.route-body .eve-radio .muted {
  color: #6f7880;
}

.route-body .eve-check.is-checked .muted,
.route-body .eve-radio.is-checked .muted {
  color: #ffffff !important;
}

.route-body .eve-check:hover .muted,
.route-body .eve-radio:hover .muted {
  color: #ffffff !important;
}

.route-body .eve-check input[type="checkbox"],
.route-body .eve-radio input[type="radio"] {
  width: 11px;
  height: 11px;
  border-color: rgba(166, 177, 186, 0.56);
  background: rgba(6, 8, 10, 0.98);
}

.route-body .eve-check input[type="checkbox"]::after {
  width: 5px;
  height: 3px;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

.route-body .eve-radio input[type="radio"]::after {
  width: 5px;
  height: 5px;
}

.route-search-input {
  height: 31px;
  border-color: rgba(91, 117, 135, 0.42);
  background: rgba(4, 6, 8, 0.985);
  color: #8a939a;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.route-search-input::placeholder {
  color: #626b73;
  opacity: 1;
}

.route-body .eve-check[for],
.route-body .eve-check,
.route-body .eve-radio {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.route-slider-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  border: 1px solid rgba(162, 174, 184, 0.26);
  background: rgba(11, 14, 17, 0.95);
}

.route-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-top: -5px;
  border: 1px solid rgba(94, 162, 202, 0.95);
  background: #41aee5;
}

.route-slider-row input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  border: 1px solid rgba(162, 174, 184, 0.26);
  background: rgba(11, 14, 17, 0.95);
}

.route-slider-row input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(94, 162, 202, 0.95);
  background: #41aee5;
}

@media (max-width: 1200px) {
  #routeWindow {
    width: min(520px, calc(100% - 90px));
    right: 12px;
  }
  #marketWindow {
    width: min(540px, calc(100% - 90px));
    right: 12px;
  }
  #legendWindow {
    width: min(420px, calc(100% - 90px));
    left: 70px;
  }
}

@media (max-width: 860px) {
  .eve-shell { grid-template-columns: 48px 1fr; }
  .dock-icon { width: 36px; height: 36px; }
  #mapWindow {
    left: 8px;
    top: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }
  #routeWindow {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 50%;
  }
  #marketWindow {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 50%;
    top: auto;
    bottom: 8px;
  }
  #legendWindow {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 45%;
    top: 56px;
  }
  .map-toolbar { padding: 8px; }
  .eve-input { min-width: 140px; }
  .map-timeline {
    grid-template-columns: 1fr 1fr auto auto;
    grid-template-areas:
      "from to apply latest"
      "track track track track"
      "current current current current";
    gap: 6px;
  }
  .map-time-field:nth-of-type(1) { grid-area: from; }
  .map-time-field:nth-of-type(2) { grid-area: to; }
  .map-timeline-track-wrap { grid-area: track; }
  .map-timeline-current { grid-area: current; text-align: left; }
  .map-time-input { width: 100%; min-width: 0; }
  #timelineApplyBtn { grid-area: apply; }
  #timelineNowBtn { grid-area: latest; }
  .market-form {
    grid-template-columns: 1fr;
  }
  .boot-loader-panel {
    min-height: 248px;
    padding: 20px 16px 14px 16px;
  }
  .boot-scan {
    width: 132px;
    height: 132px;
  }
  .boot-loader-title {
    font-size: 13px;
  }
}
