.qr-studio-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qr-studio-hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.8rem, 5vw, 4.5rem);
  background: #eef6ff;
  text-align: center;
}

.qr-studio-hero .site-container { max-width: 960px; }
.qr-studio-hero h1 {
  max-width: 860px;
  margin: 1rem auto 0;
  color: var(--color-text);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}
.qr-studio-hero h1 span { color: #56718e; }
.qr-studio-hero > .site-container > p:last-child {
  max-width: 720px;
  margin: 1.5rem auto 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.qr-studio { padding: clamp(2.5rem, 6vw, 5rem) 0; background: #fff; }
.qr-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  overflow: hidden;
  border: 1px solid #cadced;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 72, 145, 0.12);
}
.qr-editor { padding: clamp(1.4rem, 3.5vw, 2.7rem); }
.qr-editor form { display: grid; gap: 1.8rem; }
.qr-field { min-width: 0; }
.qr-field > label,
.qr-field-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
  font-weight: 750;
}
.qr-step {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #bfd4e8;
  border-radius: 50%;
  color: #0068ce;
  font-size: 0.7rem;
  font-weight: 700;
}
.qr-optional { margin-left: auto; color: var(--color-muted); font-size: 0.78rem; font-weight: 500; }
.qr-url-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0 0.9rem;
  border: 1px solid #bdcfe0;
  border-radius: 7px;
  background: #fff;
}
.qr-url-wrap:focus-within { border-color: #0071e3; outline: 3px solid rgba(0, 113, 227, 0.16); }
.qr-url-wrap > span { color: #0068ce; font-size: 1.25rem; }
.qr-url-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
}
.qr-hint { margin: 0.5rem 0 0; color: var(--color-muted); font-size: 0.82rem; line-height: 1.5; }
.qr-error { margin: 0.45rem 0 0; color: #b42318; font-size: 0.86rem; }
.qr-drop-zone {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1.5px dashed #b7cde2;
  border-radius: 8px;
  background: #f4f9ff;
}
.qr-drop-zone:hover,
.qr-drop-zone.dragover { border-color: #0071e3; background: #eaf4ff; }
.qr-drop-zone:focus-within { outline: 3px solid rgba(0, 113, 227, 0.18); outline-offset: 2px; }
.qr-drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qr-upload-prompt { display: grid; justify-items: center; padding: 1.2rem; pointer-events: none; text-align: center; }
.qr-upload-prompt strong { margin-top: 0.5rem; }
.qr-upload-prompt > span:last-child { color: var(--color-muted); font-size: 0.82rem; }
.qr-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0071e3;
  font-size: 1.6rem;
  box-shadow: 0 7px 20px rgba(0, 75, 145, 0.1);
}
.qr-uploaded-logo { display: flex; width: 100%; align-items: center; gap: 1rem; padding: 1.2rem; pointer-events: none; }
.qr-uploaded-logo img { width: 76px; height: 76px; padding: 0.35rem; border: 1px solid #d7e1eb; border-radius: 7px; background: #fff; object-fit: contain; }
.qr-uploaded-logo div { display: grid; min-width: 0; }
.qr-uploaded-logo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-uploaded-logo span { color: var(--color-muted); font-size: 0.82rem; }
.qr-upload-meta { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 1rem; }
.qr-text-button { padding: 0.35rem 0; border: 0; background: transparent; color: #0068ce; font: inherit; font-size: 0.82rem; text-decoration: underline; }
.qr-style-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 0; border: 0; }
.qr-style-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 72px;
  padding: 0.8rem;
  border: 1px solid #cad6e2;
  border-radius: 7px;
  cursor: pointer;
}
.qr-style-option:has(input:checked) { border-color: #0071e3; background: #eaf4ff; box-shadow: inset 0 0 0 1px #0071e3; }
.qr-style-option:focus-within { outline: 3px solid rgba(0, 113, 227, 0.18); outline-offset: 2px; }
.qr-style-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qr-style-symbol { color: #0071e3; font-size: 1.7rem; line-height: 1; }
.qr-style-option strong,
.qr-style-option small { display: block; }
.qr-style-option small { margin-top: 0.15rem; color: var(--color-muted); font-size: 0.74rem; }
.qr-blend-control { margin-top: 1rem; }
.qr-blend-control label { display: flex; justify-content: space-between; font-size: 0.86rem; }
.qr-blend-control input { width: 100%; margin-top: 0.6rem; accent-color: #0071e3; }
.qr-size-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.qr-size-field label { color: #4f6072; font-size: 0.86rem; }
.qr-size-field select { max-width: 60%; padding: 0.55rem 0.7rem; border: 1px solid #bdcfe0; border-radius: 7px; background: #fff; color: var(--color-text); font: inherit; font-size: 0.86rem; }
.qr-generate { display: flex; width: 100%; align-items: center; justify-content: space-between; }

.qr-preview { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.4rem, 3.5vw, 2.7rem); background: #111820; color: #fff; }
.qr-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.qr-preview-header h2 { margin: 0; font-size: 1.1rem; }
.qr-preview-header span { color: #9fb4c9; font-size: 0.68rem; font-weight: 700; letter-spacing: 0; }
.qr-preview-stage { display: grid; min-height: 360px; flex: 1; place-items: center; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #34475a; border-radius: 8px; background: #1a2632; }
.qr-paper { display: grid; width: min(100%, 330px); aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28); }
.qr-paper canvas { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-empty-state { display: grid; justify-items: center; padding: 1rem; color: #687786; text-align: center; }
.qr-empty-symbol { color: #b8cadb; font-size: 4rem; line-height: 1; }
.qr-empty-state strong { margin-top: 0.8rem; color: #4e6275; font-size: 1.2rem; line-height: 1.35; }
.qr-empty-state > span:last-child { margin-top: 0.6rem; font-size: 0.8rem; }
.qr-preview-details { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: #aebfd0; font-size: 0.75rem; }
.qr-preview-details span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-preview-details span:last-child { white-space: nowrap; }
.qr-status { min-height: 3em; margin: 0.9rem 0; color: #b9c8d6; font-size: 0.8rem; line-height: 1.5; }
.qr-status[data-tone="error"] { color: #ffb9b9; }
.qr-download { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 0.6rem; border: 0; border-radius: 7px; background: #1687f8; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.qr-download:hover:not(:disabled) { background: #0071e3; }
.qr-download:disabled { background: #344453; color: #899aa9; cursor: not-allowed; }
.qr-scan-note { margin: 0.7rem 0 0; color: #9fb0c0; font-size: 0.74rem; text-align: center; }
.qr-privacy-note { margin: 1rem 0 0; color: var(--color-muted); font-size: 0.82rem; text-align: center; }

@media (max-width: 860px) {
  .qr-workspace { grid-template-columns: 1fr; }
  .qr-preview-stage { min-height: 340px; }
}

@media (max-width: 560px) {
  .qr-studio-hero { text-align: left; }
  .qr-studio-hero .page-breadcrumb { justify-content: flex-start; }
  .qr-studio-hero h1 { margin-left: 0; font-size: 3.2rem; }
  .qr-studio-hero > .site-container > p:last-child { margin-left: 0; }
  .qr-editor,
  .qr-preview { padding: 1.25rem; }
  .qr-style-picker { grid-template-columns: 1fr; }
  .qr-size-field { align-items: flex-start; flex-direction: column; }
  .qr-size-field select { width: 100%; max-width: none; }
  .qr-preview-stage { min-height: 300px; }
  .qr-preview-details { flex-direction: column; gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-drop-zone,
  .qr-download { transition: none; }
}
