/* 完整病历工作区；沿用站内配色、原生控件与本机字体。 */
/* Keep the chapter list visible and put editing right below the chosen item. */
.note-shared > summary { cursor:pointer; font-weight:650; color:var(--ws-ink,#08333d); }
.note-shared[open] > summary { margin-bottom:18px; }
.note-back-to-checklist { display:inline-flex; align-items:center; min-height:44px; color:var(--ds-blue); font-weight:650; }
.note-frame-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; }
.note-frame-heading h2 { margin:0; scroll-margin-top:calc(var(--site-header-height,72px) + 16px); }
.note-frame-progress { margin:0; font-size:.875rem; color:var(--ws-muted,var(--ds-muted)); font-variant-numeric:tabular-nums; }
.note-frame-settings { margin:14px 0 0; }
#noteFrameSettingsSummary { font-size:.8125rem; font-weight:400; color:var(--ws-muted,var(--ds-muted)); }
.note-frame-config { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:8px; }
.note-frame-extras { min-width:0; border:0; padding:0; }
.note-frame-extras legend { font-weight:650; }
.note-frame-directory > h3 { margin:20px 0 8px; color:var(--ws-muted,var(--ds-muted)); font-size:.875rem; }
.note-frame-stage { margin:0; padding:0; list-style:none; border:1px solid var(--ws-line,var(--ds-line)); border-radius:10px; }
.note-frame-row + .note-frame-row { border-top:1px solid var(--ws-line,var(--ds-line)); }
.note-frame-row.is-open { background:var(--ds-bg); }
.note-frame-row-head { display:flex; align-items:center; justify-content:space-between; gap:8px 16px; padding:10px 12px; }
.note-frame-row-info { min-width:0; }
.note-frame-row-info h4 { margin:0; font-size:1rem; line-height:1.45; overflow-wrap:anywhere; }
.note-frame-row-status { display:inline-block; margin-top:3px; color:var(--ws-muted,var(--ds-muted)); font-size:.8125rem; }
.note-frame-row-status[data-status="已核对"] { color:var(--ds-blue); }
.note-frame-row-status[data-status="输入已变化"],
.note-frame-row-status[data-status="待核对"] { color:#805517; }
.note-frame-row-status[data-status="生成中"] { color:var(--ws-blue,var(--ds-blue)); }
.note-frame-row-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.note-frame-row-actions .note-button { font-size:.875rem; min-height:44px; padding:8px 12px; }
.note-frame-editor { min-width:0; padding:8px 12px 14px; }
.note-frame .note-status:empty { display:none; }
.note-frame-editor[hidden] { display:none; }
.note-frame-batch { margin-top:16px; }
.note-frame-editor textarea { box-sizing:border-box;width:100%;min-width:0;resize:vertical;line-height:1.8; }
#noteFrameOutput { font-size:18px;min-height:240px; }
.note-frame-confirm { display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin:14px 0;color:var(--ds-text); }
.note-frame-confirm input { flex:0 0 auto;width:18px;height:18px;margin-top:4px;accent-color:#08788c; }
.note-frame-completion { min-width:0;margin:24px 0 16px;padding:18px;border:1px solid #c5e0e6;border-radius:12px;background:var(--ds-bg); }
.note-frame-completion legend { padding:0 8px;font-size:18px;font-weight:600;color:var(--ds-text); }
.note-frame-preview { max-height:680px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:18px;line-height:1.85;color:#08333d; }
.note-frame-library { margin-top:24px; }
/* 文书清单渲染前，把「我已保存的病历」放到一屏之外，清单出现时不会把它推开（布局偏移 CLS，2026-11-22） */
#noteFrameWorkspace[hidden] + .note-frame-library { margin-top:100vh; }
#noteFrameReload { margin:4px 0 12px; }
.note-frame-saved-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.note-frame-saved-item { display:flex;flex-direction:column;gap:6px;padding:14px;text-align:left;background:#fff;border:1px solid var(--ds-blue-100);border-radius:12px;color:var(--ds-text);font:inherit;cursor:pointer;overflow-wrap:anywhere; }
.note-frame-saved-item span { font-size:13px;line-height:1.5;color:var(--ds-muted); }
.note-frame button:disabled { cursor:default;opacity:.6; }
.note-frame .note-batch-controls { flex-wrap:wrap; }
.note-frame .note-batch-controls button { white-space:normal; }
#noteFrameSavedLink { display:inline-block;margin-top:12px;color:var(--ds-blue);overflow-wrap:anywhere; }
#noteFrameSavedLink[hidden] { display:none; }
@media(max-width:700px) {
  .note-frame-config,.note-frame-saved-list { grid-template-columns:minmax(0,1fr); }
  .note-frame-row-head { align-items:flex-start; flex-direction:column; }
  .note-frame-row-actions { width:100%; }
  .note-frame-row-actions .note-button { flex:1 1 auto; }
  .note-frame-completion { padding:14px; }
  .note-frame .note-batch-controls button { flex:1 1 180px; }
}
@media print {
  .note-shared,.note-frame-settings,.note-frame-progress,.note-frame-directory,.note-frame-editor,.note-frame-batch,.note-frame-completion,.note-frame-library { display:none; }
  .note-frame-preview { max-height:none;overflow:visible; }
}

.note-inline-link { display:inline-flex; align-items:center; min-height:44px; color:var(--ds-blue); font-size:.875rem; font-weight:650; }
.note-hero > .note-inline-link { margin:-10px 0 8px; }
.note-frame-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; margin:16px 0 8px; }
.note-frame-filters,.note-frame-shortcuts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.note-frame-filters .note-button,.note-frame-shortcuts .note-button { min-height:44px; padding:8px 12px; font-size:.875rem; }
.note-frame-filters .note-button[aria-pressed=true] { background:var(--ds-blue-50); color:#03424e; border-color:#70a7b5; }
.note-frame-row,.note-frame-completion,#noteLegacyTools > summary { scroll-margin-top:calc(var(--site-header-height,72px) + 12px); }
@media print { .note-frame-toolbar,.note-hero > .note-inline-link { display:none; } }
