.rp-page {
  width: var(--page-width);
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0 48px;
  color: var(--ink);
}

.rp-page h1, .rp-page h2, .rp-page p { margin: 0; }
.rp-page h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.rp-page h2 { font-size: 1.1875rem; line-height: 1.4; text-wrap: balance; }
.rp-page p { line-height: 1.75; text-wrap: pretty; }
.rp-page :is(button, a, summary, textarea):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.rp-intro { display: grid; gap: 8px; max-width: 40rem; margin-bottom: 20px; }
.rp-intro .section-marker { color: var(--muted); font-size: .875rem; font-weight: 700; }

.rp-list { display: grid; gap: 16px; align-items: start; }

.rp-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.rp-card-head { display: flex; align-items: flex-start; gap: 12px; }
.rp-card-head > div { min-width: 0; display: grid; gap: 4px; }
.rp-card-head .platform-logo { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.rp-card-head p { color: var(--muted); font-size: .9375rem; }
.rp-platform { color: var(--muted); font-size: .875rem; font-weight: 650; }

.rp-claim {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}

.rp-copy-row { display: grid; gap: 8px; }
.rp-copy { width: 100%; min-height: 48px; }
.rp-copy-status { min-height: 1.5em; color: var(--success); font-size: .875rem; font-weight: 650; }
.rp-copy-status[data-state="error"] { color: var(--danger); }
.rp-manual {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-muted);
  font: inherit;
  font-size: .9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  resize: vertical;
}


.rp-qr-desktop { margin: 0; }
.rp-qr-desktop figcaption { color: var(--muted); font-size: .875rem; }
.rp-qr-box { width: min(100%, 220px); margin: 4px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.rp-qr { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }

.rp-empty { display: grid; gap: 10px; padding: 8px 0 4px; }
.rp-empty p { color: var(--muted); }
.rp-empty .secondary-button { width: fit-content; }

.rp-feedback { margin-top: 18px; }
.rp-feedback a { color: var(--accent); font-weight: 700; text-decoration: underline; }

.rp-guide[open] {
  display: grid;
  gap: 12px;
  width: min(92vw, 360px);
  border: 0;
  border-radius: 16px;
  padding: 18px 16px;
  color: var(--ink);
  background: #fff;
}
.rp-guide[open] h2 { margin: 0; font-size: 1.25rem; }
.rp-guide[open] p { margin: 0; }
.rp-guide[open] button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #9f1d1d;
  font-weight: 750;
}
.rp-guide::backdrop { background: rgba(16, 12, 12, .56); }

@media (max-width: 767px) {
  .rp-qr-desktop { display: none; }
}

@media (min-width: 900px) {
  .rp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
