/* Studio v2 (plan F6): the rules of WP-E, the report page and the listing. Shared tokens stay in studio.css. */

/* ---------- the report page: one status line, one primary, the report itself first ---------- */
#rp > div:not(:empty) { margin-top: 16px; }
#rp > #rp-standing-box { margin-top: 8px; }
#rp .rp-standing { grid-template-columns: minmax(0, 1fr); }
#rp-grade .tipped { white-space: normal; flex-wrap: nowrap; min-width: 0; max-width: 100%; }
#rp-grade .g-lead-wrap { flex: 0 1 auto; min-width: 0; }
#rp-grade .g-lead-wrap, .lst-grade .g-lead-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rp-block { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rp-why { margin: 0; flex: 1 1 260px; min-width: 0; color: var(--ink); }
.rp-why:empty { display: none; }
#rp .rp-primary { padding: 10px 20px; font-size: 15.5px; font-weight: 500; border-radius: 10px; }
#rp a.button.rp-primary { padding: 10px 20px; }
#rp a.button.rp-ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--rule); padding: 7px 14px; }
#rp a.button.rp-ghost:hover { background: var(--soft); }
.rp-wait-words { font-size: 14px; }
#rp-top-msg:empty, #rp-share:empty { display: none; }
.rp-share-out { margin: 0; overflow-wrap: anywhere; }
.rp-shares { margin: 0; padding-left: 18px; }
#rp-top-msg { margin: 0; }

.rp-preview { display: grid; gap: 10px; min-width: 0; }
.rp-band { margin: 0; padding: 8px 12px; border-left: 3px solid var(--warn); border-radius: 6px; font-weight: 500;
           color: var(--ink); background: color-mix(in srgb, var(--warn) 14%, var(--panel)); }
.rp-band strong { letter-spacing: .04em; }
.rp-band-why { display: block; font-weight: 400; font-size: .9em; overflow-wrap: anywhere; }
/* the sheet: the template's own screen grey around Letter pages; the frame scales to the column on a phone */
.rp-sheet { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius);
            background: #E8E6E0; }
.rp-sheet .rp-frame { display: block; border: 0; transform-origin: 0 0; background: #E8E6E0; }
.rp-sheet-wait { margin: 0; padding: 16px; color: #4a515c; }
.rp-sheet-off { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 22px 18px; background: var(--panel); }
.rp-sheet-off p { margin: 0; }
.rp-sheet-off p + p { margin-top: 6px; }
.rp-preview .rp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.rp-dealer { color: var(--ink2); }

#rp-steps-box .rp-path { border-top: 0; padding-top: 0; }
details.rp-details { margin-top: 0; }
details.rp-details .disclose-body { display: grid; gap: 8px; }

@media (max-width: 640px) {
  .rp-block { align-items: stretch; }
  #rp .rp-primary { flex: 1 1 100%; text-align: center; }
  .rp-sheet-off { padding: 16px 14px; }
}

/* ---------- the listing: its card on the coin page and the draft page ---------- */
.listing-card .lst-grade { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.lst-estimate .lst-grade { margin: 4px 0 0 24px; }
.listing-card.lst-off .card-head p { margin: 0; }
