/* MUD Map Studio — TweakMill (offline zone designer; UX akin to Ebonreach Map Studio) */
.tm-mms-canvas-wrap {
  overflow: auto;
  min-height: min(58vh, 28rem);
  max-height: min(72vh, 40rem);
  background: linear-gradient(180deg, #1a2332 0%, #121821 100%);
}

.tm-mms-canvas {
  margin: 0;
  min-width: 1px;
  min-height: 1px;
  background-color: #161d28;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  transform: translateZ(0);
}

.tm-mms-svg {
  pointer-events: none;
  z-index: 1;
}

.tm-mms-svg line {
  stroke: rgba(102, 166, 255, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
}

.tm-mms-nodes {
  pointer-events: none;
  z-index: 2;
}

.tm-mms-node {
  position: absolute;
  pointer-events: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.15;
  padding: 2px 4px;
  border: 1px solid rgba(13, 71, 161, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #142032;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tm-mms-node:active {
  cursor: grabbing;
}

.tm-mms-node.is-selected {
  outline: 3px solid var(--tm-accent, #e65100);
  border-color: var(--tm-primary, #0d47a1);
  z-index: 3;
}

.tm-mms-zone-input {
  max-width: min(28rem, 100%);
}

.tm-mms-room-fields.disabled-opacity.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.tm-mms-export-tab.is-active {
  z-index: 1;
}

.tm-mms-hint {
  max-width: 22rem;
}

@media (max-width: 991px) {
  .tm-mms-hint {
    max-width: none;
    flex-basis: 100%;
  }
}
