/* Keep the baked skin and every percentage-based hotspot in one fitted box. */
#superseal-mobile-scale[hidden] { display: none !important; }

#superseal-mobile-scale {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 4px);
  left: calc(env(safe-area-inset-left, 0px) + 6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border: 1px solid #41894c;
  border-radius: 7px;
  background: rgba(0, 18, 8, .96);
  color: #caffd1;
  font: bold 11px Arial, sans-serif;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .65);
}

#superseal-mobile-scale .mobile-scale-readout {
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#superseal-mobile-scale button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #5dba71;
  border-radius: 5px;
  background: #092a13;
  color: #fff;
  font: bold 17px Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#superseal-mobile-scale button[data-mobile-scale="fit"] {
  font-size: 11px;
}

#superseal-mobile-scale button:disabled { opacity: .4; cursor: default; }
#superseal-mobile-scale button:focus-visible { outline: 2px solid white; outline-offset: 2px; }

@media (pointer: coarse) and (orientation: landscape) {
  html, body {
    height: var(--superseal-visible-height, 100dvh) !important;
    min-height: 0;
    overflow: hidden;
  }

  .app-shell {
    height: var(--superseal-visible-height, 100dvh) !important;
    min-height: 0;
    padding: calc(48px + env(safe-area-inset-top, 0px))
      calc(6px + env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px))
      calc(6px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .machine {
    max-width: none;
    flex-shrink: 0;
  }
}
