/* ============================================================================
   jp-scribe-embed.css — M4/M5 role presentation
   Clinician role = the full workbench (unchanged). Patient role = their visit,
   in their language: clinician-only surfaces (coding · billing · revenue ·
   co-pilot · sign/push) are removed and the plain-language after-visit summary
   is foregrounded. Branded, polished, no overlaps.
   ============================================================================ */

/* ── PATIENT role: strip clinician-only surfaces ─────────────────────────── */
body.jps-role-patient .jps-value,
body.jps-role-patient .jps-copilot,
body.jps-role-patient #actionBtns,
body.jps-role-patient .jps-trustbar .jps-tb-btn,
body.jps-role-patient .soap-codechip,
body.jps-role-patient #soapWrap .soap-section .soap-label .soap-amended,
body.jps-role-patient .jps-cop-by { display: none !important; }

/* the billing-code / red-flag chip strip the tail appends (clinician-only) */
body.jps-role-patient #soapWrap > div[style*="flex-wrap:wrap"] { display: none !important; }

/* trust bar reads as reassurance, not a worklist, for the patient */
body.jps-role-patient .jps-trustbar { background: linear-gradient(135deg, rgba(0,201,192,.10), rgba(10,45,110,.10)); }

/* foreground the after-visit summary — this is the patient's takeaway */
body.jps-role-patient .avs-block {
  order: -1;
  background: linear-gradient(135deg, rgba(0,201,192,.12), rgba(10,45,110,.16));
  border: 1px solid rgba(0,201,192,.34);
  box-shadow: 0 10px 30px rgba(0,201,192,.12);
  padding: 18px 18px 16px;
}
body.jps-role-patient .avs-block .avs-h { font-size: 12px; }
body.jps-role-patient .avs-body { font-size: 13px; color: rgba(255,255,255,.9); }
body.jps-role-patient .jps-handoff-btn { width: 100%; justify-content: center; }

/* a calm patient framing on the honesty banner (no "review before signing") */
body.jps-role-patient .jpc-honesty { display: none !important; }

/* the patient panel header reads "Your visit", not "AI Clinical Scribe" */
body.jps-role-patient .rp-header .rp-header-title { font-size: 0; }
body.jps-role-patient .rp-header .rp-header-title::after { content: "Your visit summary"; font-size: 13px; font-weight: 800; }
body.jps-role-patient .rp-header .rp-header-badge { display: none !important; }

/* embed framing: the host card provides the chrome — keep the frame flush */
body.jp-embed.jps-role-patient #jps-frame { border: none; box-shadow: none; }

/* light theme parity for the patient takeaway */
html[data-theme="light"] body.jps-role-patient .avs-block,
body.jps-role-patient html[data-theme="light"] .avs-block { background: linear-gradient(135deg, rgba(0,201,192,.10), rgba(10,45,110,.06)); }
