body {
  font-family: Pretendard, sans-serif;
  background: #f9f9f9;
  padding: 2rem;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
textarea {
  width: 300px;
  height: 120px;
  padding: 0.5rem;
  font-size: 1rem;
  resize: vertical;
}
label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
input[type="color"], input[type="file"], select {
  margin-top: 0.25rem;
  padding: 0.3rem;
  font-size: 1rem;
}
input[type="text"],
input[type="url"] {
  margin-top: 0.25rem;
  padding: 0.5rem;
  font-size: 1rem;
  width: 300px;
  box-sizing: border-box;
}
label textarea {
  margin-top: 0.25rem;
}
button {
  background: black;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
}
.mode-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.mode-panel.is-hidden {
  display: none;
}
#preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  gap: 0.5rem;
  max-width: 280px;
}

.qr-canvas {
  width: 256px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas canvas,
.qr-canvas svg {
  width: 256px !important;
  height: 256px !important;
  max-width: 100%;
}

.qr-label {
  max-width: 256px;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
  line-height: 1.35;
}

.qr-block.has-hidden-label .qr-label {
  display: none;
}


.payload-preview-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.payload-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.payload-preview-header h2 {
  margin: 0;
  font-size: 1rem;
}

#payload-preview {
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  box-sizing: border-box;
  font-size: 0.9rem;
  line-height: 1.45;
  resize: vertical;
  white-space: pre-wrap;
}

.help-text,
.copy-status {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #555;
}

.copy-status {
  min-height: 1.2em;
}

.print-help {
  width: 300px;
  text-align: left;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.account-display-preview-card {
  width: 300px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.account-display-preview-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

#account-display-preview {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pay-page {
  min-height: 100vh;
  justify-content: center;
}

.pay-card {
  width: min(100%, 360px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-sizing: border-box;
}

.pay-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pay-label {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.pay-value {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

.pay-account-number {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.pay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pay-error {
  color: #9a1f1f;
}


.pay-url-tools {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pay-url-tools button {
  width: 100%;
}

.pay-url-help,
.pay-url-status {
  width: 300px;
  text-align: left;
}

.pay-url-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #555;
  word-break: break-word;
}

.pay-url-status.is-error {
  color: #9a1f1f;
}

.pay-url-status.is-warning {
  color: #765500;
}

.pay-url-status.is-ok {
  color: #1f6b3a;
}


.app-lead,
.mode-help,
.generation-status {
  width: 300px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  text-align: left;
}

.scan-check-card {
  width: 300px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.scan-check-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.scan-check-card ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
}

.pay-subtitle {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}


.field-error {
  width: 300px;
  min-height: 1.2em;
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #9a1f1f;
  text-align: left;
}

input.is-invalid,
textarea.is-invalid {
  border: 1px solid #9a1f1f;
  outline-color: #9a1f1f;
}
