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

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

.emr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 280px);
}

.emr__view {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 192px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  scrollbar-width: thin;
}

.emr__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emr__row {
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
}

.emr__sentinel {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 300ms ease-out;
}

.emr__sentinel--loading {
  background: #4cd4a6;
}

.emr__end {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(76, 212, 166, 0.16);
}

.emr__end-text {
  font-weight: 700;
  font-size: 11px;
  color: #4cd4a6;
}

.emr__end-check {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
}

.emr__end-check::before,
.emr__end-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: #4cd4a6;
  transform-origin: left center;
}

.emr__end-check::before {
  width: 5px;
  transform: rotate(45deg);
}

.emr__end-check::after {
  width: 9px;
  transform: rotate(-45deg);
}

.emr__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 340px) {
  .emr {
    gap: 4px;
  }
  .emr__view {
    height: 90px;
  }
  .emr__row {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .emr__sentinel {
    transition: none !important;
  }
}
