.highlight-panel { margin: 1.5rem 0; padding: 1.2rem; border: 2px solid #36598a; border-radius: 12px; background: #f7f9fd; }
.highlight-panel .highlight-response { width: 100%; min-height: 7rem; }
.highlight-panel textarea { font: inherit; width: 100%; box-sizing: border-box; }
.highlight-panel label { display: block; }
.highlight-panel label > span { display: block; font-size: .85rem; margin-bottom: .3rem; }
.highlight-panel .highlight-review { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; }
.highlight-review input { width: auto; margin-top: .3rem; }
.highlight-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 1rem; padding: .9rem; border: 1px solid #b8c4d4; margin-top: .5rem; border-radius: 6px; }
.highlight-descriptor { margin: 0; white-space: pre-line; }
.highlight-level { margin-bottom: .7rem; }
.highlight-level summary { cursor: pointer; padding: .5rem; font-weight: 700; }
.highlight-achieved { background: #d7efd9; }
.highlight-partial { background: #ffe7b3; }
.highlight-not_yet { background: #f8d6d6; }
.highlight-unmarked { background: #fff; }
.highlight-preference { padding: 1rem 0; }
.highlight-preference input { width: auto; }
#highlightStatus { white-space: pre-line; }
@media (max-width: 850px) { .highlight-row { grid-template-columns: 1fr; } }
@page highlightedScheme { size: A4 portrait; margin: 12mm; }
@media print {
  .scheme-feedback-page { page: highlightedScheme; break-before: page; break-after: page; width: auto; padding: 0; color: #111; font: 9pt/1.3 Arial, Helvetica, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .scheme-feedback-page:last-child { break-after: auto; }
  .scheme-feedback-header h2 { font-size: 15pt; margin: 0 0 2mm; }
  .scheme-feedback-header p { margin: 1mm 0; }
  .scheme-feedback-page h3 { font-size: 11pt; margin: 4mm 0 2mm; break-after: avoid; }
  .scheme-legend { font-weight: bold; padding: 2mm; border: .3mm solid #444; }
  .scheme-source { font-size: 8pt; margin: 1.5mm 0; }
  .scheme-note { border-left: 1mm solid #36598a; padding-left: 2mm; }
  .scheme-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 3mm; }
  .scheme-table thead { display: table-header-group; }
  .scheme-table tr { break-inside: avoid; page-break-inside: avoid; }
  .scheme-table th, .scheme-table td { border: .2mm solid #777; padding: 1.6mm; vertical-align: top; overflow-wrap: anywhere; white-space: pre-line; }
  .scheme-table th { background: #eee; text-align: left; }
  .scheme-table th:first-child { width: 18%; }
  .scheme-table th:last-child { width: 29%; }
  .scheme-table .scheme-repeat-heading th { width: auto; background: #fff; font-size: 8pt; }
  .scheme-table p { margin: 1mm 0 0; }
  .scheme-achieved { background: #d7efd9 !important; }
  .scheme-partial { background: #ffe7b3 !important; }
  .scheme-not_yet { background: #f8d6d6 !important; }
  .scheme-unmarked { background: #fff !important; }
  body.print-single-ticket .single-ticket-page:has(+ .scheme-feedback-page) { break-after: page; }
}
