:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #ffffff;
  --panel-bg: #f7f9fa;
  --card: #ffffff;
  --ink: #333;
  --muted: #5c6470;
  --soft-muted: #8d95a1;
  --line: #e8ebed;
  --line-strong: #d6dbe0;
  --accent: #4990e5;
  --accent-dark: #2f78d0;
  --accent-soft: #eef6ff;
  --brand: #c64a32;
  --brand-light: #f27557;
  --operator: #7c3aed;
  --operator-dark: #5b21b6;
  --operator-soft: #f3e8ff;
  --operator-line: #d8b4fe;
  --warn-bg: #fdecea;
  --warn: #9c2a1f;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system, system-ui, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.qr-main {
  flex: 1 0 auto;
  width: 100%;
}

.qr-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 clamp(20px, 4vw, 32px);
}

.qr-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0;
  text-decoration: none;
}

.qr-app-icon {
  display: block;
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

.qr-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.qr-nav a,
.qr-nav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

.qr-nav a:hover,
.qr-nav button:hover {
  color: var(--ink);
}

.qr-sample-mode-indicator {
  background: var(--operator);
  border: 1px solid var(--operator);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 7px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.qr-sample-mode-indicator:hover,
.qr-sample-mode-indicator:focus-visible {
  background: var(--operator-dark);
  border-color: var(--operator-dark);
  color: #fff;
  outline: 2px solid var(--operator-line);
  outline-offset: 2px;
}

.qr-account-menu {
  position: relative;
}

.qr-account-menu summary {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  list-style: none;
  margin: -4px;
  padding: 4px;
}

.qr-account-menu summary::-webkit-details-marker {
  display: none;
}

.qr-account-menu summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

.qr-account-avatar {
  align-items: center;
  background: #f0f3f6;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #4d5662;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  width: 32px;
}

img.qr-account-avatar {
  object-fit: cover;
  padding: 0;
}

.qr-account-avatar-large {
  flex-basis: 40px;
  font-size: 15px;
  height: 40px;
  width: 40px;
}

.qr-step-account-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 12px 0 0 34px;
}

.qr-step-account {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.qr-step .qr-step-account p {
  margin: 0;
  overflow-wrap: anywhere;
}

.qr-step-account-avatar {
  flex-basis: 34px;
  height: 34px;
  width: 34px;
}

.qr-step-signout {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
}

.qr-subtle-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qr-subtle-button:hover,
.qr-subtle-button:focus-visible {
  color: var(--ink);
}

.qr-sample-mode-dot {
  background: var(--operator);
  border: 2px solid #fff;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.28);
  display: block;
  height: 16px;
  left: 18px;
  position: fixed;
  width: 16px;
  z-index: 20;
}

.qr-sample-mode-dot:hover,
.qr-sample-mode-dot:focus-visible {
  background: var(--operator-dark);
  outline: 2px solid var(--operator-line);
  outline-offset: 3px;
}

.qr-account-popover {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(30, 41, 59, 0.14), 0 3px 10px rgba(30, 41, 59, 0.08);
  min-width: min(340px, calc(100vw - 32px));
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 10;
}

.qr-account-popover::before {
  content: "";
  inset: -12px 0 auto;
  height: 12px;
  position: absolute;
}

.qr-account-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 8px 8px 12px;
}

.qr-account-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.qr-account-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-account-eyebrow {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.qr-account-section {
  border-top: 1px solid var(--line);
  padding: 7px 0;
}

.qr-account-section form {
  margin: 0;
}

.qr-account-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.qr-account-row svg {
  color: #6f7986;
  display: block;
  height: 21px;
  justify-self: center;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 21px;
}

.qr-account-row svg path {
  fill: none;
}

.qr-account-row span {
  overflow-wrap: anywhere;
}

.qr-account-row:hover,
.qr-account-row:focus-visible {
  background: var(--panel-bg);
  color: var(--ink);
  outline: 0;
}

.qr-account-row-primary {
  color: var(--accent-dark);
}

.qr-account-row-primary svg {
  color: var(--accent-dark);
}

.qr-account-row-danger {
  color: var(--warn);
}

.qr-account-row-danger svg {
  color: var(--warn);
}

.qr-account-row-delete {
  color: var(--muted);
}

.qr-account-row-delete svg {
  color: #8d95a1;
}

.qr-account-row-delete::after {
  color: #8d95a1;
  content: "×";
  font-size: 18px;
  font-weight: 800;
  grid-column: 3;
  opacity: 0;
  transition: opacity 120ms ease;
}

.qr-account-row-delete:hover::after,
.qr-account-row-delete:focus-visible::after {
  opacity: 0.8;
}

.qr-account-row-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.qr-account-row-disabled:hover,
.qr-account-row-disabled:focus-visible {
  background: transparent;
  color: var(--muted);
}

.qr-account-row-progress {
  border: 1px solid #d8dee6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  column-gap: 12px;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 54px;
  overflow: hidden;
  padding-bottom: 15px;
  position: relative;
  row-gap: 2px;
}

.qr-account-row-progress-fill {
  background: #2f78d0;
  border-radius: 999px;
  bottom: 4px;
  height: 3px;
  left: 8px;
  position: absolute;
  width: 0;
}

.qr-account-row-progress-fill.is-indeterminate {
  animation: qr-archive-progress-sweep 1.15s ease-in-out infinite;
  min-width: 0;
  width: 34%;
}

.qr-account-row-progress svg,
.qr-account-row-progress span:not(.qr-account-row-progress-fill) {
  position: relative;
  z-index: 1;
}

.qr-account-row-progress svg {
  grid-row: 1 / 3;
}

.qr-account-row-progress span:not(.qr-account-row-progress-fill):not(.qr-account-row-count) {
  line-height: 1.15;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-account-row-count {
  color: #8d95a1;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-account-row-primary:hover,
.qr-account-row-primary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.qr-account-row-danger:hover,
.qr-account-row-danger:focus-visible {
  background: var(--warn-bg);
  color: var(--warn);
}

.qr-account-row-delete:hover,
.qr-account-row-delete:focus-visible {
  background: var(--panel-bg);
  color: var(--ink);
}

.qr-account-row-trailing {
  grid-column: 3;
  opacity: 0.68;
}

.qr-account-row-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 2px 10px 6px;
}

.qr-operator-strip {
  align-items: center;
  background:
    linear-gradient(135deg, var(--operator-soft), #fff 58%);
  border: 1px solid var(--operator-line);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: -2px -2px 10px;
  padding: 6px;
}

.qr-operator-badge {
  background: var(--operator);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 7px 8px;
  text-transform: uppercase;
}

.qr-mode-switch {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--operator-line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.qr-mode-option {
  align-items: center;
  border-radius: 6px;
  color: var(--operator-dark);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-height: 30px;
  text-decoration: none;
}

.qr-mode-option:hover,
.qr-mode-option:focus-visible {
  color: var(--ink);
  outline: 0;
}

.qr-mode-option.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(91, 33, 182, 0.18);
  color: var(--operator-dark);
}

.qr-operator-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--operator-line);
  border-radius: 8px;
  color: var(--operator-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-height: 38px;
  padding: 0 9px;
  text-decoration: none;
}

.qr-operator-action svg {
  display: block;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 17px;
}

.qr-operator-action svg path {
  fill: none;
}

.qr-operator-action:hover,
.qr-operator-action:focus-visible {
  background: #fff;
  color: var(--operator-dark);
  outline: 0;
}

.qr-account-footnote {
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding: 12px 10px;
}

.qr-btn {
  appearance: none;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.35;
  min-height: 36px;
  padding: 8px 15px;
  text-decoration: none;
}

.qr-btn-small {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.qr-btn:hover {
  background: var(--accent-dark);
  color: white;
}

.qr-btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
}

.qr-btn-secondary:hover {
  background: var(--panel-bg);
  color: var(--accent);
}

.qr-btn-danger {
  background: #b42318;
}

.qr-btn-danger:hover {
  background: #8f1d1d;
}

.qr-btn-disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.qr-btn-progress {
  align-items: center;
  background: #e9edf2;
  border: 1px solid #cfd7e2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  color: #5f6873;
  display: grid;
  column-gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  justify-items: start;
  min-width: min(220px, 100%);
  overflow: hidden;
  padding: 8px 14px 11px;
  position: relative;
  text-align: left;
}

.qr-btn-progress-fill {
  background: #2f78d0;
  border-radius: 999px;
  bottom: 4px;
  height: 3px;
  left: 14px;
  max-width: calc(100% - 28px);
  position: absolute;
  width: 0;
}

.qr-btn-progress-fill.is-indeterminate {
  animation: qr-archive-progress-sweep 1.15s ease-in-out infinite;
  min-width: 0;
  width: 34%;
}

.qr-btn-progress-label,
.qr-btn-progress-count {
  position: relative;
  z-index: 1;
}

.qr-btn-progress-count {
  color: #6f7986;
  font-size: 12px;
  font-weight: 800;
  justify-self: end;
  line-height: 1;
  white-space: nowrap;
}

.qr-home {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 28px 64px;
}

.qr-download-page {
  margin: 0 auto;
  max-width: 520px;
  padding: 64px 28px;
}

.qr-download-page h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 22px;
}

.qr-download-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-download-page .qr-note {
  margin-top: 12px;
}

.qr-ops {
  margin: 0 auto;
  max-width: min(1240px, calc(100vw - 32px));
  padding: 14px 0 48px;
}

.qr-header {
  min-height: 104px;
  margin: 0 -28px 22px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.qr-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}

.qr-ops-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 18px;
  min-height: 74px;
  padding: 20px 0 16px;
}

.qr-ops-topbar {
  min-height: 52px;
}

.qr-ops-brandline {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.qr-ops-topbar-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.qr-ops-infra {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0 18px;
  padding: 0;
}

.qr-ops-infra-active {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}

.qr-ops-infra-waiting {
  border-color: color-mix(in srgb, var(--warn) 30%, var(--line));
}

.qr-ops-infra-details {
  margin: 0;
}

.qr-ops-infra-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  padding: 12px 14px;
}

.qr-ops-infra-summary::-webkit-details-marker {
  display: none;
}

.qr-ops-infra-summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.qr-ops-infra-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.qr-ops-infra-summary .qr-ops-infra-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.qr-ops-infra-summary .qr-ops-infra-primary {
  align-items: center;
  background: var(--panel-bg);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  padding: 5px 9px;
}

.qr-ops-infra-active .qr-ops-infra-primary {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent-strong);
}

