html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wrap {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rowLabel {
  width: 72px;
  flex: 0 0 auto;
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
}

.frame {
  position: relative;
  border: 2px solid #17141a;
  border-radius: 4px;
  overflow: hidden;
  transition: width 300ms ease-out;
}

.fitFrame {
  border-color: #0a4fe8;
}

.fitImg {
  display: block;
  max-width: 100%;
  height: auto;
}

.rawImg {
  display: block;
}

.handle {
  position: absolute;
  top: -2px;
  right: -9px;
  width: 14px;
  height: calc(100% + 4px);
  border-radius: 4px;
  background: #0a4fe8;
  cursor: ew-resize;
  opacity: 0.85;
  transition: opacity 140ms ease-out;
}
.handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  border-radius: 4px;
  background: #fff7e6;
  transform: translate(-50%, -50%);
}
.handle:hover {
  opacity: 1;
}

.readout {
  color: #17141a;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 340px) {
  .wrap {
    width: 260px;
  }
  .rowLabel {
    width: 60px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .frame {
    transition: none;
  }
}
