:root {
  color-scheme: dark;
  --bg: #0c1015;
  --panel: #11161c;
  --panel2: #151b22;
  --line: #262d35;
  --line-soft: #1e252c;
  --text: #d9dfe5;
  --muted: #7b8794;
  --dim: #4f5c68;
  --accent: #e5a16c;
  --green: #86bda3;
  --blue: #85b4cd;
  --red: #de7775;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  filter: brightness(1.17);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
svg.icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--dim);
}
.app-shell {
  min-height: 100vh;
  max-width: 2000px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  padding: 0 27px;
  border-bottom: 1px solid var(--line);
  gap: 42px;
  background: #101419;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 188px;
}
.brand-mark {
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transform: scaleX(0.83);
}
.brand > span:last-child {
  font-size: 24px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
.brand-number {
  font-weight: 350;
  color: #b5bec8;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 2.4px;
  margin-top: 5px;
  color: #8c97a2;
}
.primary-nav {
  display: flex;
  height: 100%;
  gap: 10px;
  flex: 1;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: #89939e;
  font-size: 12px;
  white-space: nowrap;
}
.nav-item.active {
  color: var(--accent);
}
.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  left: 12px;
  right: 12px;
}
.nav-item svg {
  width: 16px;
}
.nav-dot {
  height: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.wallet {
  text-align: right;
  white-space: nowrap;
}
.wallet small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.wallet > span {
  font-family: var(--mono);
  font-size: 15px;
}
.wallet i {
  font-size: 10px;
  color: var(--accent);
  font-style: normal;
}
.icon-button {
  height: 30px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 3px;
}
.icon-button:hover {
  background: var(--panel2);
  color: var(--text);
}
.pilot-avatar {
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5d594a;
  background: linear-gradient(140deg, #3d403a, #252b2c);
  color: #d9c7a7;
  font-family: var(--mono);
  font-size: 11px;
  position: relative;
}
.pilot-avatar:after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.workspace {
  display: grid;
  grid-template-columns: 226px minmax(420px, 1fr) 307px;
  flex: 1;
}
.left-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #0f1318;
  min-width: 0;
}
.system-block {
  padding: 29px 23px 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 6px #86bda329;
  display: inline-block;
  border-radius: 50%;
  flex: none;
}
.system-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 13px 0 10px;
}
h1 {
  font-size: 29px;
  font-weight: 450;
  letter-spacing: -1px;
}
.security {
  font-family: var(--mono);
  font-size: 11px;
  background: #86bda314;
  border: 1px solid #86bda33d;
  padding: 3px 6px;
  color: var(--green);
  border-radius: 3px;
}
.security.low {
  color: var(--accent);
  background: #e5a16c10;
  border-color: #e5a16c40;
}
.security.null {
  color: var(--red);
  background: #de777510;
  border-color: #de777540;
}
.system-block p {
  font-size: 10px;
  color: #8b96a1;
  line-height: 1.6;
}
.system-block p span {
  color: #4e5b68;
  margin: 0 6px;
}
.system-coords {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  margin-top: 12px;
}
.sidebar-section {
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-label > span {
  color: var(--dim);
}
.section-label svg {
  width: 13px;
  height: 13px;
}
.environment-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 21px;
}
.environment-row:last-child {
  margin-bottom: 0;
}
.environment-row > span {
  color: #82919f;
}
.environment-row svg {
  width: 18px;
  height: 18px;
}
.environment-row strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 5px;
}
.environment-row small {
  font-size: 9px;
  color: #64717e;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.7px;
  padding: 0;
}
.text-button > span:last-child {
  font-size: 13px;
}
.route-empty {
  border: 1px dashed #2b343d;
  padding: 14px 12px;
}
.route-empty svg {
  color: var(--dim);
  margin-bottom: 10px;
}
.route-empty strong {
  font-size: 10px;
  font-weight: 450;
  display: block;
  margin-bottom: 6px;
}
.route-empty p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 14px;
}
.route-stop {
  position: relative;
  padding: 0 0 18px 18px;
  border-left: 1px solid #38434c;
  margin-left: 4px;
  font-size: 11px;
}
.route-stop:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  background: var(--bg);
  border-radius: 50%;
}
.route-stop:last-of-type {
  padding-bottom: 5px;
  border-color: transparent;
}
.route-stop small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.route-stop.current:before {
  background: var(--accent);
}
.route-more {
  font-size: 9px;
  color: var(--muted);
  padding: 0 0 14px 20px;
}
.full-button {
  width: 100%;
  justify-content: center;
}
.route-section .button {
  margin-top: 15px;
}
.assignment h4 {
  font-weight: 450;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.assignment p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.assignment .text-button {
  margin-top: 16px;
}
.assignment .progress-track {
  margin-top: 14px;
}
.reward {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  margin-top: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px;
}
.pilot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pilot-avatar.small {
  width: 30px;
  height: 30px;
  font-size: 9px;
}
.pilot-card strong {
  display: block;
  font-size: 10px;
  font-weight: 450;
  margin-bottom: 4px;
}
.pilot-card small {
  font-size: 8px;
}
.pilot-card > .live-dot {
  margin-left: auto;
}
.manual-link {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  width: 100%;
  margin-top: 20px;
}
.manual-link kbd {
  margin-left: auto;
}
.main-content {
  padding: 27px 24px 22px;
  min-width: 0;
  background: radial-gradient(ellipse at 20% 0%, #151b2333, transparent 70%);
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  min-height: 49px;
}
.view-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 450;
}
.heading-dot {
  color: var(--accent);
  margin-left: 3px;
}
.heading-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.5px;
  padding-top: 15px;
}
.time-label {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 6px;
  color: var(--muted);
}
.view {
  display: none;
}
.active-view {
  display: block;
}
.space-viewport {
  position: relative;
  height: 390px;
  border: 1px solid #303842;
  background: #080d13;
  overflow: hidden;
}
.space-viewport:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px #0006;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #00000008 4px
  );
}
#space-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.viewport-top {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 8px var(--mono);
  letter-spacing: 1px;
  z-index: 2;
  color: #a0abb5;
}
.viewport-top > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tiny-square {
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  display: inline-block;
}
.viewport-top .icon-button {
  height: 20px;
}
.scene-coordinates {
  position: absolute;
  top: 64px;
  left: 20px;
  font: 8px/1.8 var(--mono);
  color: #83919e;
  letter-spacing: 0.4px;
}
.scene-caption {
  position: absolute;
  bottom: 53px;
  left: 21px;
  z-index: 2;
}
.scene-caption .eyebrow {
  font-size: 7px;
  color: #91a2b2;
  letter-spacing: 1.7px;
}
.scene-caption h3 {
  font-size: 23px;
  font-weight: 400;
  margin: 9px 0 7px;
  letter-spacing: -0.4px;
}
.scene-caption p {
  font-size: 10px;
  color: #8898a7;
}
.scene-caption p span {
  margin: 0 7px;
  color: #536679;
}
.scene-location {
  position: absolute;
  right: 20px;
  bottom: 59px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 8px var(--mono);
  color: #aab7c2;
  letter-spacing: 0.4px;
}
.scene-scale {
  position: absolute;
  right: 20px;
  top: 68px;
  font: 7px var(--mono);
  color: #6f8396;
  display: flex;
  gap: 9px;
  align-items: center;
}
.scene-scale > span {
  display: block;
  width: 44px;
  height: 5px;
  border: 1px solid #56697c;
  border-top: 0;
}
.viewport-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 19px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #6b849126;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  background: #0a0f1770;
  z-index: 2;
  color: #8493a1;
}
.viewport-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewport-bottom b {
  color: #749b8c;
  font-size: 7px;
  letter-spacing: 2px;
  margin-left: 7px;
}
.flight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 20px;
}
.movement-controls {
  display: flex;
  gap: 3px;
}
.control-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9ba7b3;
  padding: 8px;
}
.control-button svg {
  width: 14px;
  height: 14px;
}
.control-button:hover {
  background: var(--panel2);
}
kbd {
  font: 8px var(--mono);
  background: #171d24;
  border: 1px solid #303943;
  color: #6f7d8a;
  border-radius: 2px;
  padding: 2px 4px;
}
.control-button kbd {
  font-size: 7px;
  padding: 1px 3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #3a4550;
  background: #1a222b;
  color: #c4ced8;
  font-size: 10px;
  border-radius: 2px;
  transition: background 0.15s;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button.primary {
  background: var(--accent);
  color: #211a15;
  border-color: var(--accent);
  font-weight: 600;
}
.button.accent-outline {
  border-color: #815d40;
  background: #e5a16c0c;
  color: var(--accent);
}
.button.danger {
  color: var(--red);
  border-color: #de777540;
}
.button.small {
  padding: 7px 10px;
  font-size: 9px;
}
.ship-panel,
.activity-panel {
  background: #11161c;
  border: 1px solid var(--line);
}
.panel-heading {
  height: 44px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.panel-heading h3 {
  font: 9px var(--mono);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b0bbc6;
}
.panel-heading h3 svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.subtle-label {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: var(--dim);
}
.ship-status-content {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 20px;
}
.integrity-gauge {
  position: relative;
  flex: none;
  width: 124px;
  height: 124px;
}
.integrity-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-track {
  fill: none;
  stroke: #252e37;
  stroke-width: 5;
}
.gauge-ring {
  fill: none;
  stroke-width: 5;
  stroke-linecap: butt;
  transition: stroke-dashoffset 0.2s;
}
.shield-ring {
  stroke: var(--blue);
}
.armor-ring {
  stroke: #cfb594;
}
.hull-ring {
  stroke: #6c8c82;
}
.integrity-gauge > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.integrity-gauge strong {
  font: 22px var(--mono);
  font-weight: 400;
}
.integrity-gauge strong span {
  font-size: 11px;
  color: var(--muted);
}
.integrity-gauge small {
  font: 6px var(--mono);
  letter-spacing: 1px;
  margin-top: 6px;
}
.health-stats {
  flex: 1;
  min-width: 135px;
}
.health-stats > div:not(.capacitor-bars) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 9px;
}
.health-stats > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.health-stats strong {
  font: 9px var(--mono);
  white-space: nowrap;
}
.health-stats strong small {
  font-size: 7px;
  color: var(--dim);
}
.stat-dot {
  width: 4px;
  height: 4px;
  display: inline-block;
  border-radius: 50%;
}
.shield-dot {
  background: var(--blue);
}
.armor-dot {
  background: #cfb594;
}
.hull-dot {
  background: #6c8c82;
}
.cap-dot {
  background: var(--accent);
}
.health-stats .capacitor-row {
  margin-top: 17px;
  margin-bottom: 8px !important;
}
.capacitor-bars {
  display: flex;
  gap: 3px;
}
.capacitor-bars i {
  height: 9px;
  flex: 1;
  background: #332a23;
}
.capacitor-bars i.filled {
  background: var(--accent);
  opacity: 0.8;
}
.module-bank {
  border-left: 1px solid var(--line);
  padding-left: 23px;
  flex: 1.5;
  min-width: 195px;
}
.module-bank-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 13px;
}
.module-bank-heading span:last-child {
  color: var(--dim);
  font-size: 6px;
}
.module-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.module-button {
  height: 43px;
  min-width: 38px;
  width: calc((100% - 28px) / 5);
  position: relative;
  border: 1px solid #37404a;
  border-radius: 3px;
  background: linear-gradient(#1b232c, #141a22);
  color: #93a2b0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-button svg {
  width: 19px;
  height: 19px;
}
.module-button small {
  position: absolute;
  right: 3px;
  top: 2px;
  font: 6px var(--mono);
  color: var(--dim);
}
.module-button:after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 12px;
  height: 2px;
  background: #4a545e;
}
.module-button.module-active {
  border-color: #9caf86;
  color: #b9d6a4;
  background: #81946b1a;
  box-shadow: 0 0 12px #8bab7020;
}
.module-button.module-active:after {
  background: #a4cb8a;
  box-shadow: 0 0 7px #a4cb8a;
}
.module-button.mining {
  color: var(--accent);
}
.velocity {
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 7px var(--mono);
  color: var(--dim);
}
.velocity strong {
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 400;
}
.velocity strong small {
  font-size: 7px;
}
.velocity-track {
  height: 3px;
  background: #28323c;
  flex: 1;
}
.velocity-track i {
  height: 100%;
  background: var(--blue);
  display: block;
  width: 0;
}
.velocity > span:last-child {
  font-size: 6px;
}
.activity-panel {
  margin-top: 18px;
}
.activity-panel .panel-heading {
  height: 40px;
}
.activity-log {
  height: 112px;
  padding: 10px 17px;
  overflow: auto;
  scrollbar-width: thin;
}
.log-row {
  display: flex;
  gap: 11px;
  font-size: 9px;
  line-height: 1.65;
  padding: 4px 0;
  color: #8b98a4;
}
.log-row time {
  font: 8px/1.85 var(--mono);
  color: #556574;
  white-space: nowrap;
}
.log-row .log-dot {
  height: 4px;
  width: 4px;
  background: #617384;
  margin-top: 6px;
  flex: none;
}
.log-row.success .log-dot {
  background: var(--green);
}
.log-row.warn {
  color: var(--accent);
}
.log-row.warn .log-dot {
  background: var(--accent);
}
.right-sidebar {
  border-left: 1px solid var(--line);
  background: #101419;
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.right-sidebar .panel-heading {
  height: 53px;
  padding: 0 19px;
}
.right-sidebar .panel-heading h3 {
  font-size: 9px;
}
.contact-count {
  font: 9px var(--mono);
  padding: 3px 5px;
  background: #1e252d;
  color: var(--muted);
  border: 1px solid #29323c;
  border-radius: 2px;
}
.overview-tabs {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.overview-tabs button {
  font-size: 9px;
  color: var(--muted);
  padding: 14px 0 12px;
  position: relative;
  white-space: nowrap;
}
.overview-tabs button.active {
  color: var(--accent);
}
.overview-tabs button.active:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--accent);
}
.overview-table-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 40px 58px 34px;
  align-items: center;
  gap: 8px;
  padding: 13px 14px 9px;
  font: 7px var(--mono);
  letter-spacing: 0.6px;
  color: var(--dim);
}
.overview-table-head button {
  font: 7px var(--mono);
  letter-spacing: 0.6px;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}