.qr-ops-infra-active .qr-ops-infra-primary::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.qr-ops-infra-waiting .qr-ops-infra-primary {
  background: var(--warn-bg);
  color: var(--warn);
}

.qr-ops-infra-summary .qr-ops-infra-detail {
  color: var(--ink);
}

.qr-ops-infra-state {
  color: var(--ink) !important;
}

.qr-ops-infra-alert {
  color: var(--danger) !important;
}

.qr-ops-infra-toggle {
  color: var(--accent) !important;
  font-weight: 800 !important;
  margin-left: auto;
}

.qr-ops-infra-toggle-open {
  display: none;
}

.qr-ops-infra-details[open] .qr-ops-infra-toggle-closed {
  display: none;
}

.qr-ops-infra-details[open] .qr-ops-infra-toggle-open {
  display: inline;
}

.qr-ops-infra-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 14px 0 12px;
}

.qr-ops-infra-head h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.qr-ops-infra-head p,
.qr-ops-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.qr-ops-scale-pill {
  background: var(--operator-soft);
  border: 1px solid var(--operator-line);
  border-radius: 999px;
  color: var(--operator-dark);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.qr-ops-infra-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.qr-ops-infra-group {
  min-width: 0;
}

.qr-ops-infra-group-wide {
  grid-column: 1 / -1;
}

.qr-ops-infra-group h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 8px;
}

