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

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

.panel {
  box-sizing: border-box;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.preview {
  margin: 0;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.preview strong {
  color: #0a4fe8;
}
.preview em {
  color: #c93000;
}
.preview code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: rgba(23, 20, 26, 0.08);
  border-radius: 4px;
  padding: 4px 4px;
}

.copyBtn {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.toast {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #17141a;
  opacity: 0;
  transition: min-width 220ms ease-out, opacity 220ms ease-out;
}

.toast.is-visible {
  opacity: 1;
}

.toastLabel {
  color: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badges {
  display: inline-flex;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: #5b8cf8;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 340px) {
  .panel {
    width: 260px;
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
