.summary-workspace { min-width: 0; }
.summary-export-actions { justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.summary-edit-text { margin-bottom: 18px; }
.summary-edit-text > summary { display: inline-flex; list-style: none; cursor: pointer; min-height: 44px; }
.summary-edit-text > summary::-webkit-details-marker { display: none; }
.summary-edit-text label { margin-top: 12px; }
.summary-document { color: #24333e; background: #fff; padding: 24px; border: 1px solid #cbd5dc; min-width: 0; font-size: 14px; line-height: 1.5; }
.summary-document-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 18px; border-bottom: 3px solid #22776f; }
.summary-document .summary-eyebrow { color: #22776f; font-size: 13px; font-weight: 800; margin: 0 0 4px; }
.summary-document h1 { font-size: 23px; line-height: 1.2; margin: 0 0 8px; }
.summary-document .summary-generation { font-size: 12px; color: #526274; text-align: right; flex-shrink: 0; }
.summary-document p { margin: 5px 0; }
.summary-section { margin-top: 20px; border-top: 1px solid #cbd5dc; padding-top: 12px; min-width: 0; }
.summary-document .summary-section > h2 { margin: 0 0 12px; padding: 7px 10px; background: #edf4f2; border-left: 4px solid #22776f; font-size: 16px; font-weight: 800; color: #234b49; break-after: avoid; }
.summary-document ul { padding-left: 20px; margin: 0; }
.summary-document li { padding: 3px 0; overflow-wrap: anywhere; }
.summary-document h3 { font-size: 15px; margin: 12px 0 10px; }
.summary-document .summary-snapshots { border: 0; padding-top: 6px; margin-top: 12px; }
.summary-document .summary-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary-document .summary-snapshot-card { border-radius: 4px; box-shadow: none; background: #fff; }
.summary-document .summary-snapshot-row { grid-template-columns: 65px minmax(0, 1fr); }
.summary-document .summary-snapshot-svg { height: 60px; }
.summary-document .summary-snapshot-dates { font-size: 11px; color: #526274; margin: 8px 0 0; }
.summary-document .summary-clinical-chart { border: 0; border-top: 1px solid #cbd5dc; border-radius: 0; padding: 16px 0 0; margin-top: 18px; box-shadow: none; background: #fff; break-inside: avoid; }
.summary-document .summary-clinical-chart .panel-head { margin: 0; }
.summary-document .summary-clinical-chart .clinical-chart { max-height: 300px; }
.summary-document .summary-clinical-chart .subtle { font-size: 12px; }
.summary-timeline { margin-top: 16px; padding-top: 8px; border-top: 1px solid #d9e1e5; }
.summary-timeline ol { list-style: none; padding: 0; margin: 0; }
.summary-timeline li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; margin-left: 5px; padding: 0 0 12px 14px; border-left: 2px solid #a8cbc5; position: relative; break-inside: avoid; }
.summary-timeline li::before { content: ""; width: 8px; height: 8px; position: absolute; left: -5px; top: 5px; border-radius: 50%; background: #22776f; }
.summary-timeline time { font-size: 12px; color: #526274; }
.summary-timeline li div { display: grid; gap: 3px; }
.summary-timeline li span { color: #526274; font-size: 12px; }
.summary-document-footer { border-top: 1px solid #cbd5dc; margin-top: 22px; padding-top: 16px; text-align: center; break-inside: avoid; }
.summary-barcode { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto 8px; background: #fff; }
.summary-document-footer p { font-size: 11px; color: #526274; }
.summary-print-page { margin: 0; background: #fff; overflow: visible; }
.summary-print-page .summary-document { border: 0; max-width: 900px; margin: 0 auto; }
@media (max-width: 600px) {
  .summary-workspace .summary-export-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shell.phone-view .summary-workspace .summary-export-actions .btn { min-width: 0; min-height: 44px; padding: 8px 5px; font-size: 12px; }
  .summary-workspace .summary-document { padding: 12px; font-size: 13px; }
  .summary-document-header { flex-direction: column; gap: 8px; }
  .summary-document .summary-generation { text-align: left; }
  .summary-document h1 { font-size: 20px; }
  .summary-document .summary-snapshot-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-timeline li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media print {
  @page {
    size: A4;
    margin: 15mm 15mm 20mm;
    @bottom-left { content: var(--print-identifier, ""); font-size: 8pt; color: #526274; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font-size: 8pt; color: #526274; }
  }
  html, body.summary-print-page { background: #fff; margin: 0; padding: 0; }
  .summary-print-page .summary-document { padding: 0; max-width: none; font-size: 10pt; line-height: 1.4; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .summary-document-header { flex-direction: row; }
  .summary-document h1 { font-size: 18pt; }
  .summary-document .summary-generation { text-align: right; font-size: 9pt; }
  .summary-document .summary-section > h2 { font-size: 12pt; margin-bottom: 8px; }
  .summary-document .summary-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-document .summary-snapshot-card { break-inside: avoid; }
  .summary-document .summary-snapshots { break-inside: auto; }
  .summary-document .summary-snapshot-label { font-size: 8pt; }
  .summary-document .summary-snapshot-svg { height: 50px; }
  .summary-document .clinical-chart-legend { font-size: 9pt; gap: 8px 14px; }
  .summary-document .summary-clinical-chart .clinical-chart { max-height: 250px; }
  .summary-timeline li { grid-template-columns: 90px minmax(0, 1fr); }
  .summary-document-footer .summary-barcode { width: 65mm; }
}
