html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(95, 174, 255, 0.12), transparent 32%),
    radial-gradient(circle at 84% 24%, rgba(210, 246, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #020409 100%);
  color: #edf6ff;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.surface {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.surface__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.surface__viewport.is-panning {
  cursor: grabbing;
}

.surface__content {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.surface__content svg,
.surface__content img {
  display: block;
  width: 5120px;
  height: 2880px;
  max-width: none;
  max-height: none;
}

.surface__hud {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  z-index: 2;
  pointer-events: none;
}

.surface__hud h1,
.surface__hud p {
  margin: 0;
}

.surface__hud h1 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface__hud p {
  margin-top: 0.35rem;
  color: rgba(237, 246, 255, 0.68);
  font-size: 0.75rem;
}

.engineer-modal[hidden] {
  display: none;
}

.engineer-modal {
  position: fixed;
  inset: 0;
  z-index: 5;
}

.engineer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.75);
  backdrop-filter: blur(9px);
}

.engineer-modal__panel {
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(194, 233, 255, 0.22);
  border-radius: 1rem;
  background: rgba(5, 13, 23, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.engineer-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.engineer-modal__head h2 {
  margin: 0;
  font-size: 1rem;
}

.engineer-modal__close,
.engineer-form__actions button {
  border: 1px solid rgba(194, 233, 255, 0.28);
  border-radius: 999px;
  background: rgba(14, 30, 46, 0.9);
  color: #edf6ff;
  padding: 0.52rem 0.9rem;
  font: inherit;
}

.engineer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.engineer-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.engineer-form input,
.engineer-form select {
  width: 100%;
  border: 1px solid rgba(194, 233, 255, 0.18);
  border-radius: 0.7rem;
  background: rgba(5, 13, 23, 0.95);
  color: #edf6ff;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.engineer-form__check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engineer-form__check input {
  width: auto;
}

.engineer-form__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .engineer-form {
    grid-template-columns: 1fr;
  }

  .surface__hud {
    left: 0.85rem;
    top: 0.75rem;
  }
}
