/* ReSiRai - AI card extraction & radiology analysis dialogs
   Palette aligned with the main Design D shell (blue) instead of the
   previous purple/violet accents, so AI features read as part of the app. */

.card-extraction-button{width:calc(100% - 1rem);margin:.35rem .5rem .55rem;background:linear-gradient(135deg,#1685ff,#1769e8);color:#fff;border-color:#1265d0}
.card-extraction-button:hover{background:linear-gradient(135deg,#1478e8,#145dcf)}
.card-extraction-overlay{position:fixed;inset:0;z-index:10050;background:rgba(3,15,29,.72);display:grid;place-items:center;padding:1rem;direction:rtl}
.card-extraction-dialog{width:min(920px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(8,39,68,.32);color:#16345c}
.card-extraction-dialog>header,.card-extraction-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:#eef7ff}
.card-extraction-dialog>header{position:sticky;top:0;z-index:1;border-bottom:1px solid #d5e7f7}.card-extraction-dialog>header h3{margin:0;color:#123f78}.card-extraction-dialog>header span{font-size:.82rem;color:#6b7280}
.card-extraction-close{font-size:1.6rem;line-height:1;background:transparent;color:#1265bc}.card-extraction-body{padding:1.1rem}.card-extraction-body section{margin-top:1rem;padding:1rem;border:1px solid #d8e8f6;border-radius:14px;background:#fbfdff}.card-extraction-body h4{margin:0 0 .8rem;color:#174b80}
.card-extraction-warning,.card-extraction-uncertain{padding:.8rem 1rem;border-radius:10px;background:#fff7ed;color:#9a3412}.card-extraction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.card-extraction-field{display:flex;justify-content:space-between;gap:1rem;padding:.65rem .8rem;background:#fff;border-radius:9px}.card-extraction-field span{color:#64748b}.card-extraction-field strong{color:#16345c;text-align:left}.card-extraction-body pre{white-space:pre-wrap;font-family:inherit;line-height:1.9;margin:0;color:#27364d}.card-extraction-dialog>footer{position:sticky;bottom:0;border-top:1px solid #d5e7f7;justify-content:flex-start}
.radiology-finding{margin:.65rem 0;padding:.8rem;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.radiology-finding>strong{color:#1265bc}.radiology-finding p{margin:.45rem 0;line-height:1.7}.radiology-finding small{color:#64748b}
@media(max-width:700px){.card-extraction-grid{grid-template-columns:1fr}.card-extraction-dialog{max-height:96vh}.card-extraction-field{flex-direction:column;gap:.25rem}}