.overview-table-head button:first-child {
  grid-column: 1 / span 2;
  text-align: left;
}
.overview-table-head button.active {
  color: var(--accent);
}
.contact-list {
  height: 331px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #323e48 transparent;
}
.contact-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 40px 58px 34px;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid #1a2129;
  min-height: 46px;
  position: relative;
}
.contact-row:hover {
  background: #19212a;
}
.contact-row.selected {
  background: #e5a16c0b;
  border-left-color: var(--accent);
}
.contact-row .ov-icon {
  color: #8398a9;
  width: 18px;
  text-align: center;
}
.contact-row.hostile .ov-icon {
  color: #ca7777;
}
.contact-row.navy .ov-icon {
  color: #85b4cd;
}
.contact-row.belt .ov-icon,
.contact-row.cloud .ov-icon {
  color: #b7a286;
}
.contact-row.wreck .ov-icon,
.contact-row.cache .ov-icon,
.contact-row.site .ov-icon {
  color: var(--accent);
}
.contact-row .ov-name {
  min-width: 0;
  display: block;
}
.contact-row.locked {
  background: #de77750d;
}
.contact-row.locking {
  background: #85b4cd0d;
}
.contact-row .ov-type {
  font: 7px var(--mono);
  color: #5d6f7d;
  letter-spacing: 0.5px;
  text-align: right;
}
.contact-row .ov-trans {
  font: 8px var(--mono);
  color: #5d7284;
  text-align: right;
}
.contact-row .ov-state {
  position: absolute;
  right: 3px;
  top: 3px;
  color: var(--red);
  line-height: 0;
}
.contact-row .ov-state svg {
  width: 9px;
  height: 9px;
}
.contact-row .ov-lock {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}
.contact-row strong {
  display: block;
  font-weight: 400;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  color: #b7c1cc;
}
.contact-row small {
  font-size: 8px;
  color: #546473;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-row .ov-dist {
  font: 8px var(--mono);
  color: #8a99a7;
  white-space: nowrap;
  text-align: right;
}
.overview-footer {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line-soft);
  height: 32px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: #657887;
}
.overview-footer > span:last-child {
  margin-left: auto;
}
.selected-panel {
  border-bottom: 1px solid var(--line);
}
.selected-panel .panel-heading {
  height: 44px;
}
.selected-panel .panel-heading > span {
  color: var(--dim);
}
#selected-object {
  padding: 17px 19px;
  min-height: 153px;
}
.empty-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 117px;
  text-align: center;
}
.empty-selection svg {
  width: 28px;
  height: 28px;
  color: #4a5a69;
  margin-bottom: 12px;
}
.empty-selection p {
  color: #8493a1;
  font-size: 10px;
  margin-bottom: 6px;
}
.empty-selection small {
  font-size: 9px;
  color: #526271;
  line-height: 1.6;
}
.target-identity {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
}
.target-identity > span {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a232d;
  border: 1px solid #344351;
  color: var(--blue);
}
.target-identity.hostile > span {
  color: var(--red);
  background: #de77750b;
  border-color: #de77753a;
}
.target-identity h4 {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 450;
}
.target-identity p {
  font-size: 8px;
  color: var(--muted);
}
.target-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.target-actions .button {
  flex: 1;
}
.target-distance {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: var(--muted);
  margin: 12px 0;
}
.target-distance span:last-child {
  color: var(--text);
}
.target-health {
  height: 3px;
  background: #332229;
  margin-bottom: 13px;
}
.target-health i {
  height: 100%;
  background: var(--red);
  display: block;
}
.cargo-panel {
  padding: 0 19px;
}
.cargo-panel .panel-heading {
  padding: 0;
  border-bottom: 0;
  margin-top: 6px;
}
.cargo-capacity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px var(--mono);
  margin: 1px 0 11px;
}
.cargo-capacity strong {
  font-weight: 400;
  font-size: 13px;
}
.cargo-capacity strong span {
  font-size: 9px;
  color: var(--muted);
}
.cargo-capacity > span {
  font-size: 8px;
  color: var(--muted);
}
.progress-track {
  height: 4px;
  background: #27313b;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
  width: 0;
}
.cargo-item {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ore-icon {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3e3830;
  background: linear-gradient(145deg, #3c3830, #1b2024);
  color: #bcaa8e;
  flex: none;
}
.cargo-item strong {
  display: block;
  font-size: 9px;
  font-weight: 450;
  margin-bottom: 4px;
}
.cargo-item small {
  font-size: 8px;
}
.cargo-item > span:last-child {
  margin-left: auto;
  font: 9px var(--mono);
  color: var(--muted);
}
.cargo-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: var(--dim);
}
.cargo-value strong {
  color: #aebba9;
  font: 10px var(--mono);
  letter-spacing: 0;
}
.cargo-value small {
  font-size: 8px;
}
.statusbar {
  min-height: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: #5e6e7c;
  background: #0e1318;
  gap: 15px;
}
.statusbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.statusbar .live-dot {
  width: 4px;
  height: 4px;
}
.footer-separator {
  color: #374551;
  margin: 0 4px;
}
.statusbar button {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: #6e7e8c;
  margin-left: 12px;
}
.statusbar svg {
  width: 12px;
  height: 12px;
}
.transit-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(90deg, #07132144, #09131dc9, #07132144);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.transit-overlay h3 {
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 1px;
}
.transit-overlay .progress-track {
  width: 230px;
}
.dock-overlay {
  position: absolute;
  inset: 50px 0 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #10172080;
  backdrop-filter: blur(3px);
}
.dock-overlay > span {
  color: var(--accent);
  margin-bottom: 17px;
}
.dock-overlay > span svg {
  height: 32px;
  width: 32px;
}
.dock-overlay h3 {
  font-size: 27px;
  font-weight: 350;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.dock-overlay p {
  color: #9eacb9;
  font-size: 11px;
}
.dock-overlay > div {
  display: flex;
  gap: 10px;
  margin-top: 21px;
}
.toast-stack {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(500px, 90vw);
}
.toast {
  border: 1px solid #3f524a;
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  background: #17201ef5;
  box-shadow: 0 8px 30px #0005;
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 0.2s ease-out;
}
.toast.warn {
  border-color: #6d5138;
  border-left-color: var(--accent);
  background: #241e18f5;
}
.toast.info {
  border-color: #3d4d5c;
  border-left-color: var(--blue);
  background: #172029f5;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Workspaces */
.workspace-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #4b4032;
  background: #e5a16c08;
  margin-bottom: 20px;
  color: #bca58b;
  font-size: 10px;
  line-height: 1.5;
}
.workspace-notice .button {
  margin-left: auto;
  white-space: nowrap;
}
.workspace-notice svg {
  color: var(--accent);
}
.workspace-notice.ready {
  border-color: #345044;
  background: #86bda306;
  color: var(--green);
}
.workspace-notice > div {
  flex: 1;
}
.workspace-notice strong {
  font-weight: 500;
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}
.workspace-notice small {
  font-size: 9px;
}
.workspace-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.workspace-tabs button {
  font-size: 11px;
  padding: 0 0 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.workspace-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.fitting-summary {
  display: flex;
  align-items: center;
  gap: 19px;
  background: linear-gradient(110deg, #1b2530, #111820);
  border: 1px solid #33404d;
  padding: 23px;
  margin-bottom: 18px;
}
.fitting-summary > span {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6a7d8d35;
  transform: rotate(-15deg);
  background: #869bab09;
  color: #a6bbc9;
}
.fitting-summary > span svg {
  width: 45px;
  height: 45px;
}
.fitting-summary h3 {
  font-size: 23px;
  font-weight: 400;
  margin: 6px 0;
}
.fitting-summary p {
  font-size: 10px;
  color: var(--muted);
}
.fitting-summary > div:last-child {
  margin-left: auto;
  text-align: right;
}
.fitting-summary .text-button {
  margin-top: 12px;
}
.resource-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.resource-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  color: var(--muted);
  margin-bottom: 11px;
}
.resource-meter strong {
  color: var(--text);
  font-weight: 400;
}
.resource-meter .progress-track i {
  background: var(--blue);
}
.fitting-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}
.fit-section {
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--panel);
}
.fit-section .panel-heading {
  height: 36px;
  padding: 0 13px;
}
.fit-section .panel-heading h3 {
  font-size: 8px;
}
.slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.slot:last-child {
  border: 0;
}
.slot-icon {
  border: 1px solid #3b4652;
  width: 32px;
  height: 32px;
  background: #1c2630;
  color: #99aab9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.slot.empty .slot-icon {
  border-style: dashed;
  color: var(--dim);
  background: transparent;
}
.slot-content {
  flex: 1;
  min-width: 0;
}
.slot strong {
  display: block;
  font-size: 10px;
  font-weight: 450;
  margin-bottom: 5px;
}
.slot small {
  font: 7px var(--mono);
  color: var(--muted);
}
.slot .icon-button {
  width: 24px;
}
.slot select {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 7px;
  color: var(--text);
  font-size: 9px;
}
.fitting-stats {
  border: 1px solid var(--line);
  background: var(--panel);
  align-self: start;
}
.attribute-row {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.attribute-row strong {
  font: 10px var(--mono);
  color: var(--text);
}
.hangar-note {
  padding: 16px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.hangar-note .button {
  margin-top: 10px;
}
.navigation-layout {
  border: 1px solid var(--line);
  background: var(--panel);
}
.map-toolbar {
  padding: 15px;
  display: flex;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #34414d;
  background: #0e151c;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
}
.search-field svg {
  width: 14px;
  color: var(--muted);
}
input {
  color: var(--text);
  background: #111920;
  border: 1px solid #33414e;
  padding: 9px 10px;
  outline: none;
  min-width: 0;
}
input:focus {
  border-color: var(--accent);
}
.search-field input {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 10px;
}
.map-toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.map-toolbar input[type="checkbox"] {
  accent-color: var(--accent);
}
.galaxy-container {
  position: relative;
  height: 385px;
  background: radial-gradient(ellipse at 50% 50%, #152232, #090f17 70%);
  overflow: hidden;
}
#galaxy-map {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.map-legend {
  position: absolute;
  bottom: 17px;
  left: 18px;
  display: flex;
  gap: 15px;
  font: 7px var(--mono);
  color: #8392a3;
  pointer-events: none;
}
.map-legend > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.map-legend i {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}
.map-legend span:nth-child(2) i {
  background: var(--accent);
}
.map-legend span:nth-child(3) i {
  background: var(--red);
}
.map-caption {
  position: absolute;
  left: 20px;
  top: 20px;
  font: 8px var(--mono);
  letter-spacing: 1.4px;
  color: #8092a5;
  pointer-events: none;
}
.map-caption small {
  display: block;
  font-size: 6px;
  margin-top: 8px;
  letter-spacing: 1px;
}
.map-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px;
  border-top: 1px solid var(--line);
  background: #151e27;
}
.map-detail h3 {
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.map-detail p {
  font-size: 9px;
  color: var(--muted);
}
.map-detail .button {
  white-space: nowrap;
}
.system-browser {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.system-list {
  max-height: 230px;
  overflow: auto;
  scrollbar-width: thin;
}
.system-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.system-list-row.active {
  background: #e5a16c0a;
}
.system-list-row:hover {
  background: #1b252f;
}
.system-list-row > strong {
  font-size: 10px;
  font-weight: 450;
  flex: 1;
}
.system-list-row > small {
  font-size: 8px;
  width: 100px;
}
.system-list-row > span:last-child {
  font: 8px var(--mono);
  color: var(--muted);
  width: 60px;
  text-align: right;
}
.system-list-row .security {
  font-size: 8px;
  padding: 3px 4px;
  min-width: 29px;
  text-align: center;
}
.market-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.market-intro h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 7px;
}
.market-intro p {
  font-size: 10px;
  color: var(--muted);
}
.market-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 19px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.market-card > .slot-icon {
  height: 43px;
  width: 43px;
}
.market-card-content {
  flex: 1;
}
.market-card h4 {
  font-size: 12px;
  font-weight: 450;
  margin: 0 0 6px;
}
.market-card p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 350px;
}
.market-card .item-spec {
  font: 8px var(--mono);
  color: #677d8e;
  margin-top: 7px;
}
.market-purchase {
  text-align: right;
  flex: none;
}
.market-purchase strong {
  font: 12px var(--mono);
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
}
.market-purchase strong small {
  font-size: 8px;
}
.trade-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin-bottom: 12px;
}
.trade-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}
.trade-header .ore-icon {
  width: 39px;
  height: 39px;
}
.trade-header h4 {
  font-size: 12px;
  font-weight: 450;
  margin: 0 0 5px;
}
.trade-header p {
  color: var(--muted);
  font-size: 9px;
}
.trade-header > span:last-child {
  margin-left: auto;
  font: 9px var(--mono);
  color: var(--muted);
}
.trade-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.trade-controls label {
  font: 8px var(--mono);
  color: var(--muted);
}
.trade-controls input {
  width: 65px;
  font: 10px var(--mono);
  margin-left: 8px;
}
.trade-controls .button {
  flex: 1;
}
.contract-hero {
  padding: 28px;
  background:
    radial-gradient(ellipse at 85% 20%, #72523928, transparent 70%),
    linear-gradient(110deg, #1a2028, #121820);
  border: 1px solid #3e3b36;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.contract-hero:after {
  content: "◇";
  position: absolute;
  font-size: 180px;
  right: 15px;
  top: -50px;
  color: #e5a16c0b;
  pointer-events: none;
}
.contract-hero h3 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 350;
  margin: 12px 0;
}
.contract-hero p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 350px;
  color: #94a1ae;
}
.contract-stats {
  display: flex;
  gap: 30px;
  margin-top: 21px;
}
.contract-stats strong {
  font: 17px var(--mono);
  display: block;
  font-weight: 400;
}
.contract-stats small {
  display: block;
  font: 7px var(--mono);
  letter-spacing: 0.8px;
  margin-top: 6px;
}
.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contract-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 245px;
}
.contract-card .contract-icon {
  color: var(--accent);
  margin-bottom: 18px;
}
.contract-icon svg {
  width: 24px;
  height: 24px;
}
.contract-card .eyebrow {
  font-size: 7px;
}
.contract-card h4 {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
  margin: 9px 0;
}
.contract-card p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 19px;
}
.contract-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contract-card-footer strong {
  font: 12px var(--mono);
  color: var(--accent);
}
.contract-card-footer small {
  font-size: 8px;
}
.active-contract-card {
  padding: 23px;
  border: 1px solid #576d51;
  background: #86bda308;
  margin-bottom: 20px;
}
.active-contract-card h3 {
  font-size: 19px;
  font-weight: 450;
  margin: 10px 0;
}
.active-contract-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.active-contract-card .progress-track {
  margin: 19px 0 13px;
}
.active-contract-card .contract-card-footer {
  border: 0;
  padding-top: 4px;
}
.empty-state {
  padding: 30px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
dialog {
  background: #141b23;
  border: 1px solid #3b4958;
  color: var(--text);
  padding: 0;
  width: min(660px, calc(100vw - 32px));
  max-height: 85vh;
  box-shadow: 0 25px 100px #000b;
}
dialog::backdrop {
  background: #03080dc7;
  backdrop-filter: blur(5px);
}
.modal-heading {
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.modal-heading h3 {
  font-size: 23px;
  font-weight: 400;
}
.modal-body {
  padding: 24px 27px;
}
.manual-intro {
  font-size: 12px;
  line-height: 1.9;
  color: #a2afbc;
  margin-bottom: 23px;
}
.manual-step {
  display: flex;
  gap: 16px;
  margin-bottom: 21px;
}
.manual-step > span {
  color: var(--accent);
  font: 11px var(--mono);
  padding-top: 3px;
}
.manual-step h4 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 7px;
}
.manual-step p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.keyboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  background: #0e151c;
  border: 1px solid var(--line);
}
.keyboard-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.modal-footer {
  padding: 19px 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.modal-footer > span {
  font-size: 9px;
  color: var(--muted);
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-stat {
  padding: 18px;
  border: 1px solid var(--line);
  background: #101820;
}
.profile-stat strong {
  font: 24px var(--mono);
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}
.profile-stat small {
  font-size: 10px;
}
.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.settings-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0;
}
.rename-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.rename-form input {
  flex: 1;
  width: 50%;
}
.save-import {
  display: none;
}
.active-mode {
  color: var(--accent) !important;
  background: #e5a16c0a !important;
}
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: #354452;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 250px minmax(500px, 1fr) 340px;
  }
  .main-content {
    padding: 30px 32px;
  }
  .space-viewport {
    height: 465px;
  }
  .ship-status-content {
    gap: 30px;
    padding: 26px;
  }
  .integrity-gauge {
    width: 140px;
    height: 140px;
  }
  .contact-list {
    height: 403px;
  }
  .contact-row {
    padding: 13px 20px;
  }
  .topbar {
    gap: 55px;
  }
  .primary-nav {
    gap: 20px;
  }
  .module-button {
    height: 50px;
  }
  .activity-log {
    height: 134px;
  }
  .sidebar-section {
    padding: 26px;
  }
  .system-block {
    padding: 32px 26px;
  }
  .galaxy-container {
    height: 465px;
  }
}
@media (max-width: 1250px) {
  .topbar {
    gap: 22px;
    padding: 0 19px;
  }
  .brand {
    min-width: 165px;
  }
  .primary-nav {
    gap: 1px;
  }
  .nav-item {
    padding: 0 10px;
    font-size: 11px;
  }
  .top-right {
    gap: 12px;
  }
  .workspace {
    grid-template-columns: 195px minmax(400px, 1fr) 265px;
  }
  .main-content {
    padding: 24px 18px;
  }
  .sidebar-section {
    padding: 20px 17px;
  }
  .system-block {
    padding: 26px 17px;
  }
  .sidebar-bottom {
    padding: 18px 17px;
  }
  .heading-status {
    font-size: 6px;
  }
  .time-label {
    display: none;
  }
  .space-viewport {
    height: 365px;
  }
  .ship-status-content {
    gap: 14px;
    padding: 19px 13px;
  }
  .integrity-gauge {
    width: 96px;
    height: 96px;
  }
  .health-stats {
    min-width: 120px;
  }
  .module-bank {
    min-width: 140px;
    padding-left: 13px;
  }
  .module-bank-heading span:last-child {
    display: none;
  }
  .module-buttons {
    gap: 5px;
  }
  .module-button {
    min-width: 29px;
    width: calc((100% - 20px) / 5);
    height: 35px;
  }
  .module-button svg {
    width: 16px;
    height: 16px;
  }
  .control-button {
    padding: 8px 5px;
    font-size: 8px;
  }
  .control-button kbd {
    display: none;
  }
  .flight-controls .button {
    font-size: 9px;
    padding: 9px;
  }
  .overview-tabs {
    gap: 16px;
    padding: 0 15px;
  }
  .right-sidebar .panel-heading {
    padding: 0 15px;
  }
  .contact-row {
    padding: 11px 13px;
    gap: 7px;
  }
  .contact-row strong {
    font-size: 9px;
  }
  .contact-row small {
    font-size: 7px;
  }
  .contact-row .ov-dist {
    font-size: 7px;
  }
  .cargo-panel {
    padding: 0 15px;
  }
  .fitting-body {
    grid-template-columns: 1fr;
  }
  .fitting-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fitting-stats .panel-heading,
  .fitting-stats .hangar-note {
    grid-column: 1/-1;
  }
  .fitting-summary {
    padding: 18px;
  }
  .fitting-summary > span {
    width: 48px;
    height: 48px;
  }
  .fitting-summary h3 {
    font-size: 20px;
  }
  .contract-card {
    padding: 16px;
  }
  .contract-card-footer {
    flex-wrap: wrap;
  }
  .trade-controls {
    gap: 6px;
  }
  .trade-controls label {
    font-size: 7px;
  }
  .trade-controls input {
    width: 48px;
    margin-left: 3px;
  }
  .trade-controls .button {
    padding: 9px 7px;
    font-size: 9px;
  }
}
@media (max-width: 1050px) {
  .brand {
    min-width: 150px;
  }
  .brand > span:last-child {
    font-size: 22px;
  }
  .brand-mark {
    font-size: 40px;
  }
  .brand small {
    font-size: 6px;
  }
  .topbar {
    gap: 13px;
    height: 73px;
  }
  .top-right .icon-button {
    display: none;
  }
  .nav-item {
    padding: 0 9px;
    gap: 5px;
  }
  .nav-item svg {
    width: 14px;
  }
  .wallet small {
    font-size: 6px;
  }
  .wallet > span {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: 165px minmax(350px, 1fr) 242px;
  }
  .system-title {
    gap: 8px;
  }
  h1 {
    font-size: 24px;
  }
  .system-block p {
    font-size: 9px;
  }
  .system-coords {
    font-size: 7px;
  }
  .section-label {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .environment-row {
    gap: 9px;
  }
  .environment-row strong {
    font-size: 9px;
  }
  .environment-row small {
    font-size: 8px;
  }
  .main-content {
    padding: 22px 14px;
  }
  .view-heading {
    align-items: flex-start;
  }
  h2 {
    font-size: 22px;
  }
  .heading-status {
    padding-top: 28px;
    font-size: 5px;
    gap: 4px;
  }
  .space-viewport {
    height: 350px;
  }
  .ship-status-content {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
  .integrity-gauge {
    width: 109px;
    height: 109px;
  }
  .health-stats {
    flex: 1;
  }
  .module-bank {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 17px 0 0;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
  }
  .module-bank-heading {
    grid-column: 1/-1;
    margin-bottom: 11px;
  }
  .module-bank-heading span:last-child {
    display: block;
  }
  .module-buttons {
    flex-wrap: nowrap;
  }
  .velocity {
    margin: 0;
  }
  .module-button {
    width: 35px;
    height: 35px;
  }
  .contact-list {
    height: 325px;
  }
  .activity-log {
    height: 108px;
  }
  .scene-caption h3 {
    font-size: 20px;
  }
  .scene-location {
    bottom: 114px;
    font-size: 7px;
  }
  .control-button {
    gap: 4px;
  }
  .movement-controls {
    gap: 0;
  }
  .flight-controls {
    flex-wrap: wrap;
  }
  .flight-controls .button {
    margin-left: auto;
  }
  .statusbar {
    font-size: 6px;
    padding: 8px 16px;
  }
  .overview-tabs {
    gap: 13px;
  }
  .overview-tabs button {
    font-size: 8px;
  }
  .overview-table-head {
    font-size: 6px;
    padding: 14px;
  }
  .cargo-item {
    padding: 13px 0;
  }
  .pilot-card {
    gap: 8px;
  }
  .pilot-card strong {
    font-size: 9px;
  }
  .pilot-card small {
    font-size: 7px;
  }
  .pilot-card > .live-dot {
    display: none;
  }
  .contract-grid {
    grid-template-columns: 1fr;
  }
  .market-card {
    padding: 13px;
    gap: 10px;
  }
  .market-card h4 {
    font-size: 11px;
  }
  .market-card p {
    font-size: 8px;
  }
  .market-card > .slot-icon {
    width: 32px;
    height: 32px;
  }
  .map-toolbar {
    flex-wrap: wrap;
  }
  .map-toolbar .search-field {
    min-width: 100%;
  }
  .map-detail {
    padding: 14px;
  }
  .map-detail h3 {
    font-size: 15px;
  }
  .map-detail p {
    font-size: 8px;
  }
  .system-list-row {
    padding: 12px;
  }
  .system-list-row > small {
    display: none;
  }
}
@media (max-width: 850px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 110px;
    padding-top: 14px;
    gap: 0;
    justify-content: space-between;
  }
  .brand {
    order: 0;
  }
  .top-right {
    order: 1;
  }
  .primary-nav {
    order: 2;
    flex-basis: 100%;
    height: 47px;
    justify-content: space-between;
    margin-top: 8px;
  }
  .nav-item {
    font-size: 10px;
    flex: 1;
    justify-content: center;
  }
  .top-right .icon-button {
    display: flex;
  }
  .workspace {
    grid-template-columns: minmax(360px, 1fr) 255px;
  }
  .left-sidebar {
    display: none;
  }
  .main-content {
    padding: 22px 19px;
  }
  .heading-status {
    font-size: 6px;
  }
  .space-viewport {
    height: 360px;
  }
  .ship-status-content {
    gap: 19px;
  }
  .integrity-gauge {
    width: 105px;
    height: 105px;
  }
  .right-sidebar .panel-heading {
    height: 51px;
  }
  .module-button {
    width: 37px;
    height: 37px;
  }
  .module-bank {
    column-gap: 15px;
  }
  .statusbar > div:first-child > span:not(.live-dot) {
    display: none;
  }
  .statusbar {
    font-size: 6px;
  }
  .statusbar > div {
    gap: 5px;
  }
  .statusbar button {
    margin-left: 4px;
  }
  .workspace-notice {
    font-size: 9px;
  }
  .workspace-notice .button {
    padding: 8px;
  }
  .contract-hero h3 {
    font-size: 24px;
  }
}
@media (max-width: 620px) {
  .topbar {
    padding: 12px 15px 0;
  }
  .brand-mark {
    font-size: 34px;
  }
  .brand > span:last-child {
    font-size: 21px;
  }
  .brand small {
    font-size: 5px;
  }
  .wallet small {
    font-size: 6px;
  }
  .wallet > span {
    font-size: 12px;
  }
  .top-right {
    gap: 12px;
  }
  .pilot-avatar {
    width: 30px;
    height: 30px;
  }
  .top-right .icon-button {
    display: none;
  }
  .primary-nav {
    margin-top: 13px;
    height: 44px;
  }
  .nav-item {
    padding: 0 6px;
    font-size: 9px;
    gap: 5px;
  }
  .nav-item svg {
    width: 13px;
  }
  .nav-dot {
    display: none;
  }
  .nav-item:nth-child(2) {
    font-size: 0;
  }
  .nav-item:nth-child(2):before {
    content: "Fitting";
    font-size: 9px;
    order: 2;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .main-content {
    padding: 23px 15px 17px;
  }
  .view-heading {
    margin-bottom: 18px;
  }
  .view-heading h2 {
    font-size: 23px;
  }
  .heading-status {
    font-size: 6px;
    padding-top: 27px;
  }
  .space-viewport {
    height: 345px;
  }
  .scene-location {
    bottom: 115px;
  }
  .ship-status-content {
    padding: 20px;
    gap: 24px;
  }
  .integrity-gauge {
    width: 115px;
    height: 115px;
  }
  .health-stats {
    min-width: 150px;
  }
  .module-bank {
    column-gap: 18px;
  }
  .module-button {
    width: 38px;
    height: 39px;
  }
  .flight-controls {
    flex-wrap: nowrap;
  }
  .control-button {
    font-size: 8px;
    padding: 9px 5px;
  }
  .control-button svg {
    width: 12px;
  }
  .flight-controls .button {
    font-size: 8px;
    gap: 5px;
    padding: 9px 7px;
  }
  .right-sidebar {
    border-top: 1px solid var(--line);
    border-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 17px;
  }
  .overview-panel {
    grid-column: 1/-1;
  }
  .right-sidebar .panel-heading {
    height: 44px;
    padding: 0 18px;
  }
  .overview-tabs {
    gap: 24px;
    padding: 0 18px;
  }
  .overview-tabs button {
    font-size: 10px;
  }
  .contact-list {
    height: 245px;
  }
  .contact-row {
    padding: 12px 18px;
    gap: 12px;
  }
  .contact-row strong {
    font-size: 11px;
  }
  .contact-row small {
    font-size: 9px;
  }
  .contact-row .ov-dist {
    font-size: 9px;
  }
  .overview-table-head {
    font-size: 8px;
    padding: 15px 19px 11px;
  }
  .selected-panel {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .selected-panel .panel-heading h3 {
    font-size: 8px;
  }
  .selected-panel .panel-heading > span svg {
    width: 12px;
  }
  #selected-object {
    padding: 16px;
  }
  .cargo-panel {
    padding: 0 16px;
  }
  .cargo-panel .panel-heading {
    padding: 0;
    margin-top: 0;
  }
  .cargo-panel .panel-heading h3 {
    font-size: 8px;
  }
  .target-identity {
    gap: 8px;
  }
  .target-identity > span {
    width: 29px;
    height: 29px;
  }
  .target-identity h4 {
    font-size: 10px;
  }
  .target-identity p {
    font-size: 7px;
  }
  .target-actions .button {
    font-size: 8px;
    padding: 8px;
  }
  .cargo-value {
    font-size: 6px;
  }
  .cargo-value strong {
    font-size: 9px;
  }
  .cargo-item .ore-icon {
    width: 23px;
    height: 23px;
  }
  .cargo-item strong {
    font-size: 8px;
  }
  .cargo-item small {
    font-size: 7px;
  }
  .cargo-item > span:last-child {
    font-size: 8px;
  }
  .statusbar {
    padding: 12px 15px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    font-size: 6px;
  }
  .statusbar > div:first-child {
    display: none;
  }
  .fitting-body {
    grid-template-columns: 1fr;
  }
  .fitting-summary {
    gap: 15px;
  }
  .fitting-summary .eyebrow {
    font-size: 7px;
  }
  .fitting-summary > div:last-child {
    display: none;
  }
  .resource-meter > div:first-child {
    font-size: 8px;
  }
  .contract-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contract-card {
    padding: 16px;
    min-height: 280px;
  }
  .contract-card h4 {
    font-size: 13px;
  }
  .contract-card p {
    font-size: 9px;
  }
  .contract-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .contract-card-footer .button {
    width: 100%;
  }
  .active-contract-card .contract-card-footer {
    flex-direction: row;
    align-items: center;
  }
  .contract-hero {
    padding: 22px;
  }
  .trade-controls input {
    width: 45px;
  }
  .map-detail {
    flex-wrap: wrap;
  }
  .map-detail .button {
    margin-left: auto;
  }
  .galaxy-container {
    height: 320px;
  }
  .modal-heading {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 16px 20px;
  }
  .modal-heading h3 {
    font-size: 21px;
  }
  .keyboard-grid {
    padding: 14px;
    gap: 10px;
  }
  .keyboard-grid > div {
    font-size: 9px;
  }
  .system-list-row > small {
    display: block;
    width: 90px;
  }
  .market-card-content p {
    max-width: 180px;
  }
  .market-purchase strong {
    font-size: 10px;
  }
  .market-purchase .button {
    font-size: 8px;
  }
  .toast-stack {
    bottom: 20px;
  }
  .fitting-stats {
    grid-template-columns: 1fr 1fr;
  }
  .workspace:has(.view:not(#flight-view).active-view) .right-sidebar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 620px) {
  .module-bank {
    display: block;
    min-width: 0;
  }
  .module-bank-heading {
    margin-bottom: 12px;
  }
  .module-buttons {
    gap: 9px;
  }
  .module-button {
    width: 42px;
    height: 42px;
  }
  .velocity {
    margin-top: 18px;
  }
  .module-bank-heading span:last-child {
    font-size: 6px;
  }
  .velocity-track {
    min-width: 20px;
  }
}
@media (max-width: 380px) {
  .nav-item {
    font-size: 9px;
    padding: 0 5px;
  }
  .nav-item > span:first-child {
    display: none;
  }
  .nav-item:nth-child(2):before {
    font-size: 9px;
  }
  .top-right {
    gap: 8px;
  }
  .brand {
    min-width: 135px;
  }
  .ship-status-content {
    padding: 18px 14px;
    gap: 14px;
  }
  .integrity-gauge {
    width: 95px;
    height: 95px;
  }
  .health-stats {
    min-width: 110px;
  }
  .module-button {
    width: 38px;
    height: 38px;
  }
  .movement-controls .control-button {
    font-size: 0;
    padding: 8px;
  }
  .movement-controls .control-button svg {
    width: 15px;
    height: 15px;
  }
  .heading-status {
    font-size: 5px;
  }
  .contract-grid {
    grid-template-columns: 1fr;
  }
  .contract-card {
    min-height: 230px;
  }
  .contract-card-footer {
    flex-direction: row;
    align-items: center;
  }
  .contract-card-footer .button {
    width: auto;
  }
  .scene-caption h3 {
    font-size: 18px;
  }
  .scene-caption p {
    font-size: 9px;
  }
  .statusbar > div {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ================================================================== *
 * delta-15 · expanded command interface
 * ================================================================== */

/* --- locked target rack ------------------------------------------- */
.target-rack {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.target-rack.empty {
  display: none;
}
.target-card {
  min-width: 178px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141b23, #10161d);
  position: relative;
}
.target-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #e5a16c22;
}
.target-card.hostile {
  border-left: 2px solid var(--red);
}
.target-card.friendly {
  border-left: 2px solid var(--blue);
}
.target-card.locking {
  opacity: 0.78;
}
.tc-body {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 7px;
  align-items: center;
  width: 100%;
  padding: 8px 9px 6px;
  text-align: left;
}
.tc-icon {
  color: #8398a9;
  line-height: 0;
}
.tc-icon svg {
  width: 12px;
  height: 12px;
}
.tc-name {
  font-size: 9px;
  color: #b7c1cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-dist {
  font: 8px var(--mono);
  color: #7e8f9c;
}
.tc-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 9px 6px;
}
.tc-bars .tc-bar {
  height: 3px;
  background: #1d252e;
}
.tc-bars i {
  height: 3px;
  display: block;
}
.tc-shield {
  background: var(--blue);
}
.tc-armor {
  background: var(--accent);
}
.tc-hull {
  background: var(--red);
}
.tc-progress {
  height: 3px;
  background: #1d252e;
  margin: 0 9px 6px;
}
.tc-progress i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.tc-actions {
  display: flex;
  border-top: 1px solid var(--line-soft);
}
.tc-actions button {
  flex: 1;
  padding: 6px 0;
  color: var(--dim);
  line-height: 0;
}
.tc-actions button:hover:not(:disabled) {
  color: var(--accent);
  background: #ffffff08;
}
.tc-actions svg {
  width: 11px;
  height: 11px;
}

/* --- viewport additions ------------------------------------------- */
.viewport-tools {
  display: flex;
  gap: 4px;
}
.range-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.range-controls label {
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.range-controls select {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font: 9px var(--mono);
  padding: 6px 5px;
}
.context-menu {
  position: absolute;
  z-index: 40;
  min-width: 168px;
  background: #121920f2;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px #00000070;
  padding: 5px 0;
}
.context-menu .menu-title {
  font: 7px var(--mono);
  letter-spacing: 0.8px;
  color: var(--dim);
  padding: 7px 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.context-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 12px;
  font-size: 10px;
  color: #b2bdc7;
  text-align: left;
}
.context-menu button:hover {
  background: #e5a16c14;
  color: var(--accent);
}
.context-menu svg {
  width: 12px;
  height: 12px;
  color: var(--dim);
}
.context-menu kbd {
  margin-left: auto;
}

/* --- module bank additions ---------------------------------------- */
.module-button {
  position: relative;
  overflow: hidden;
}
.module-button .cycle-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #e5a16c1f;
  pointer-events: none;
  transition: height 0.12s linear;
}
.module-button .ammo-count {
  position: absolute;
  top: 2px;
  right: 3px;
  font: 7px var(--mono);
  color: #7e8f9c;
}
.module-button .burn-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 15px;
}
.module-button.module-hot {
  border-color: #d97b52;
  box-shadow: inset 0 0 12px #d97b5233;
}
.module-button.module-burned {
  opacity: 0.45;
  border-color: var(--red);
}
.heat-racks {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}
.heat-rack {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 6px var(--mono);
  letter-spacing: 0.6px;
  color: var(--dim);
}
.heat-rack .heat-track {
  flex: 1;
  height: 3px;
  background: #1c242c;
}
.heat-rack .heat-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6f8fa5, #e07c4c);
  transition: width 0.2s linear;
}
.heat-rack.hot {
  color: #e07c4c;
}
.ehp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: var(--dim);
}
.ehp-row strong {
  font: 11px var(--mono);
  color: var(--text);
}
.ehp-row strong small {
  font-size: 7px;
  color: var(--dim);
}

/* --- selected object ---------------------------------------------- */
.target-layers {
  margin: 12px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.layer-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 7px;
  align-items: center;
  font: 7px var(--mono);
  color: var(--dim);
}
.layer-track {
  height: 4px;
  background: #1c242c;
}
.layer-track i {
  display: block;
  height: 100%;
}
.layer-track i.shield {
  background: var(--blue);
}
.layer-track i.armor {
  background: var(--accent);
}
.layer-track i.hull {
  background: var(--red);
}
.layer-row b {
  font: 8px var(--mono);
  color: #94a3ae;
  text-align: right;
}
.target-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 12px;
}
.target-rows > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  color: var(--muted);
}
.target-rows strong {
  font: 9px var(--mono);
  color: #bcc6cf;
}
.lock-flag {
  margin-left: auto;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
}
.lock-flag.pending {
  color: var(--blue);
}
.lock-flag svg {
  width: 10px;
  height: 10px;
}
.target-identity.friendly > span {
  color: var(--blue);
}
.mini-contract {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 11px;
  margin-bottom: 11px;
}
.mini-contract h4 {
  font-size: 11px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #c3ccd4;
}

