html,
body,
.page {
  min-height: 100vh;
}

#ssh-term {
  height: 28rem;
  padding: 0.5rem 0.5rem 0;
  background: #0f172a;
}

#ssh-term .xterm {
  height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-body.p-0 {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-body.p-0 > div {
  flex: 1;
  display: flex;
  min-height: 0;
}

.nmap {
  position: relative;
  flex: 1;
  height: auto;
  min-height: 0;
  width: 100%;
  background:
    radial-gradient(circle at 1px 1px, rgba(32, 107, 196, 0.16) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
}

.nmap-toolbar {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  max-width: min(720px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.nmap-hint {
  max-height: 4.5rem;
  margin: 8px 6px 2px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.nmap-toolbar.is-quiet .nmap-hint {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
}

#map-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#map-canvas.dragging {
  cursor: grabbing;
}

#map-canvas.hot {
  cursor: crosshair;
}

#map-canvas.hot-detail {
  cursor: pointer;
}

.nmap-traffic {
  position: absolute;
  z-index: 3;
  width: 600px;
  padding: 18px 18px 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  pointer-events: none;
}

.nmap-traffic[hidden] {
  display: none;
}

.nmap-traffic-title {
  color: #0f172a;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.nmap-traffic-sub {
  color: #64748b;
  font-size: 14px;
  margin-top: 2px;
}

#map-traffic-chart {
  min-height: 310px;
}
