.swing-island {
  width: min(calc(100% - 28px), 996px);
  margin: 0 auto;
  padding-bottom: 12px;
  color: #214539;
}
.swing-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #8fd6e6;
  touch-action: pan-y pinch-zoom;
}
.swing-stage.is-ready { cursor: grab; }
.swing-stage.is-dragging { cursor: grabbing; }
.swing-stage > img, .swing-picture, .swing-signs { position: absolute; inset: 0; }
.swing-stage > img, .swing-front {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.swing-picture { pointer-events: none; }
.swing-frame:not([src]) { visibility: hidden; }
.swing-signs { pointer-events: none; }
.swing-stage:not(.is-ready) .swing-signs {
  top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
}
.swing-stage:not(.is-ready) .swing-sign { position: static; }
.swing-sign {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 3px 7px;
  border: 1px solid #756d50;
  border-radius: 7px;
  background: #fffdf6;
  color: #253227;
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px #263f3633;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.swing-sign .island-name, .swing-sign .island-kind { font: inherit; color: inherit; }
.swing-sign.swing-consultation { background: #215d47; color: #fff; border-color: #215d47; }
.swing-island :is(a, button, input):focus-visible { outline: 3px solid #153bff; outline-offset: 1px; }
.swing-sign:focus-visible { z-index: 2; }
.swing-marker, .swing-leader { position: absolute; top: 0; left: 0; pointer-events: none; }
.swing-marker {
  width: 7px;
  height: 7px;
  background: #26614c;
  border: 1px solid #fffdf6;
  border-radius: 50%;
}
.swing-leader { height: 1.5px; background: #244a3b; transform-origin: left center; }
.swing-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  accent-color: #26614c;
}
.swing-controls[hidden] { display: none; }
.swing-range { display: flex; flex: 1 0 220px; align-items: center; gap: 8px; font-size: 13px; }
.swing-range input { flex: 1; min-width: 70px; min-height: 44px; margin: 0; }
.swing-controls button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #8fa79b;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.swing-controls button:disabled { opacity: .55; cursor: default; }
.swing-controls .swing-status { flex-basis: 100%; font-size: 13px; margin: 0; }
.swing-status:empty { display: none; }
.swing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .swing-island { width: 100%; }
  .swing-stage { height: min(62svh, 128vw); aspect-ratio: auto; border-radius: 0; }
  .swing-sign { min-height: 26px; padding: 2px 6px; font-size: 11px; border-radius: 6px; }
  .swing-controls { margin-inline: 12px; }
}
@media (max-width: 520px) {
  .swing-range { flex-basis: 100%; }
}