/* --- tool panel ---------------------------------------------------- */
.tool-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-top: 14px;
}
.tool-tabs {
  display: flex;
  gap: 14px;
}
.tool-tabs button {
  font: 8px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.tool-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tool-body {
  padding: 14px 18px 18px;
  min-height: 168px;
}
.tool-hint {
  font-size: 9px;
  color: var(--dim);
  line-height: 1.6;
  margin: 10px 0;
}
.dscan-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.dscan-controls label,
.probe-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  color: var(--dim);
  flex: 1;
  min-width: 190px;
}
.dscan-controls label b,
.probe-slider b {
  font: 9px var(--mono);
  color: var(--text);
  min-width: 52px;
  text-align: right;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  background: #26303a;
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #10161d;
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #10161d;
}
.dscan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.dscan-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font: 7px var(--mono);
  letter-spacing: 0.6px;
  color: var(--muted);
}
.dscan-chip svg {
  width: 10px;
  height: 10px;
}
.dscan-chip.hostile {
  border-color: #6a3e3e;
  color: #d99a95;
}
.dscan-chip.station,
.dscan-chip.cloud {
  color: var(--green);
}
.dscan-rows {
  max-height: 190px;
  overflow: auto;
  scrollbar-width: thin;
}
.dscan-row {
  display: grid;
  grid-template-columns: 16px 1fr 66px 70px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  color: #aab5bf;
}
.dscan-row svg {
  width: 11px;
  height: 11px;
  color: var(--dim);
}
.dscan-row small {
  font: 7px var(--mono);
  color: var(--dim);
}
.dscan-row b {
  font: 8px var(--mono);
  color: #8a99a7;
  text-align: right;
}
.probe-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.9fr);
  gap: 16px;
}
.probe-map-wrap {
  position: relative;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 0.82;
  min-height: 220px;
}
#scan-map {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.probe-legend {
  position: absolute;
  left: 9px;
  bottom: 8px;
  font: 6px var(--mono);
  letter-spacing: 0.8px;
  color: var(--dim);
}
.probe-side {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.probe-status {
  border: 1px solid var(--line);
  padding: 11px 13px;
}
.probe-status strong {
  display: block;
  font: 18px var(--mono);
  color: var(--green);
  font-weight: 400;
}
.probe-status small {
  font: 6px var(--mono);
  letter-spacing: 0.9px;
  color: var(--dim);
}
.warn-text {
  color: var(--red) !important;
}
.good {
  color: var(--green);
}
.sig-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 210px;
  overflow: auto;
  scrollbar-width: thin;
}
.sig-row {
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
}
.sig-row.resolved {
  border-color: #5b4a72;
  background: #b79ad40a;
}
.sig-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sig-head strong {
  font-size: 9px;
  font-weight: 400;
  color: #bcc6cf;
}
.sig-head b {
  font: 9px var(--mono);
  color: var(--accent);
}
.sig-track {
  height: 3px;
  background: #1c242c;
  margin: 7px 0 6px;
}
.sig-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6f8fa5, #b79ad4);
}
.sig-row small {
  font: 7px var(--mono);
  color: var(--dim);
}
.journal-list {
  max-height: 260px;
  overflow: auto;
  scrollbar-width: thin;
}
.journal-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 84px 74px 74px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  color: #aab5bf;
}
.journal-row time,
.journal-row small {
  font: 7px var(--mono);
  color: var(--dim);
}
.journal-row strong,
.journal-row b {
  font: 9px var(--mono);
  text-align: right;
  font-weight: 400;
}
.journal-row.credit strong {
  color: var(--green);
}
.journal-row.debit strong {
  color: var(--red);
}
.journal-row b {
  color: #8a99a7;
}

