#fleet3d {
  --fleet-card-bg-top: rgba(12, 20, 30, 0.92);
  --fleet-card-bg-bottom: rgba(5, 9, 15, 0.97);
  --fleet-card-border: rgba(140, 160, 184, 0.25);
  --fleet-card-divider: rgba(132, 151, 175, 0.28);
  --fleet-card-text: #eef4fc;
  --fleet-card-muted: rgba(174, 188, 206, 0.74);
  --fleet-card-accent: #68e19d;
}

#fleet3d {
  width: 100%;
  height: 70vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(55, 80, 120, 0.35);
  background: #0b1220;
}

.fleet3d-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.fleet3d-hovercard {
  position: absolute;
  z-index: 20;
  width: 336px;
  padding: 15px 15px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--fleet-card-bg-top), var(--fleet-card-bg-bottom));
  border: 1px solid var(--fleet-card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(10px);
  color: var(--fleet-card-text);
  pointer-events: none;
}

.fleet3d-hovercard .hc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fleet3d-hovercard .hc-name {
  flex: 1;
  min-width: 0;
  font-weight: 900;
  font-size: 17.75px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet3d-hovercard .hc-pill,
.fleet3d-selectedcard .hc-pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(138, 153, 173, 0.12);
  color: #eef4fd;
  line-height: 1;
}

.hc-pill.online {
  background: rgba(25, 179, 107, 0.14);
  border-color: rgba(84, 219, 146, 0.36);
  color: #73e4a3;
}

.hc-pill.stale {
  background: rgba(224, 170, 31, 0.18);
  border-color: rgba(224, 170, 31, 0.34);
}

.hc-pill.offline {
  background: rgba(123, 24, 20, 0.38);
  border-color: rgba(255, 117, 103, 0.38);
  color: #ff998f;
}

.hc-pill.unknown {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.28);
}

.fleet3d-hovercard .hc-pill.zoneText,
.fleet3d-selectedcard .hc-pill.zoneText {
  background: rgba(112, 130, 151, 0.14);
  border-color: rgba(182, 198, 217, 0.14);
  color: rgba(235, 241, 248, 0.94);
}

.fleet3d-hovercard .hc-body {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(145, 165, 190, 0.24);
  padding-top: 11px;
}

.fleet3d-hovercard .hc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.fleet3d-hovercard .hc-row .k {
  opacity: 0.75;
}

.fleet3d-hovercard .hc-row .v {
  font-weight: 700;
  opacity: 0.96;
  text-align: right;
}

.fleet3d-bottomstrip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 13, 25, 0.76);
  border: 1px solid rgba(122, 161, 214, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  max-height: 88px;
  pointer-events: none;
}

.fleet3d-bottomstrip .s-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e5eefc;
  opacity: 0.95;
  flex: 0 0 auto;
}

.fleet3d-bottomstrip .s-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.s-dot.online {
  background: rgba(25, 179, 107, 0.95);
}

.s-dot.stale {
  background: rgba(224, 170, 31, 0.95);
}

.s-dot.offline {
  background: rgba(224, 49, 36, 0.96);
}

.s-dot.unknown {
  background: rgba(148, 163, 184, 0.95);
}

.fleet3d-bottomstrip .s-name {
  font-weight: 800;
}

.fleet3d-bottomstrip .s-meta {
  opacity: 0.85;
  font-weight: 700;
}

.fleet3d-bottomstrip .s-sep {
  opacity: 0.35;
}

.fleet3d-bottomstrip .s-zone {
  font-weight: 900;
}

.fleet3d-bottomstrip .s-item {
  min-height: 18px;
}

.s-zone.z-A {
  color: #00c853;
}

.s-zone.z-B {
  color: #1d4ed8;
}

.s-zone.z-C {
  color: #ffc107;
}

.s-zone.z-D {
  color: #ff2d2d;
}

.fleet3d-selectedcard {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 25;
  width: 336px;
  max-width: calc(100% - 24px);
  padding: 20px 20px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, var(--fleet-card-bg-top), var(--fleet-card-bg-bottom));
  border: 1px solid var(--fleet-card-border);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  color: var(--fleet-card-text);
}

.fleet3d-selectedcard .sc-title {
  display: block;
  margin-bottom: 12px;
}

.fleet3d-selectedcard .sc-name {
  font-weight: 800;
  font-size: 16.75px;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #f4f8fd;
}

.fleet3d-selectedcard .sc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fleet3d-selectedcard .sc-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(149, 168, 191, 0.36), rgba(149, 168, 191, 0.08));
  margin-bottom: 12px;
}

.fleet3d-selectedcard .sc-body {
  display: grid;
  gap: 0;
}

.fleet3d-selectedcard .sc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(132, 151, 175, 0.13);
}

.fleet3d-selectedcard .sc-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.fleet3d-selectedcard .sc-row .k {
  color: var(--fleet-card-muted);
  font-weight: 675;
  letter-spacing: 0.01em;
}

.fleet3d-selectedcard .sc-row .v {
  font-weight: 780;
  color: #edf3fa;
  text-align: right;
}

.fleet3d-selectedcard .sc-row .v.accent {
  color: var(--fleet-card-accent);
  text-shadow: 0 0 10px rgba(92, 222, 151, 0.1);
}