.qr-ops-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 8px;
}

.qr-ops-kpis div {
  min-width: 0;
}

.qr-ops-kpis dt {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.qr-ops-kpis dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.qr-ops-command {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  padding: 8px;
}

.qr-ops-warnings {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.qr-ops-warning {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

.qr-ops-warning strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.qr-ops-warning span {
  font-size: 13px;
  line-height: 1.35;
}

.qr-ops-warning span.qr-ops-warning-detail {
  color: var(--soft-muted);
  font-size: 12px;
}

.qr-ops-warning-critical {
  border-color: #d26b4b;
}

.qr-ops-count {
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.qr-title-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: block;
}

.qr-tagline {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.qr-tagline span {
  display: block;
}

.qr-goodbye {
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(72px, 12vh, 128px) 24px 48px;
  text-align: left;
}

.qr-goodbye-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 42px;
}

.qr-goodbye-brand .qr-title-icon {
  flex: 0 0 42px;
  height: 42px;
  width: 42px;
}

.qr-goodbye-brand span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
}

.qr-goodbye h1 {
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.02;
  margin: 0;
}

.qr-goodbye-lede {
  color: var(--muted);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.35;
  margin: 24px 0 0;
  max-width: 680px;
}

.qr-goodbye-footer {
  margin-top: auto;
}

.qr-goodbye-footer p {
  margin: 0;
}

.qr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 6px;
  padding: 16px 18px 16px 16px;
  position: relative;
  transition: background-color 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, opacity 0.12s ease;
}

.qr-step p {
  margin: 0 0 14px;
  color: var(--muted);
}

.qr-step.is-active {
  border-color: var(--brand-light);
  border-left-color: var(--brand);
  background: #fffdfb;
  box-shadow: 0 1px 2px rgba(28, 43, 51, 0.04);
}

.qr-step.is-complete {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
}

.qr-step.is-locked {
  opacity: 0.58;
}

.qr-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.qr-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-step.is-active .qr-step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.qr-step.is-complete .qr-step-num {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}

.qr-step-head h2 {
  margin: 0;
  font-size: 16px;
  flex-grow: 1;
  line-height: 1.25;
}

.qr-step-state {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--soft-muted);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-step-state.is-good {
  color: var(--accent);
  font-weight: 600;
}

.qr-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-bg);
}