/* --- fitting workspace --------------------------------------------- */
.fit-racks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rack {
  border: 1px solid var(--line);
  background: var(--panel);
}
.rack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 4px;
}
.rack-head h3 {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}
.rack-hint {
  font: 7px var(--mono);
  letter-spacing: 0.6px;
  color: var(--dim);
  margin: 0 15px 10px;
}
.rack-slots {
  display: flex;
  flex-direction: column;
}
.fit-slot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.fit-slot.empty {
  color: var(--dim);
  grid-template-columns: 34px minmax(0, 1fr);
}
.fit-slot.empty:hover:not(:disabled) {
  background: #ffffff06;
}
.fit-slot.filled {
  background: #ffffff03;
}
.fit-slot.hot {
  box-shadow: inset 2px 0 0 #e07c4c;
}
.fit-slot.burned {
  opacity: 0.5;
  box-shadow: inset 2px 0 0 var(--red);
}
.fit-slot .slot-main {
  display: contents;
  text-align: left;
}
.fit-slot .slot-icon {
  width: 34px;
  height: 34px;
}
.fit-slot .slot-content strong {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #c2ccd4;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fit-slot .slot-content small {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: var(--dim);
}
.ammo-select {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: #a9b5bf;
  font: 8px var(--mono);
  padding: 5px 6px;
  max-width: 150px;
}
.fitting-readouts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.readout {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 0 14px;
}
.readout .panel-heading {
  height: 40px;
}
.readout .attribute-row,
.readout table {
  margin: 0 15px;
}
.resist-table,
.weapon-table {
  width: calc(100% - 30px);
  border-collapse: collapse;
  font: 8px var(--mono);
  margin-bottom: 12px;
}
.resist-table th,
.weapon-table th {
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.6px;
  text-align: right;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}
