.qr-modal .qr-panel {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(35, 36, 50, 0.24);
  animation: modal-in 180ms ease-out;
}
.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.qr-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}
.qr-content {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
}
.qr-controls { min-width: 0; }
.qr-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.qr-controls textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  line-height: 1.5;
}
.qr-controls textarea:focus { border-color: var(--accent); }
.qr-colors {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qr-colors label {
  height: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.qr-colors input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qr-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 70px 84px;
  gap: 7px;
}
.qr-actions button {
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.qr-primary { border: 0; color: white; background: var(--accent); }
.qr-secondary { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.qr-preview {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.qr-preview canvas {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: none;
  border-radius: 8px;
}
.qr-preview.generated canvas { display: block; }
.qr-preview.generated span { display: none; }
.qr-preview span {
  max-width: 150px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 620px) {
  .qr-content { grid-template-columns: 1fr; }
  .qr-preview { min-height: 240px; }
  .qr-actions { grid-template-columns: 1fr 70px 84px; }
}
