html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: #071015;
  color: #e9fbfc;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-container {
  padding: 0;
}

.orbit-panel h1 {
  letter-spacing: 0;
}

.eyebrow {
  color: #0c7180;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.orbit-shell {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  height: 100vh;
  min-height: 520px;
  background: #071015;
}

.orbit-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  background: #0b171d;
  border-right: 1px solid rgba(223, 247, 249, 0.12);
  overflow: auto;
}

.orbit-panel h1 {
  color: #f8ffff;
  font-size: 1.25rem;
  line-height: 1.1;
  margin: 0;
}

.orbit-copy {
  margin: 0.45rem 0 0;
  color: #9db2b8;
  font-size: 0.82rem;
}

.orbit-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.orbit-metrics div {
  border: 1px solid rgba(223, 247, 249, 0.12);
  border-radius: 8px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

.orbit-metrics span {
  display: block;
  color: #f8ffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.orbit-metrics small {
  color: #9db2b8;
  font-size: 0.72rem;
}

.orbit-list {
  display: grid;
  gap: 0.4rem;
}

.orbit-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 0.55rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(223, 247, 249, 0.1);
  border-radius: 8px;
  color: #e9fbfc;
}

.orbit-list-item:hover {
  border-color: #31c6ff;
  background: rgba(49, 198, 255, 0.08);
}

.orbit-list-item.is-selected {
  border-color: #ffc857;
  background: rgba(255, 200, 87, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.14);
}

.orbit-list-item strong {
  font-size: 0.78rem;
  line-height: 1.1;
}

.orbit-list-item span {
  color: #9db2b8;
  font-size: 0.7rem;
  white-space: nowrap;
}

.orbit-stage {
  position: relative;
  min-width: 0;
  min-height: 420px;
}

#orbit-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.orbit-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(520px, calc(100% - 2rem));
  padding: 0.65rem 0.8rem;
  color: #dff7f9;
  background: rgba(7, 16, 21, 0.78);
  border: 1px solid rgba(223, 247, 249, 0.18);
  border-radius: 8px;
  font-size: 0.9rem;
}

.satellite-details {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: min(420px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1rem;
  color: #e9fbfc;
  background: rgba(7, 16, 21, 0.86);
  border: 1px solid rgba(223, 247, 249, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.satellite-details-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.satellite-details h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.satellite-details-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #e9fbfc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 247, 249, 0.14);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
}

.satellite-details-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.satellite-detail-grid {
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.45rem 0.75rem;
  margin: 0;
}

.satellite-detail-grid dt {
  color: #9dc9cf;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.satellite-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: #f8ffff;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

@media (max-width: 840px) {
  .orbit-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .orbit-panel {
    max-height: none;
  }

  .orbit-stage {
    height: 68vh;
  }

  .satellite-details {
    position: relative;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}