.resist-table thead th:first-child,
.weapon-table thead th:first-child,
.resist-table tbody th {
  text-align: left;
  color: var(--muted);
}
.resist-table td,
.weapon-table td {
  text-align: right;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: #a9b5bf;
}
.weapon-table td:first-child {
  text-align: left;
  color: #c2ccd4;
}
.weapon-table td small {
  display: block;
  color: var(--dim);
  font-size: 7px;
  margin-top: 2px;
}
.resist-table td.mid {
  color: var(--accent);
}
.resist-table td.high {
  color: var(--green);
}
.empty-cell {
  text-align: center !important;
  color: var(--dim) !important;
}
.ehp-split {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 15px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.ehp-split > div {
  background: var(--panel);
  padding: 8px 6px;
  text-align: center;
}
.ehp-split span {
  display: block;
  font: 6px var(--mono);
  letter-spacing: 0.7px;
  color: var(--dim);
  margin-bottom: 4px;
}
.ehp-split strong {
  font: 10px var(--mono);
  color: #bcc6cf;
  font-weight: 400;
}
.cap-curve {
  margin: 12px 15px 0;
}
.cap-curve svg {
  width: 100%;
  height: 52px;
  display: block;
  background: #0d1219;
  border: 1px solid var(--line-soft);
}
.cap-curve-labels {
  display: flex;
  justify-content: space-between;
  font: 6px var(--mono);
  letter-spacing: 0.6px;
  color: var(--dim);
  margin-top: 4px;
}
.resource-meter.over .progress-track i {
  background: var(--red);
}
.resource-meter.over strong {
  color: var(--red);
}
.hangar-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-top: 16px;
  padding-bottom: 16px;
}
.hangar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.hangar-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  background: var(--panel);
  padding: 10px 14px;
  text-align: left;
}
.hangar-item:hover {
  background: #19212a;
}
.hangar-item .slot-icon {
  width: 30px;
  height: 30px;
}
.hangar-item strong {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #bcc6cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hangar-item small {
  font: 7px var(--mono);
  color: var(--dim);
}
.hangar-item b {
  font: 9px var(--mono);
  color: var(--accent);
}
.hangar-panel > .button {
  margin: 0 15px;
}

