/* The /preview page: a label strip, the real resident page, and a claim card. */
.pv-label { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.pv-label p { margin: 0; padding: 10px 0; font-size: 0.98rem; line-height: 1.4; }
.pv-label strong { color: var(--gold); }

.pv-layout { display: block; }
.pv-main { min-width: 0; padding-bottom: 150px; }
.pv-top { padding-top: 16px; }
.pv-status { margin: 0 0 14px; padding: 16px 18px; font-size: 1.2rem; font-weight: 700; color: var(--navy); background: var(--info-bg); border-radius: var(--radius); }
.pv-status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 3px solid var(--navy); border-right-color: transparent; border-radius: 50%; animation: pv-spin 0.9s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pv-status.is-busy::before { animation: none; border-right-color: var(--navy); } }
.pv-notes .banner { margin-bottom: 10px; }
.pv-problem, .pv-choose { padding: 20px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pv-problem h1, .pv-choose h1 { font-size: 1.6rem; margin-top: 0; }
.pv-chooser { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv-chooser-btn { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 1.1rem; font-weight: 700; text-align: left; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); cursor: pointer; }
.pv-chooser-btn:hover { background: var(--info-bg); }
.pv-change { margin: 0 0 14px; }
.pv-change summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.pv-form { max-width: 520px; padding: 8px 0 4px; }
.pv-more { padding-top: 6px; padding-bottom: 20px; }

/* Phones: the claim buttons ride along the bottom of the screen. */
.pv-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.pv-cta[hidden] { display: none; }
.pv-cta-inner { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 760px; margin: 0 auto; }
.pv-cta-h, .pv-cta-text, .pv-cta-demo { display: none; }
.pv-cta .btn { min-height: 48px; padding: 8px 14px; font-size: 1.05rem; width: 100%; }
@media (min-width: 360px) { .pv-cta-inner { grid-template-columns: 1.4fr 1fr; } }

/* Wide screens: a card beside the page. */
@media (min-width: 1000px) {
  .pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-right: 24px; }
  .pv-main { padding-bottom: 24px; }
  .pv-cta { position: sticky; top: 90px; left: auto; right: auto; bottom: auto; margin-top: 20px; border: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(15, 27, 45, 0.15); padding: 20px; }
  .pv-cta-inner { grid-template-columns: 1fr; gap: 12px; }
  .pv-cta-h, .pv-cta-text, .pv-cta-demo { display: block; margin: 0; }
  .pv-cta-h { font-size: 1.5rem; }
  .pv-cta-text { color: var(--muted); }
  .pv-cta .btn { min-height: 54px; padding: 12px 18px; }
  .pv-more { display: none; }
}

/* "Print a one-pager for your chief" (round 46): a quiet link under the claim and share buttons. */
.pv-onepager { grid-column: 1 / -1; justify-self: center; font-size: 0.95rem; padding: 6px 4px; min-height: 32px; display: inline-flex; align-items: center; }
