/* NUVORA · Patient summary / continuity of care */
.patient-summary-shell{display:grid;gap:14px;margin-top:15px;animation:patientSummaryIn .48s cubic-bezier(.2,.8,.2,1)}
@keyframes patientSummaryIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.patient-summary-shell svg,.encounter-continuity svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.patient-summary-selector{margin-bottom:11px}.patient-summary-selector label{width:100%}
.patient-summary-hero{position:relative;display:grid;grid-template-columns:86px minmax(0,1fr) 250px;gap:20px;align-items:center;min-height:170px;padding:20px 23px;overflow:hidden;border:1px solid rgba(28,67,55,.09);border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fffefa 66%,#f1f3e9 100%);box-shadow:0 12px 32px rgba(28,67,55,.045)}
.patient-summary-hero:after{content:"";position:absolute;width:180px;height:180px;right:-72px;bottom:-108px;border:1px solid rgba(192,151,72,.23);border-radius:50%;box-shadow:0 0 0 22px rgba(192,151,72,.035),0 0 0 23px rgba(192,151,72,.11)}
.patient-summary-avatar{position:relative;display:grid;place-items:center;width:82px;height:82px;border:1px solid rgba(28,67,55,.08);border-radius:50%;background:linear-gradient(145deg,#e9eee6,#f8f2e4);color:#315a48;font:500 24px Georgia,serif;box-shadow:0 8px 22px rgba(28,67,55,.08)}
.patient-summary-avatar i{position:absolute;right:0;top:3px;display:grid;place-items:center;width:21px;height:21px;border:3px solid #fff;border-radius:50%;background:#234f3e;color:#e3c47b;font:400 9px Georgia,serif}
.patient-summary-identity{min-width:0;position:relative;z-index:2}.patient-summary-identity>.eyebrow{margin:0 0 6px;color:#98a29b;font-size:6px;letter-spacing:1.2px}.patient-summary-identity h2{margin:0;color:#173f35;font:600 clamp(18px,2vw,25px)/1.1 Manrope,sans-serif;letter-spacing:-.6px;text-transform:uppercase}
.patient-summary-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.patient-badge{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:0 9px;border-radius:999px;font-size:6.5px;font-weight:800}.patient-badge svg{width:12px;height:12px}.patient-badge.active{background:#eaf5e9;color:#477951}.patient-badge.active i{width:6px;height:6px;border-radius:50%;background:#3f8a53}.patient-badge.coverage{background:#fbf1da;color:#8e6c2f}.patient-badge.insurer{border:1px solid rgba(151,119,58,.13);background:#fffdf7;color:#756342}
.patient-summary-details{display:grid;grid-template-columns:repeat(5,minmax(115px,1fr));gap:8px;margin-top:13px}.patient-summary-detail{display:flex;align-items:center;gap:8px;min-width:0;padding-right:8px;border-right:1px solid rgba(28,67,55,.07)}.patient-summary-detail:last-child{border-right:0}.patient-summary-detail>span{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:10px;background:#f3f5ef;color:#416c58}.patient-summary-detail>span svg{width:14px;height:14px}.patient-summary-detail div{min-width:0}.patient-summary-detail small{display:block;color:#99a19c;font-size:5.8px}.patient-summary-detail strong{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#405b50;font-size:7px;font-weight:700}
.patient-summary-hero aside{position:relative;z-index:2;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:26px;border-left:1px solid rgba(28,67,55,.08)}.patient-summary-hero aside span{color:#a18249;font-size:5.4px;font-weight:850;letter-spacing:1.1px}.patient-summary-hero blockquote{max-width:190px;margin:12px 0 0;color:#315248;font:italic 16px/1.45 Georgia,serif}.patient-summary-hero aside>i{width:27px;margin-top:12px;border-top:1px solid #c79f52}
.patient-summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.patient-summary-metric{display:flex;align-items:center;gap:12px;min-height:84px;padding:13px 15px;border:1px solid rgba(28,67,55,.075);border-radius:15px;background:#fff;box-shadow:0 8px 20px rgba(28,67,55,.025);transition:transform .2s ease,box-shadow .2s ease}.patient-summary-metric:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(28,67,55,.055)}.patient-summary-metric>span{display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:12px;background:#eef4eb;color:#2d624b}.patient-summary-metric.gold>span{background:#fbf1dd;color:#a27b35}.patient-summary-metric small{display:block;color:#6d7e75;font-size:6.8px}.patient-summary-metric strong{display:block;margin:2px 0;color:#173f35;font:500 20px/1.1 Georgia,serif}.patient-summary-metric.date strong{font:700 12px Manrope,sans-serif}.patient-summary-metric p{margin:0;color:#99a19c;font-size:6px;line-height:1.35}
.patient-summary-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.92fr) 250px;gap:10px;align-items:start}.patient-summary-middle,.patient-summary-right{display:grid;gap:10px}.patient-summary-card,.patient-summary-side{overflow:hidden;border:1px solid rgba(28,67,55,.075);border-radius:17px;background:#fff;box-shadow:0 9px 26px rgba(28,67,55,.028)}.patient-summary-card>header,.patient-summary-side>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-bottom:1px solid rgba(28,67,55,.055)}.patient-summary-card>header>div{display:flex;align-items:center;gap:9px;min-width:0}.patient-summary-card h3,.patient-summary-side h3{margin:0;color:#203f35;font-size:10px}.patient-summary-card header p{margin:2px 0 0;color:#98a19c;font-size:6.3px}.patient-summary-card header button{display:flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid rgba(28,67,55,.08);border-radius:8px;background:#fbfcf9;color:#577065;font-size:6px;font-weight:800}.patient-summary-card header button svg{width:10px;height:10px}.patient-card-icon,.patient-summary-side>header>span{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:10px;background:#eef4ec;color:#37654f}.patient-card-icon.warm{background:#fbf4e7;color:#97713a}.patient-card-icon.gold{background:#fbf0d9;color:#9b7331}.patient-card-icon svg,.patient-summary-side>header>span svg{width:14px;height:14px}
.patient-history-head,.patient-history-row{display:grid;grid-template-columns:88px 145px minmax(160px,1fr) 72px 82px;gap:8px;align-items:center}.patient-history-head{padding:8px 14px;background:#fafbf8;color:#849089;font-size:5.7px;font-weight:850;text-transform:uppercase;letter-spacing:.4px}.patient-history-row{width:100%;min-height:58px;padding:8px 14px;border:0;border-top:1px solid rgba(28,67,55,.05);background:#fff;text-align:left;color:#3b574d;transition:background .18s ease}.patient-history-row:hover{background:#fbfcf8}.patient-history-row time{font-size:6.8px}.patient-professional-inline{display:flex;align-items:center;gap:7px;min-width:0}.patient-professional-inline>span{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:linear-gradient(145deg,#e9eee6,#f7f0df);color:#3c6251;font:600 7px Georgia,serif}.patient-professional-inline strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.patient-history-care{min-width:0}.patient-history-care strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}.patient-history-care small{display:block;margin-top:2px;color:#9ca49f;font-size:5.6px}.patient-type,.patient-state{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:23px;padding:0 7px;border-radius:999px;font-size:5.7px;font-weight:800}.patient-type.insurance{background:#eaf3fb;color:#50769a}.patient-type.private{background:#faf0da;color:#926f31}.patient-state{background:#eaf5eb;color:#4a7b55}.patient-state svg{width:10px;height:10px}
.patient-evolution-list{padding:3px 14px 11px}.patient-evolution-list article{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:4px 10px;padding:11px 0 11px 17px;border-bottom:1px solid rgba(28,67,55,.05)}.patient-evolution-list article:last-child{border-bottom:0}.patient-evolution-line{position:absolute;left:3px;top:0;bottom:0;border-left:1px dashed #cfd9d1}.patient-evolution-line i{position:absolute;left:-3px;top:15px;width:6px;height:6px;border:2px solid #fff;border-radius:50%;background:#315f4d;box-shadow:0 0 0 1px #cfdbd2}.patient-evolution-list time{color:#8b9690;font-size:5.7px}.patient-evolution-author{display:flex;align-items:center;gap:6px}.patient-evolution-author>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf2ea;color:#426552;font:600 7px Georgia,serif}.patient-evolution-author strong{display:block;color:#294b3f;font-size:7px}.patient-evolution-author small{display:block;color:#98a19c;font-size:5.5px}.patient-evolution-list article>p{grid-column:2;margin:1px 0 0;color:#687970;font-size:6.4px;line-height:1.55}
.patient-next-note{margin:10px 12px 3px;padding:11px 12px;border:1px solid rgba(194,151,70,.18);border-radius:12px;background:linear-gradient(135deg,#fff9eb,#fffdf7)}.patient-next-note>span{color:#a17d3b;font-size:5.4px;font-weight:850;letter-spacing:.7px}.patient-next-note p{margin:5px 0;color:#56695f;font-size:7px;line-height:1.55}.patient-next-note small{color:#9a9485;font-size:5.6px}.patient-pending-list{padding:4px 12px 10px}.patient-pending-list article{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 1px;border-bottom:1px solid rgba(28,67,55,.05)}.patient-pending-list article:last-child{border-bottom:0}.patient-pending-list article>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#f3f6ef;color:#4f715f}.patient-pending-list article>span svg{width:12px;height:12px}.patient-pending-list strong{display:block;color:#365247;font-size:6.8px}.patient-pending-list small{display:block;margin-top:2px;color:#9aa29d;font-size:5.5px}.patient-pending-list b{padding:5px 7px;border-radius:999px;background:#e9f2fb;color:#55799c;font-size:5.4px}.patient-pending-list b.approved{background:#eef4ea;color:#5d7c5c}
.patient-summary-side>header{justify-content:flex-start}.patient-dentist-profile{display:flex;align-items:center;gap:10px;padding:14px}.patient-dentist-avatar{display:grid;place-items:center;flex:0 0 51px;height:51px;border-radius:50%;background:linear-gradient(145deg,#e5ece4,#f8efdb);color:#355e4c;font:500 13px Georgia,serif}.patient-dentist-profile strong{display:block;color:#23463a;font-size:8px}.patient-dentist-profile small{display:block;margin-top:3px;color:#7d8c84;font-size:6.2px}.patient-dentist-profile p{margin:4px 0 0;color:#a0a8a3;font-size:5.5px}.patient-last-care{margin:0 12px 12px;padding:10px;border-top:1px solid rgba(28,67,55,.06);background:#fbfcf8;border-radius:9px}.patient-last-care span{color:#9b7b40;font-size:5px;font-weight:850;letter-spacing:.7px}.patient-last-care p{margin:4px 0 0;color:#64766d;font-size:6.2px;line-height:1.5}
.patient-return-status{margin:12px;padding:11px;border:1px solid rgba(28,67,55,.08);border-radius:11px;background:#f7f9f5}.patient-return-status.scheduled{border-color:rgba(83,132,92,.18);background:#eef6ed}.patient-return-status strong{display:block;color:#355646;font-size:7px}.patient-return-status p{margin:4px 0 0;color:#7e8d85;font-size:6px;line-height:1.5}.patient-self-return{display:flex;align-items:center;justify-content:center;gap:6px;width:calc(100% - 24px);min-height:35px;margin:0 12px 12px;border:1px solid #315b49;border-radius:9px;background:#fff;color:#315b49;font-size:6.4px;font-weight:850;transition:all .2s ease}.patient-self-return:hover{background:#315b49;color:#fff;transform:translateY(-1px)}.patient-self-return svg{width:13px;height:13px}.patient-return-hint{margin:0 13px 13px;color:#9aa29d;font-size:5.7px;line-height:1.45}.patient-summary-empty{padding:28px 16px;text-align:center;color:#8b9891}.patient-summary-empty.compact{padding:18px 12px}.patient-summary-empty strong{display:block;color:#567064;font-size:7px}.patient-summary-empty p{margin:4px auto 0;max-width:340px;font-size:6px;line-height:1.5}
.encounter-continuity{display:grid;gap:12px;margin:18px 0;padding:17px;border:1px solid rgba(192,151,72,.2);border-radius:15px;background:linear-gradient(135deg,#fffaf0,#f8faf5)}.encounter-continuity>div h3{margin:5px 0;color:#294d3e;font:400 19px Georgia,serif}.encounter-continuity>div>p:last-child{margin:0;color:#7e8c84;font-size:10px;line-height:1.55}.encounter-continuity label{display:grid;gap:6px;color:#52675c;font-size:11px}.encounter-continuity textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #d9e1d4;border-radius:10px;background:#fff;color:#263b2e;resize:vertical;font:inherit}.encounter-completed-continuity{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.encounter-completed-continuity article{padding:12px;border:1px solid rgba(28,67,55,.08);border-radius:11px;background:#f8faf6}.encounter-completed-continuity article span{color:#9a7b42;font-size:7px;font-weight:850;letter-spacing:.7px}.encounter-completed-continuity article p{margin:5px 0 0;color:#566b60;font-size:10px;line-height:1.55}
@media(max-width:1280px){.patient-summary-hero{grid-template-columns:76px minmax(0,1fr)}.patient-summary-hero aside{display:none}.patient-summary-main{grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr)}.patient-summary-right{grid-column:1/-1;grid-template-columns:1fr 1fr}.patient-summary-details{grid-template-columns:repeat(3,minmax(115px,1fr))}.patient-summary-detail:nth-child(3){border-right:0}}
@media(max-width:900px){.patient-summary-metrics{grid-template-columns:1fr 1fr}.patient-summary-main{grid-template-columns:1fr}.patient-summary-right{grid-template-columns:1fr 1fr}.patient-history-head{display:none}.patient-history-row{grid-template-columns:80px minmax(120px,.8fr) minmax(150px,1fr);gap:7px}.patient-history-row .patient-type,.patient-history-row .patient-state{justify-self:start}.patient-summary-details{grid-template-columns:1fr 1fr}.patient-summary-detail{border-right:0}.patient-summary-hero{grid-template-columns:64px minmax(0,1fr);padding:17px}.patient-summary-avatar{width:62px;height:62px;font-size:18px}}
@media(max-width:620px){.patient-summary-hero{grid-template-columns:1fr}.patient-summary-avatar{width:58px;height:58px}.patient-summary-identity h2{font-size:19px}.patient-summary-details{grid-template-columns:1fr}.patient-summary-detail{padding:5px 0}.patient-summary-metrics{grid-template-columns:1fr}.patient-summary-main{gap:8px}.patient-summary-right{grid-template-columns:1fr}.patient-history-row{grid-template-columns:72px 1fr;align-items:start}.patient-history-care,.patient-history-row .patient-type,.patient-history-row .patient-state{grid-column:2}.patient-evolution-list article{grid-template-columns:1fr;padding-left:17px}.patient-evolution-list article time,.patient-evolution-list article>p{grid-column:1}.encounter-completed-continuity{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.patient-summary-shell{animation:none}.patient-summary-metric,.patient-self-return{transition:none}}


/* Typography normalization — comfortable desktop reading size */
.patient-summary-identity>.eyebrow{font-size:9px}
.patient-summary-identity h2{font-size:clamp(24px,2vw,31px);line-height:1.12}
.patient-badge{min-height:29px;padding:0 11px;font-size:10px}
.patient-summary-detail small{font-size:9px}
.patient-summary-detail strong{margin-top:3px;font-size:11.5px}
.patient-summary-hero aside span{font-size:8px}
.patient-summary-hero blockquote{font-size:18px}
.patient-summary-metric small{font-size:10px}
.patient-summary-metric strong{font-size:26px}
.patient-summary-metric.date strong{font-size:15px}
.patient-summary-metric p{font-size:9px;line-height:1.45}
.patient-summary-card h3,.patient-summary-side h3{font-size:14px}
.patient-summary-card header p{font-size:9.5px;line-height:1.4}
.patient-summary-card header button{padding:8px 10px;font-size:9.5px}
.patient-history-head{font-size:8.5px}
.patient-history-row{min-height:68px}
.patient-history-row time{font-size:10.5px}
.patient-professional-inline strong{font-size:10.5px}
.patient-history-care strong{font-size:11px}
.patient-history-care small{font-size:9px}
.patient-type,.patient-state{min-height:27px;padding:0 9px;font-size:9px}
.patient-evolution-list time{font-size:9px}
.patient-evolution-author strong{font-size:10.5px}
.patient-evolution-author small{font-size:8.8px}
.patient-evolution-list article>p{font-size:10.5px;line-height:1.58}
.patient-next-note>span{font-size:8.5px}
.patient-next-note p{font-size:10.5px}
.patient-next-note small{font-size:8.8px}
.patient-pending-list strong{font-size:10.5px}
.patient-pending-list small{font-size:8.8px}
.patient-pending-list b{font-size:8.8px}
.patient-dentist-profile strong{font-size:11px}
.patient-dentist-profile small{font-size:9.5px}
.patient-dentist-profile p{font-size:8.8px}
.patient-last-care span{font-size:8px}
.patient-last-care p{font-size:10px}
.patient-return-status strong{font-size:10.5px}
.patient-return-status p{font-size:9.5px}
.patient-self-return{min-height:40px;font-size:10px}
.patient-return-hint{font-size:9px}
.patient-summary-empty strong{font-size:10.5px}
.patient-summary-empty p{font-size:9.5px}
.encounter-completed-continuity article span{font-size:9px}
.encounter-completed-continuity article p{font-size:11px}
@media(max-width:620px){
  .patient-summary-identity h2{font-size:22px}
  .patient-summary-detail strong{font-size:11px}
  .patient-summary-card h3,.patient-summary-side h3{font-size:13px}
  .patient-summary-metric strong{font-size:23px}
}


/* Patient profile editor */
.patient-summary-title-row{display:flex;align-items:center;gap:12px;min-width:0}
.patient-summary-title-row h2{min-width:0}
.patient-edit-trigger{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid rgba(29,67,55,.13);border-radius:10px;background:rgba(255,255,255,.86);color:#315b49;font-size:10px;font-weight:800;box-shadow:0 5px 14px rgba(28,67,55,.035);transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}
.patient-edit-trigger svg{width:14px;height:14px}
.patient-edit-trigger:hover{transform:translateY(-1px);border-color:rgba(183,143,66,.28);background:#fffdf7;box-shadow:0 8px 18px rgba(28,67,55,.07)}
.patient-edit-backdrop{z-index:195;background:rgba(14,39,31,.46);backdrop-filter:blur(9px)}
.patient-edit-modal{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 34px);overflow:auto;border:1px solid rgba(28,67,55,.09);border-radius:24px;background:#fffdf9;box-shadow:0 34px 90px rgba(15,45,36,.25)}
.patient-edit-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 25px 18px;border-bottom:1px solid rgba(28,67,55,.065);background:linear-gradient(135deg,#f2f5ef,#fffaf0)}
.patient-edit-modal>header .eyebrow{margin:0 0 6px;color:#a17d3d;font-size:8px;letter-spacing:1.25px}
.patient-edit-modal>header h2{margin:0;color:#173f35;font:400 27px/1.1 Georgia,serif}
.patient-edit-modal>header p:not(.eyebrow){margin:6px 0 0;color:#78877f;font-size:10.5px;line-height:1.5}
.patient-edit-modal .modal-close{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border:1px solid rgba(28,67,55,.09);border-radius:11px;background:#fff;color:#6f7e76;font-size:20px}
.patient-edit-person{display:flex;align-items:center;gap:11px;margin:18px 24px 0;padding:12px 14px;border:1px solid rgba(28,67,55,.07);border-radius:14px;background:#f8faf6}
.patient-edit-person>span{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#e6ede5,#f7eed9);color:#315b49;font:500 12px Georgia,serif}
.patient-edit-person strong{display:block;color:#284a3d;font-size:11.5px}
.patient-edit-person small{display:block;margin-top:3px;color:#8d9992;font-size:9px}
#patient-edit-form{padding:19px 24px 23px}
.patient-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.patient-edit-grid label{display:grid;gap:6px;color:#5f7067;font-size:10px;font-weight:750}
.patient-edit-grid input,.patient-edit-grid select{width:100%;height:43px;box-sizing:border-box;padding:0 12px;border:1px solid #d9e1d8;border-radius:10px;background:#fff;color:#233d33;font:500 11px/1.2 Manrope,sans-serif;outline:0;transition:border-color .18s ease,box-shadow .18s ease}
.patient-edit-grid input:focus,.patient-edit-grid select:focus{border-color:#9aae9f;box-shadow:0 0 0 3px rgba(49,91,73,.055)}
.patient-edit-wide{grid-column:1/-1}
.patient-edit-insurance{display:grid;gap:13px;margin-top:15px;padding:15px;border:1px solid rgba(192,151,72,.19);border-radius:14px;background:linear-gradient(135deg,#fffaf0,#fbfcf7)}
.patient-edit-insurance>div:first-child>span{display:block;color:#9a793e;font-size:7px;font-weight:850;letter-spacing:.9px}
.patient-edit-insurance>div:first-child>strong{display:block;margin-top:3px;color:#315245;font-size:12px}
.patient-edit-insurance>div:first-child>p{margin:4px 0 0;color:#8d948e;font-size:9px;line-height:1.5}
.patient-edit-error{min-height:18px;margin:10px 0 0;color:#a55247;font-size:10px}
#patient-edit-form>footer{display:flex;justify-content:flex-end;gap:9px;margin-top:11px;padding-top:15px;border-top:1px solid rgba(28,67,55,.06)}
#patient-edit-form>footer button{min-height:41px;padding:0 15px;border-radius:10px;font-size:10px;font-weight:800}
#patient-edit-form>footer .primary{display:inline-flex;align-items:center;gap:7px}
#patient-edit-form>footer .primary svg{width:13px;height:13px}
@media(max-width:780px){
  .patient-summary-title-row{align-items:flex-start;flex-direction:column;gap:9px}
  .patient-edit-trigger{min-height:32px}
  .patient-edit-modal{width:calc(100vw - 18px);max-height:calc(100vh - 18px);border-radius:19px}
  .patient-edit-modal>header{padding:19px 17px 15px}
  .patient-edit-person{margin:14px 16px 0}
  #patient-edit-form{padding:16px}
}
@media(max-width:560px){
  .patient-edit-grid{grid-template-columns:1fr}
  .patient-edit-wide{grid-column:auto}
  .patient-edit-modal>header h2{font-size:24px}
  #patient-edit-form>footer{flex-direction:column-reverse}
  #patient-edit-form>footer button{width:100%}
}
@media(prefers-reduced-motion:reduce){.patient-edit-trigger{transition:none}}


/* Reception · protected records flow */
.reception-records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(28,67,55,.08)}
.reception-summary-only-tabs{margin:0;flex:0 0 auto}
.reception-summary-only-tabs button[disabled]{opacity:1;cursor:default}
.reception-protected-records{display:grid;gap:12px}
.reception-protected-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #dce7d9;border-radius:13px;background:linear-gradient(135deg,#f4f8f1,#fffdf9)}
.reception-protected-note>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:#e6f1e4;color:#4d7756;font-size:10px;font-weight:850}
.reception-protected-note strong{display:block;color:#355548;font-size:9.5px}
.reception-protected-note p{margin:3px 0 0;color:#7f8d84;font-size:8px;line-height:1.5}
.reception-records-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:210px}
.reception-records-loading>span{width:30px;height:30px;border:2px solid #dce5da;border-top-color:#315f4d;border-radius:50%;animation:receptionRecordsSpin .8s linear infinite}
.reception-records-loading strong{display:block;color:#365548;font-size:10px}
.reception-records-loading p{margin:4px 0 0;color:#859188;font-size:8px}
@keyframes receptionRecordsSpin{to{transform:rotate(360deg)}}
.reception-protected-main{grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr) 250px}
.reception-protected-row{cursor:default}
.reception-protected-row:hover{background:#fff}
.reception-continuity-card{min-height:150px}
.reception-return-action{width:calc(100% - 24px);margin:0 12px 12px}
html[data-theme="dark"] .reception-protected-note{background:linear-gradient(135deg,#132a22,#10241d);border-color:#294238}
html[data-theme="dark"] .reception-protected-note>span{background:#173126;color:#a8c3ad}
html[data-theme="dark"] .reception-protected-note strong{color:#d8e4dc}
html[data-theme="dark"] .reception-protected-note p,
html[data-theme="dark"] .reception-records-loading p{color:#819289}
html[data-theme="dark"] .reception-records-toolbar{border-color:#294238}
html[data-theme="dark"] .reception-records-loading>span{border-color:#294238;border-top-color:#8dad98}
html[data-theme="dark"] .reception-records-loading strong{color:#d3ded7}
html[data-theme="dark"] .reception-protected-row:hover{background:#0e221b}
@media(max-width:900px){.reception-protected-main{grid-template-columns:1fr}.reception-records-toolbar{align-items:stretch;flex-direction:column}.reception-records-toolbar>.secondary{align-self:flex-start}}

.reception-records-error{display:flex;align-items:flex-start;justify-content:center;gap:12px;min-height:190px;padding-top:42px}
.reception-records-error>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#f7e9e4;color:#9b5d51;font-size:13px;font-weight:850}
.reception-records-error strong{display:block;color:#40594d;font-size:10.5px}
.reception-records-error p{max-width:520px;margin:5px 0 11px;color:#87938b;font-size:8.5px;line-height:1.5}
.reception-records-error button{font-size:8.5px}
html[data-theme="dark"] .reception-records-error>span{background:#35231f;color:#d49b8f}
html[data-theme="dark"] .reception-records-error strong{color:#d3ded7}
html[data-theme="dark"] .reception-records-error p{color:#819289}