/* --- market --------------------------------------------------------- */
.market-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}
.market-items {
  border: 1px solid var(--line);
  background: var(--panel);
  max-height: 620px;
  overflow: auto;
  scrollbar-width: thin;
}
.market-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  text-align: left;
}
.market-item.active {
  background: #e5a16c0b;
  border-left-color: var(--accent);
}
.market-item strong {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #bcc6cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-item small {
  font: 7px var(--mono);
  color: var(--dim);
}
.market-item b {
  font: 9px var(--mono);
  color: var(--green);
}
.market-detail {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}
.market-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.market-detail-head h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 6px 0 6px;
}
.market-detail-head p {
  font-size: 10px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}
.market-spread {
  display: flex;
  gap: 18px;
}
.market-spread small {
  display: block;
  font: 6px var(--mono);
  letter-spacing: 0.8px;
  color: var(--dim);
  margin-bottom: 5px;
}
.market-spread strong {
  font: 15px var(--mono);
  font-weight: 400;
  color: var(--text);
}
.market-graph {
  height: 132px;
  border: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.market-graph canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.order-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.order-book h4 {
  font: 7px var(--mono);
  letter-spacing: 0.9px;
  color: var(--dim);
  margin: 0 0 7px;
  font-weight: 400;
}
.order-book table,
.region-compare table {
  width: 100%;
  border-collapse: collapse;
  font: 9px var(--mono);
}
.order-book th,
.region-compare th {
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 0.6px;
  color: var(--dim);
  text-align: right;
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
}
.order-book th:first-child,
.region-compare th:first-child {
  text-align: left;
}
.order-book td,
.region-compare td {
  text-align: right;
  padding: 5px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: #a9b5bf;
}
.order-book td:first-child,
.region-compare td:first-child {
  text-align: left;
}
.order-book.sell td:first-child {
  color: #d9a08a;
}
.order-book.buy td:first-child {
  color: var(--green);
}
.region-compare tr.here td {
  color: var(--accent);
}
.region-compare h4 {
  font: 7px var(--mono);
  letter-spacing: 0.9px;
  color: var(--dim);
  margin: 0 0 7px;
  font-weight: 400;
}
.trade-hold {
  font: 8px var(--mono);
  color: var(--dim);
  white-space: nowrap;
}
.hull-card .item-spec + .item-spec {
  margin-top: 5px;
}

/* --- standings ------------------------------------------------------ */
.standings-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 16px;
}
.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.standings-grid.compact {
  border: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.standing-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  background: var(--panel);
  padding: 13px 16px;
}
.faction-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.standing-row strong {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #c2ccd4;
  margin-bottom: 3px;
}
.standing-row small {
  font-size: 8px;
  color: var(--dim);
  line-height: 1.5;
  display: block;
}
.standing-value {
  text-align: right;
}
.standing-value b {
  display: block;
  font: 14px var(--mono);
  font-weight: 400;
  color: var(--muted);
}
.standing-value small {
  font: 6px var(--mono);
  letter-spacing: 0.8px;
  color: var(--dim);
}
.standing-value.good b {
  color: var(--green);
}
.standing-value.bad b {
  color: var(--red);
}

