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);
}

.rq {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rq__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: #17141a;
}

.rq__zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px dashed rgba(23, 20, 26, 0.72);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 220ms ease-out, background 220ms ease-out;
}

.rq__zone.is-over {
  border-color: #93d9c0;
  background: rgba(147, 217, 192, 0.14);
}

.rq__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.rq__ic {
  width: 22px;
  height: 22px;
  color: #17141a;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rq__zone.is-over .rq__ic {
  transform: scale(1.15);
}

.rq__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 76px;
}

.rq__chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 2px solid rgba(23, 20, 26, 0.25);
  background: rgba(23, 20, 26, 0.05);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease-out, background 220ms ease-out, opacity 220ms ease-out;
  touch-action: none;
}

.rq__chip.is-done {
  border-color: #17141a;
  cursor: grab;
}

.rq__chip.is-drag {
  opacity: 0.85;
  border-color: #0a4fe8;
  background: rgba(23, 20, 26, 0.1);
  cursor: grabbing;
}

.rq__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.rq__name {
  font-weight: 500;
  font-size: 11px;
  color: #17141a;
  white-space: nowrap;
}

.rq__badge {
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(23, 20, 26, 0.72);
  background: rgba(23, 20, 26, 0.08);
}

.rq__chip.is-done .rq__badge {
  color: #f6eede;
  background: #17141a;
}

.rq__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 4px;
}

.rq__tag {
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
}

.rq__unit {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
  font-size: 10px;
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .rq {
    max-width: 270px;
    gap: 4px;
  }
  .rq__hint {
    font-size: 9px;
    line-height: 1.25;
  }
  .rq__zone {
    min-height: 28px;
    padding: 4px 8px;
  }
  .rq__ic {
    width: 18px;
    height: 18px;
  }
  .rq__name {
    font-size: 10px;
  }
  .rq__list {
    min-height: 44px;
    gap: 4px;
  }
  .rq__chip {
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rq__chip {
    transition: none;
  }
  .rq__zone, .rq__ic {
    transition: none;
  }
  .rq__zone.is-over .rq__ic {
    transform: none;
  }
}
