* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #14161a;
  color: #e6e6e6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #1c1f26;
  border-bottom: 1px solid #2a2e37;
}

header h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

#botCallsign {
  font-size: 14px;
  color: #7fb8ff;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 16px;
}

.map-panel {
  grid-row: span 2;
}

.log-panel {
  grid-column: span 2;
}

.panel {
  background: #1c1f26;
  border: 1px solid #2a2e37;
  border-radius: 10px;
  padding: 16px;
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 12px;
  color: #9aa4b2;
  font-weight: 600;
}

#map {
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #2a2e37;
}

th {
  color: #9aa4b2;
  font-weight: 600;
}

canvas {
  max-height: 220px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .map-panel, .log-panel {
    grid-column: span 1;
    grid-row: span 1;
  }
  #map {
    height: 300px;
  }
}