/* --- modal extras ---------------------------------------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.spec-grid > div {
  background: var(--panel);
  padding: 10px 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.spec-grid span {
  font-size: 9px;
  color: var(--muted);
}
.spec-grid strong {
  font: 9px var(--mono);
  color: #c2ccd4;
  font-weight: 400;
  text-align: right;
}
.picker-grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  max-height: 420px;
  overflow: auto;
  scrollbar-width: thin;
}
.picker-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  padding: 12px 15px;
  text-align: left;
}
.picker-item:hover {
  background: #19212a;
}
.picker-item .slot-icon {
  width: 34px;
  height: 34px;
}
.picker-item strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #c9d2d9;
  margin-bottom: 4px;
}
.picker-item small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 4px;
}
.picker-item em {
  font: 7px var(--mono);
  color: var(--dim);
  font-style: normal;
}
.picker-item b {
  font: 10px var(--mono);
  color: var(--accent);
}
.map-modes {
  display: flex;
  border: 1px solid var(--line);
}
.map-modes button {
  font: 7px var(--mono);
  letter-spacing: 0.7px;
  padding: 8px 11px;
  color: var(--muted);
}
.map-modes button.active {
  background: #e5a16c14;
  color: var(--accent);
}

/* --- responsive ------------------------------------------------------ */
@media (max-width: 1250px) {
  .probe-panel {
    grid-template-columns: 1fr;
  }
  .market-layout {
    grid-template-columns: 1fr;
  }
  .market-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    max-height: 260px;
  }
}
@media (max-width: 1050px) {
  .fitting-body {
    grid-template-columns: 1fr;
  }
  .order-books {
    grid-template-columns: 1fr;
  }
  .journal-row {
    grid-template-columns: 48px minmax(0, 1fr) 70px 64px;
  }
  .journal-row small {
    display: none;
  }
}
@media (max-width: 850px) {
  .target-card {
    min-width: 152px;
  }
  .flight-controls {
    flex-wrap: wrap;
  }
  .range-controls {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 620px) {
  .contact-row,
  .overview-table-head {
    grid-template-columns: 16px minmax(0, 1fr) 52px;
  }
  .contact-row .ov-type,
  .contact-row .ov-trans,
  .overview-table-head button[data-sort="type"],
  .overview-table-head button[data-sort="transversal"] {
    display: none;
  }
  .overview-tabs {
    overflow-x: auto;
  }
  .tool-body {
    padding: 12px 13px 15px;
  }
  .dscan-row {
    grid-template-columns: 14px minmax(0, 1fr) 62px;
  }
  .dscan-row small {
    display: none;
  }
  .journal-row {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .journal-row time,
  .journal-row b {
    display: none;
  }
  .fit-slot {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 9px 11px;
  }
  .ammo-select {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .fit-slot.filled > .icon-button {
    grid-column: 3;
    grid-row: 1;
  }
  .ehp-split {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-detail {
    padding: 13px;
  }
  .market-spread {
    gap: 12px;
  }
  .standing-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    padding: 11px 13px;
  }
  .standing-row small {
    display: none;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .region-compare table,
  .order-book table {
    font-size: 8px;
  }
  .tool-tabs {
    gap: 9px;
  }
  .panel-heading .tool-tabs button {
    font-size: 7px;
  }
}
@media (max-width: 380px) {
  .target-card {
    min-width: 136px;
  }
  .dscan-controls label,
  .probe-slider {
    min-width: 100%;
  }
}

.contact-row.aggressive {
  border-left-color: var(--red);
}
.contact-row.aggressive .ov-icon {
  animation: aggro-pulse 1.4s ease-in-out infinite;
}
@keyframes aggro-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.heading-note {
  font: 6px var(--mono);
  letter-spacing: 0.8px;
  color: var(--dim);
  margin-left: 8px;
}
.target-card.hostile.selected {
  box-shadow: 0 0 0 1px #de777533;
}
@media (prefers-reduced-motion: reduce) {
  .contact-row.aggressive .ov-icon {
    animation: none;
  }
}