.qr-panel p {
  margin: 0 0 10px;
}

.qr-panel p:first-child {
  color: var(--ink);
}

.qr-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.qr-download-status {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin: 2px 0 -2px;
  padding: 3px 8px;
  width: fit-content;
}

.qr-download-status:empty {
  display: none;
}

.qr-archive-note {
  margin-top: 0;
}

.qr-download-status:not(:empty) + .qr-archive-note {
  margin-top: 12px;
}

.qr-retention-note {
  color: var(--soft-muted);
  font-size: 12px;
  margin-top: 14px;
}

.qr-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.qr-action-link {
  color: var(--accent);
  font-weight: 600;
}

.qr-ready-panel,
.qr-download-panel {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 20px 22px;
}

.qr-ready-panel h2,
.qr-download-panel h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.qr-ready-panel p,
.qr-download-panel p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.qr-preview-shell {
  min-height: 100svh;
}

.qr-preview-frame {
  border: 0;
  display: block;
  height: 100svh;
  min-height: 640px;
  width: 100%;
}

.qr-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 13px;
}

.qr-footer p {
  margin: 0;
}

.qr-site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px clamp(20px, 4vw, 32px);
}

.qr-site-footer p {
  margin: 0;
}

.qr-site-footer nav {
  display: flex;
  gap: 14px;
}

