.record-intro { color:#64748b; font-size:.85rem; margin:0 0 .5rem; }
.record-preview { width:40%; margin:0 0 1rem; }
.record-preview table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; border-radius:0; }
.record-preview th,.record-preview td { border:0; border-bottom:1px solid #e2e5e8; padding:.2rem .45rem; vertical-align:top; text-align:left; overflow-wrap:anywhere; font-size:.85rem; line-height:1.35; }
.record-preview th { font-weight:500; color:#475569; background:transparent; }
.record-preview .record-section th { padding:.5rem .45rem .25rem; color:#162c3c; font-size:.88rem; font-weight:700; border-bottom:1px solid #bec8ce; }
.record-preview textarea { display:block; width:100%; min-height:1.5em; padding:0 2px; margin:0; border:1px solid transparent; border-radius:3px; resize:none; background:transparent; color:#152536; font:inherit; line-height:1.35; overflow:hidden; }
.record-preview textarea:hover { border-color:#d6dce0; }
.record-preview textarea:focus { border-color:#7893a5; background:#fff; outline:2px solid #e3edf3; }
.record-preview td.record-analysis { white-space:pre-wrap; font-size:.85rem; line-height:1.35; }
.record-legend {margin:.4rem 0 0;color:#64748b;font-size:.76rem;line-height:1.4;}
.record-edit-notice { font-size:.88rem; color:#7b5016; }
.record-text-details { margin:1rem 0; }
.record-text-details summary { font-size:.88rem; color:#536778; cursor:pointer; }
.record-text-details #chartNote { margin-top:.75rem; min-height:12rem; }
.chart-note-card .chart-actions { display:flex; gap:.5rem; flex-wrap:wrap; }
.print-completeness { display:flex; align-items:center; gap:.5rem; color:#536778; font-size:.9rem; }
.print-completeness input { width:1rem; height:1rem; margin:0; }
.record-toolbar {position:sticky;top:0;z-index:3;padding:10px 0;background:var(--card,#fff);border-bottom:1px solid #e2e5e8;margin-bottom:10px;}
.record-toolbar h3 {margin:0 0 6px;}
.record-preview textarea {scroll-margin-top:180px;}
.record-toolbar .chart-actions {margin:6px 0;}
.record-toolbar button,.record-edit-actions button {width:auto;margin:0;min-height:36px;padding:7px 12px;font-size:13px;}
.record-print-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;}
.record-print-actions .print-completeness {margin:0;font-size:12px;}
.record-draft-hint {color:#64748b;font-size:12px;line-height:1.5;margin:8px 0;}
.record-edit-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0;}
.record-edit-actions .record-edit-notice {margin:0;}
.record-edited {display:block;width:fit-content;margin-top:3px;padding:1px 4px;border-radius:3px;background:#fff6e9;color:#7b5016;font-size:10px;font-weight:400;}
.record-action-status {margin:8px 0 0;color:#285e43;font-size:12px;line-height:1.5;}
.record-action-status.failed {color:#a32d2d;}
@media (max-width:1000px) {
 .record-preview { width:100%; }
}
@media (max-width:600px) {
 .record-toolbar {position:static;}
 .record-preview textarea {scroll-margin-top:12px;}
 .record-preview table,.record-preview tbody {display:block;}
 .record-preview colgroup {display:none;}
 .record-preview tr {display:grid;grid-template-columns:30% minmax(0,1fr);}
 .record-preview th,.record-preview td {display:block;min-width:0;padding:.2rem .3rem;}
 .record-preview .record-section th {grid-column:1/-1;}
 .record-preview th {font-size:.8rem;}
 .record-preview textarea { font-size:16px; }
 .chart-note-card .chart-actions button { flex:1 1 auto; }
}
