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

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

.list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 280px;
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7e6;
}
.row.dragging {
  opacity: 0.5;
}

.handle {
  appearance: none;
  border: none;
  background: none;
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(23, 20, 26, 0.5);
  cursor: grab;
  touch-action: none;
}
.handle svg {
  width: 16px;
  height: 16px;
}
.handle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.rowText {
  color: #17141a;
  font-size: 13px;
}

.insertLine {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 0;
  border-top: 2px dashed #2f6df6;
  pointer-events: none;
  transition: top 220ms ease-out;
}

.liveNote {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
}

@media (max-width: 340px) {
  .list {
    width: 220px;
    gap: 4px;
  }
  .row {
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insertLine {
    transition: none !important;
  }
}