.qr-site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.qr-site-footer a:hover {
  color: var(--ink);
}

.qr-doc {
  margin: 0 auto;
  max-width: 720px;
  padding: 0 28px 56px;
}

.qr-doc p {
  color: var(--muted);
  font-size: 15px;
}

.qr-doc h1 {
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 -28px 22px;
  padding: 24px 28px 20px;
}

.qr-form {
  display: grid;
  gap: 9px;
  margin-top: 0;
  max-width: 520px;
}

.qr-form label {
  color: var(--ink);
  font-weight: 700;
}

.qr-form input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.qr-form .errorlist {
  color: var(--warn);
  list-style: none;
  margin: 0;
  padding: 0;
}

.qr-form-note {
  color: var(--muted);
  margin: 0;
}

.qr-form-note.is-error {
  color: var(--warn);
}

.qr-token-form {
  margin-top: 14px;
  max-width: none;
}

.qr-token-help {
  align-items: center;
  background: #edf6ff;
  border: 1px solid #b9d8fb;
  border-radius: 6px;
  color: var(--accent-dark);
  display: inline-grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  justify-self: start;
  margin: 2px 0 9px;
  min-height: 52px;
  min-width: min(100%, 300px);
  padding: 9px 14px 9px 10px;
  text-decoration: none;
}

.qr-token-help:hover,
.qr-token-help:focus-visible {
  background: #e2f0ff;
  border-color: #87bdf6;
  color: var(--accent-dark);
  outline: 0;
}

