* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  display: flex;
  flex-direction: column;
}

.ship-status-bar {
  flex-shrink: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #1e293b;
}

.ship-status-loading {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  padding: 8px 4px;
}

.ship-status-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

.ship-status-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 108px;
  background: #1e293b;
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 6px solid var(--accent, #64748b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 720px) {
  .ship-status-items {
    flex-wrap: wrap;
  }

  .ship-status-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
  }
}

.ship-status-hint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 100%;
}

.ship-status-hint strong {
  color: #cbd5e1;
}

.ship-status-card__name {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-status-card__row {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.ship-status-card__row + .ship-status-card__row {
  margin-top: 8px;
}

.ship-status-card__row strong {
  color: #94a3b8;
  font-weight: 700;
  margin-right: 8px;
}

.ship-status-card__status {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 14px;
}

.ship-status-card--ok .ship-status-card__status {
  color: #86efac;
}

.ship-status-card--warn .ship-status-card__status {
  color: #fde047;
}

.ship-status-card--bad .ship-status-card__status {
  color: #fca5a5;
}

main {
  flex: 1;
  min-height: 0;
  padding: 12px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.ship-div-icon {
  background: transparent;
  border: 0;
}

.ship-marker {
  position: relative;
  width: 100px;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.ship-speed {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 2;
  margin-bottom: 2px;
}

.ship-pin-wrap {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  line-height: 0;
  z-index: 1;
}

.ship-pin-img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.ship-label {
  position: absolute;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

