/* v0.3.5: standalone print sizing, independent of inline SVG viewport sizing */
@page { size: letter portrait; margin: 0.35in; }
body.print {margin:0; background:#fff; color:#111;}
body.print .sheet {box-sizing:border-box; width:7.8in; max-width:7.8in; height:10.3in; max-height:10.3in; overflow:hidden; margin:0 auto;}
body.print .sheet * {box-sizing:border-box;min-width:0;}
body.print .sheet .chart {width:100%; max-width:100%; overflow:hidden;}
body.print .sheet img.print-chart {display:block; width:100%; max-width:100%; height:auto; max-height:2.55in; object-fit:contain;}
body.print .sheet .split {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:12px;}
body.print .sheet .toprows {display:grid;grid-template-columns:minmax(0,39fr) minmax(0,61fr);gap:10px;}
body.print .sheet .twocharts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body.print .sheet .session {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.print .sheet .description-heading {display:flex;align-items:center;justify-content:space-between;gap:3px;white-space:nowrap;}
body.print .sheet .description-heading h2 {font-size:9pt;}
body.print .sheet .observed-status {font-size:7pt;white-space:nowrap;}
body.print .sheet .notes-grid {height:3.95in; background:none!important;}
body.print .sheet .notes-grid svg {width:100%;height:100%;display:block;}
@media screen { body.print .sheet {height:10.3in; box-shadow:0 4px 25px #aaa; border:1px solid #aaa;} }
@media print { body.print .sheet {border:0;box-shadow:none;} .printcontrols{display:none!important;} }

/* v0.3.6 survey export: constrain image to established placeholder, no layout shift */
body.print .sheet .printsurvey {position:relative;overflow:hidden;}
body.print .sheet #survey-snapshot {display:block;width:100%;height:100%;object-fit:contain;}
body.print .sheet #survey-snapshot[hidden] {display:none;}
body.print .sheet #snapshot-status[hidden] {display:none;}
body.print .sheet .snapshot-actions {font-size:8pt;margin-top:3px;}
body.print .sheet .snapshot-actions button {font-size:8pt;padding:3px 6px;}
@media print { body.print .sheet .snapshot-actions {display:none!important;} }

/* v0.3.8: controls are never part of the printable artifact. */
body.print .sheet .snapshot-actions[hidden]{display:none!important;}
body.print .printcontrols button:disabled{opacity:.55;cursor:wait;}

/* Public QA: keep the assistance choices inside the session cell. */
body.print .sheet .session div[style*="white-space:nowrap"] {white-space:normal!important;font-size:8pt;line-height:1.25;}
