:root{--navy:#061a33;--blue:#0878a8;--teal:#087f5b;--orange:#b65a00;--red:#b42318;--ink:#17324a;--muted:#5d7181;--line:#d4e2ea;--soft:#f3f8fb;--white:#fff}
*{box-sizing:border-box}body{margin:0;background:#edf4f7;color:var(--ink);font-family:Arial,Helvetica,sans-serif}.debrief-hero{background:linear-gradient(135deg,#061a33,#0a4770);color:#fff;padding:44px 20px}.debrief-hero>div,.debrief-shell{max-width:1120px;margin:auto}.crumbs,.crumbs a{color:#bcecff}.eyebrow{text-transform:uppercase;letter-spacing:.09em;font-size:.77rem;font-weight:900;color:#0878a8;margin:0 0 6px}.debrief-hero .eyebrow{color:#9be2ff}.debrief-hero h1{font-size:clamp(2rem,5vw,3.6rem);margin:0 0 12px}.debrief-hero p:last-child{max-width:760px;line-height:1.6;color:rgba(255,255,255,.83)}.debrief-shell{padding:26px 18px 60px}.empty-state,.patient-banner,.report-section,.score-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 28px rgba(6,35,54,.07)}.empty-state{text-align:center;padding:52px 24px}.primary-link,.next-actions a{display:inline-flex;background:var(--blue);color:#fff;text-decoration:none;font-weight:850;padding:12px 16px;border-radius:12px}.patient-banner{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.patient-banner h2{margin:0 0 8px;font-size:1.7rem}.patient-banner p{margin:0;color:var(--muted);line-height:1.5}.banner-actions{display:flex;gap:10px;flex-wrap:wrap}.banner-actions button,.reflection-section button{border:0;border-radius:11px;padding:11px 15px;background:var(--blue);color:#fff;font-weight:850;cursor:pointer}.banner-actions .secondary{background:#e7f1f6;color:#075d87}.score-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}.score-card{padding:17px;min-height:128px;display:flex;flex-direction:column}.score-card span{font-weight:800;color:var(--muted);font-size:.84rem}.score-card strong{font-size:2rem;margin:8px 0}.score-card small{color:var(--muted);line-height:1.35}.score-total{background:linear-gradient(145deg,#071d34,#0a4770);color:#fff}.score-total span,.score-total small{color:rgba(255,255,255,.78)}.report-section{padding:22px;margin-top:16px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.section-heading h2,.report-section h2{margin:0 0 14px}.count-pill{background:#e7f1f6;color:#075d87;border-radius:999px;padding:7px 10px;font-size:.83rem;font-weight:850}.findings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.finding-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--soft)}.finding-card.not-normal{border-left:5px solid var(--orange)}.finding-card.normal{border-left:5px solid var(--teal)}.finding-card h3{font-size:1rem;margin:0 0 8px}.finding-card p{margin:4px 0;color:var(--muted);line-height:1.4}.status-badge{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:.75rem;font-weight:900;background:#dceee8;color:#086444}.not-normal .status-badge{background:#fff0e4;color:#934500}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:28px}.detail-list{margin:0}.detail-list div{padding:10px 0;border-bottom:1px solid var(--line)}.detail-list dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:var(--muted)}.detail-list dd{margin:5px 0 0;line-height:1.5}.coaching-item{border-radius:12px;padding:11px 12px;margin:8px 0;line-height:1.45}.coaching-item.good{background:#e8f5ef;color:#075d43}.coaching-item.review{background:#fff2e8;color:#8b4200}.timeline{border-left:3px solid #b7d7e6;margin-left:10px;padding-left:22px}.timeline-item{position:relative;padding:0 0 22px}.timeline-item:before{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:var(--blue);left:-30px;top:3px}.timeline-item h3{margin:0 0 6px;font-size:1rem}.timeline-item p{margin:4px 0;color:var(--muted);line-height:1.45}.document-box{background:#f7fafc;border:1px solid var(--line);border-radius:13px;min-height:130px;padding:14px;white-space:pre-wrap;line-height:1.55;color:#314b5e}.document-box.empty{font-style:italic;color:#7a8d9b}.reflection-section label{display:block;font-weight:850;margin:14px 0}.reflection-section textarea{display:block;width:100%;margin-top:7px;border:1px solid #b9ccd7;border-radius:11px;padding:11px;font:inherit;resize:vertical}.save-status{min-height:1.2em;font-weight:800;color:var(--teal)}.next-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.next-actions a:nth-child(2){background:#154734}.next-actions a:nth-child(3){background:#6b4f00}@media(max-width:960px){.score-grid{grid-template-columns:repeat(2,1fr)}.score-total{grid-column:1/-1}.findings-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.patient-banner,.two-column{display:block}.banner-actions{margin-top:16px}.score-grid,.findings-grid{grid-template-columns:1fr}.score-total{grid-column:auto}.report-section{padding:17px}.next-actions{display:grid}.next-actions a{justify-content:center}}
@media print{body{background:#fff}.debrief-hero{padding:20px;background:#fff;color:#000;border-bottom:2px solid #000}.debrief-hero .crumbs,.debrief-hero .eyebrow,.debrief-hero p:last-child,.banner-actions,.reflection-section,.next-actions{display:none!important}.debrief-shell{padding:10px}.patient-banner,.report-section,.score-card{box-shadow:none;break-inside:avoid}.score-grid{grid-template-columns:repeat(5,1fr)}.score-total{background:#fff;color:#000}.score-total span,.score-total small{color:#555}}