.qr-token-help:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.qr-token-help-icon {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.qr-token-help-icon svg {
  display: block;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 18px;
}

.qr-token-help-icon path {
  fill: none;
}

.qr-token-help-copy {
  display: grid;
  gap: 1px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.qr-external-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.qr-archive-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  margin-top: 14px;
}

.qr-progress {
  margin-top: 14px;
}

.qr-progress-bar {
  appearance: none;
  background: var(--line);
  border: 0;
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.qr-progress-bar::-webkit-progress-bar {
  background: var(--line);
}

.qr-progress-bar::-webkit-progress-value {
  background: var(--accent);
  transition: width 0.3s ease;
}

.qr-progress-bar::-moz-progress-bar {
  background: var(--accent);
}

.qr-progress-bar.is-indeterminate {
  animation: qr-indeterminate-progress 1.1s linear infinite;
  background-image: linear-gradient(
    90deg,
    var(--line) 0,
    var(--line) 35%,
    var(--accent) 50%,
    var(--line) 65%,
    var(--line) 100%
  );
  background-size: 180px 100%;
}

.qr-progress-bar.is-indeterminate::-webkit-progress-bar {
  background: transparent;
}

.qr-progress-label {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.qr-progress-note {
  border-radius: 5px;
  font-size: 13px;
  margin: 8px 0 0;
  padding: 8px 10px;
}

.qr-progress-note.is-ok {
  background: #ecfdf3;
  color: #15703f;
}

.qr-progress-note.is-error {
  background: var(--warn-bg);
  color: var(--warn);
}

.qr-progress-note:not(.is-ok):not(.is-error) {
  background: var(--panel-bg);
  color: var(--muted);
}

.qr-progress-note:not(.is-ok):not(.is-error)::before {
  animation: qr-spin 0.9s linear infinite;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  border-top-color: var(--accent);
  content: "";
  display: inline-block;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
  width: 10px;
}

.qr-job-meta {
  color: var(--soft-muted);
  font-size: 13px;
  margin: 18px 0 0;
}

.qr-danger-link {
  background: transparent;
  border: 0;
  color: #8f1d1d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.qr-delete-modal {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: min(520px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.qr-delete-modal::backdrop {
  background: rgb(25 20 16 / 48%);
}

.qr-delete-modal-panel {
  background: white;
  border: 1px solid rgb(37 31 26 / 20%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgb(28 22 18 / 30%), 0 2px 8px rgb(28 22 18 / 12%);
  padding: 24px;
  position: relative;
}

.qr-delete-modal h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 34px 10px 0;
}

.qr-delete-modal p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.qr-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--soft-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
}

.qr-modal-close:hover {
  color: var(--ink);
}

.qr-delete-modal .qr-delete-form {
  margin-top: 22px;
}

.qr-modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.qr-modal-actions .qr-btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.qr-status-list {
  margin: 22px 0 0;
}

.qr-status-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  padding: 14px 0;
}

.qr-status-list dt {
  color: var(--muted);
}

.qr-status-list dd {
  font-weight: 700;
  margin: 0;
}

.qr-status-list-compact {
  font-size: 14px;
}

.qr-doc {
  max-width: 720px;
}

.qr-doc-narrow {
  max-width: 560px;
}

.qr-doc-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.qr-legacy-note {
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 13px;
  margin-top: 28px;
  padding-top: 14px;
}

.qr-delete-form {
  margin-top: 0;
}

.qr-delete-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.qr-delete-form input:not([type="checkbox"]) {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  max-width: 260px;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.qr-delete-checkbox {
  align-items: center;
  color: var(--ink);
  display: inline-flex !important;
  gap: 8px;
  font-weight: 400 !important;
  margin: 0;
}

.qr-delete-checkbox input {
  accent-color: var(--danger);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.qr-ops-table-wrap {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow-x: auto;
}

.qr-ops-table {
  border-collapse: collapse;
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

.qr-ops-col-account {
  width: 24%;
}

.qr-ops-col-action {
  width: 13%;
}

.qr-ops-col-status {
  width: 26%;
}

.qr-ops-col-expiry {
  width: 14%;
}

.qr-ops-col-size {
  width: 7%;
}

.qr-ops-col-actions {
  width: 16%;
}

.qr-ops-table th,
.qr-ops-table td {
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.qr-ops-table th {
  background: #f3f6f9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.qr-ops-table td {
  font-size: 13px;
  line-height: 1.35;
}

.qr-ops-table td strong {
  overflow-wrap: anywhere;
}

.qr-ops-action-label {
  color: var(--ink);
  font-weight: 700;
}

.qr-ops-table tr:last-child td {
  border-bottom: 0;
}

.qr-ops-section-row th {
  background: #f8fafc;
  border-top: 1px solid var(--line-strong);
  border-bottom-color: var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  padding-bottom: 11px;
  padding-top: 14px;
}

.qr-ops-account-row-odd td {
  background: #fff;
}

.qr-ops-account-row-even td {
  background: #fbfcfe;
}

.qr-ops-account-row:hover td {
  background: #f6f9fd;
}

.qr-ops-account-details-row td {
  background: #fff;
  padding-bottom: 12px;
  padding-top: 0;
}

.qr-ops-section-row th span {
  color: var(--soft-muted);
  font-weight: 600;
  margin-left: 8px;
}

.qr-ops-status {
  font-weight: 700;
}

.qr-ops-export {
  display: grid;
  gap: 5px;
}

.qr-ops-status-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qr-ops-progress {
  background: var(--panel-bg);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
}

.qr-ops-archive-summary {
  background: var(--panel-bg);
  border-radius: 999px;
  color: var(--soft-muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
}

.qr-ops-archive-summary-warning {
  background: #fff4ef;
  color: var(--danger);
}

.qr-ops-download-status {
  background: #e8f7ef;
  border-radius: 999px;
  color: #176a3a;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
}

.qr-ops-archive-warning {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.qr-ops-row-details {
  margin: 0;
}

.qr-ops-row-details summary {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.qr-ops-row-details summary::marker {
  color: var(--soft-muted);
  font-size: 11px;
}

.qr-ops-row-details summary::-webkit-details-marker {
  color: var(--soft-muted);
  font-size: 11px;
}

.qr-ops-account-details summary {
  color: var(--ink);
  font-size: 13px;
}

.qr-ops-row-details summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.qr-ops-row-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 7px;
  padding: 0;
  text-align: left;
}

.qr-ops-row-toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.qr-ops-row-toggle-icon {
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--soft-muted);
  border-top: 4px solid transparent;
  flex: 0 0 auto;
  height: 0;
  transition: transform 0.15s ease;
  width: 0;
}

.qr-ops-row-toggle[aria-expanded="true"] .qr-ops-row-toggle-icon {
  transform: rotate(90deg);
}

.qr-ops-detail-group {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}

.qr-ops-detail-grid {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.qr-ops-detail-grid .qr-ops-detail-group {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.qr-ops-detail-group h4 {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 5px;
}

.qr-ops-meta {
  align-items: center;
  color: var(--soft-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 3px 8px;
  line-height: 1.35;
}

.qr-ops-meta span {
  white-space: nowrap;
}

.qr-ops-meta .qr-ops-warning {
  color: var(--danger);
  font-weight: 700;
}

.qr-ops-meta span:not(:last-child)::after {
  color: var(--line-strong);
  content: "·";
  margin-left: 8px;
}

.qr-ops-archives {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 7px 0 0;
  padding: 7px 0 0;
}

.qr-ops-archives li {
  align-items: center;
  color: var(--soft-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 3px 8px;
  line-height: 1.35;
}

.qr-ops-archives li span:not(:last-child)::after {
  color: var(--line-strong);
  content: "·";
  margin-left: 8px;
}

.qr-ops-archive-kind {
  color: var(--ink);
  font-weight: 700;
}

.qr-ops-subtle {
  color: var(--soft-muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.qr-ops-live-note {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.qr-ops-section-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 22px 0 8px;
}

.qr-ops-section-head h2 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.qr-ops-section-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.qr-ops-activity {
  display: grid;
  gap: 3px;
  margin: 0;
}

.qr-ops-activity div {
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.qr-ops-activity dt {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.qr-ops-activity dd {
  margin: 0;
  min-width: 0;
}

.qr-ops-actions {
  align-items: start;
  display: grid;
  gap: 7px;
}

.qr-ops-inline-form {
  margin: 0;
}

.qr-ops-danger-action {
  margin: 0;
}

.qr-ops-danger-action summary {
  color: var(--warn);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.qr-ops-danger-action summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid color-mix(in srgb, var(--warn) 30%, transparent);
  outline-offset: 3px;
}

.qr-ops-confirm {
  align-items: start;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 6px;
  grid-template-columns: 14px minmax(0, 1fr);
  line-height: 1.3;
  margin: 0 0 7px;
}

.qr-ops-confirm input {
  margin: 1px 0 0;
}

.qr-localtime-compact {
  white-space: nowrap;
}

@keyframes qr-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes qr-indeterminate-progress {
  from {
    background-position: -180px 0;
  }

  to {
    background-position: 180px 0;
  }
}

@keyframes qr-archive-progress-sweep {
  0% {
    opacity: 0.45;
    transform: translateX(0);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0.45;
    transform: translateX(190%);
  }
}

@media (max-width: 820px) {
  .qr-topbar {
    padding: 0 20px;
  }

  .qr-ops-infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-status-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .qr-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .qr-nav {
    justify-content: flex-start;
  }

  .qr-account-popover {
    left: 0;
    right: auto;
  }

  .qr-step-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .qr-step-state {
    margin-left: 34px;
    max-width: 100%;
    width: calc(100% - 34px);
  }

  .qr-step-account-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .qr-ops-infra-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-ops-infra-grid,
  .qr-ops-detail-grid,
  .qr-ops-kpis,
  .qr-ops-warnings {
    grid-template-columns: 1fr;
  }

  .qr-ops-table {
    min-width: 720px;
  }
}
