/* The education preview uses the platform's shared sidebar and field sections. */
.education-workspace{padding:10px;max-width:none;margin:0;width:100%;color:var(--theme-text)}
.education-layout{display:grid;grid-template-columns:minmax(200px,15%) minmax(0,1fr);gap:8px;align-items:stretch;min-height:calc(100dvh - 105px)}
.education-main-panes{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:8px;min-width:0;min-height:0}
.education-workspace .education-patient-sidebar{position:static;height:auto;max-height:none;min-height:0;padding:12px 10px;border:1px solid var(--theme-border);border-radius:8px;gap:10px}
.education-patient-list{flex:1 1 auto;min-height:100px}.education-patient-list p{margin:18px 0;text-align:center;color:var(--theme-muted);font-size:var(--text-caption)}
.education-pane{min-width:0;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px;overflow:hidden}
.education-pane-title{padding:12px 14px;border-bottom:1px solid var(--theme-border);background:var(--theme-surface)}
.education-pane-title h2{font-size:var(--text-section);margin:0;line-height:1.4}.education-pane-content{padding:0 12px 16px}
.education-section{margin-top:12px}.education-section .section-head{background:var(--theme-subtle);padding:9px 12px}.education-section .section-head h3{font-size:var(--text-body)}
.education-workspace button:disabled{cursor:not-allowed}
.education-table-wrap{overflow-x:auto}.education-table{width:100%;border-collapse:collapse;text-align:left;font-size:var(--text-caption)}.education-table th{padding:10px;background:var(--theme-background);color:var(--theme-muted);white-space:nowrap}.education-table td{border-top:1px solid var(--theme-border)}.education-empty{text-align:center;padding:30px 12px;color:var(--theme-muted);line-height:1.8}.education-empty small{font-size:var(--text-caption)}
.education-template{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:14px 0 2px}.education-template label{font-weight:600;white-space:nowrap}.education-template select{min-width:0;width:100%}.education-template button{white-space:nowrap}
.education-paper{margin:12px;padding:24px 18px;min-height:320px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:5px}.education-paper h3{text-align:center;margin:0;padding-bottom:16px;font-size:var(--text-section);border-bottom:1px solid var(--theme-border)}.education-paper-placeholder{padding:75px 10px;text-align:center;color:var(--theme-muted);line-height:1.8}.education-output{justify-content:flex-end;margin-top:14px}
@media(max-width:1100px){.education-layout{grid-template-columns:minmax(200px,235px) minmax(0,1fr)}.education-main-panes{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.education-workspace{padding:8px}.education-layout,.education-main-panes{display:flex;flex-direction:column;min-height:0}.education-workspace .education-patient-sidebar{display:flex;min-height:0}.education-patient-list{min-height:60px}.education-paper{min-height:220px}.education-paper-placeholder{padding:40px 10px}.education-output button{flex:1}}
.education-workspace button.primary:disabled{background:var(--theme-disabled-bg);border-color:var(--theme-border);color:var(--theme-disabled-text);opacity:1}
.education-patient-sidebar .side-tools button{min-width:0;white-space:normal;line-height:1.35}

.education-photos{max-height:240px;overflow-y:auto;padding:0 12px}
.education-photo-empty{margin:0;padding:18px 0;color:var(--theme-muted);font-size:var(--text-caption)}
.education-photo-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--theme-border)}
.education-photo-row label{display:flex;align-items:center;gap:8px;min-width:0;font-weight:500}
.education-photo-row label span{overflow-wrap:anywhere}.education-photo-row small{color:var(--theme-muted);font-size:var(--text-caption)}
.education-photo-tools{display:flex;gap:6px}.education-photo-tools button{padding:5px 8px;min-height:32px;font-size:var(--text-caption)}
.education-photo-actions{display:flex;align-items:center;gap:10px;padding:10px 12px;flex-wrap:wrap}.education-photo-actions label{display:flex;align-items:center;gap:5px;white-space:nowrap}.education-photo-actions span{color:var(--theme-muted);font-size:var(--text-caption)}.education-photo-actions button{margin-left:auto}
.education-status{margin:0;padding:0 12px 10px;color:var(--theme-muted);font-size:var(--text-caption);line-height:1.6}.education-status:empty{display:none}
.education-photo-image{display:block;max-width:100%;max-height:70dvh;margin:auto;object-fit:contain}
.education-table:has(.education-drug-row){min-width:570px}.education-drug-row td{padding:8px 5px;vertical-align:top}.education-drug-row input[type=text]{width:100%;min-width:0;padding:7px;min-height:36px;font-size:var(--text-caption)}
.education-drug-row td:first-child{width:25%}.education-drug-row td:last-child{width:110px}.education-drug-row td:last-child label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:var(--text-caption)}.education-drug-row td:last-child button{margin-top:6px;padding:4px 8px;min-height:28px;font-size:var(--text-caption)}
@media(max-width:600px){.education-photo-row{grid-template-columns:minmax(0,1fr) auto}.education-photo-row small{display:none}}

.education-review-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 12px 12px;flex-wrap:wrap}.education-patient-caption{margin:5px 0 0;color:var(--theme-muted);font-size:var(--text-caption)}.education-patient-caption:empty{display:none}

body.education-mode .brand .platform-subtitle{display:none}body.education-mode .brand .module-subtitle{display:block}

/* Match the assessment workspace: 300 : 980 : 725, with the same pane gaps. */
@media(min-width:1280px) and (min-height:800px){
  body.education-mode{overflow:hidden}
  .education-workspace{padding:0 10px 8px;height:var(--education-height,calc(100dvh - 100px));overflow:hidden}
  .education-layout{grid-template-columns:minmax(min(200px,20%),var(--patient-width,300fr)) minmax(0,1705fr);height:100%;min-height:0}
  .education-main-panes{grid-template-columns:minmax(min(218px,30%),var(--info-width,980fr)) minmax(min(460px,65%),725fr);overflow:hidden}
  .education-workspace .education-patient-sidebar{height:100%;overflow:auto;display:flex;flex-direction:column;padding:10px 8px;gap:8px;container-type:inline-size}
  .education-workspace .patient-list{min-height:100px;max-height:none;flex:1;overflow:auto}
  .education-workspace .side-footer{display:grid}
  .education-workspace .education-pane{display:flex;flex-direction:column;min-height:0}
  .education-workspace .education-pane-title{flex:none}
  .education-workspace .education-pane-content{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
  .education-workspace .education-pane{border-radius:6px}
  .education-workspace .education-pane-title{padding:7px 10px}
  .education-workspace .education-pane-content{padding:0 10px 10px}
  .education-workspace .education-section{margin-top:10px;border-radius:5px}
  .education-workspace .education-section .section-head{padding:7px 10px;gap:6px}
  .education-workspace .education-template{padding-top:8px;gap:6px}
  .education-workspace .education-empty{padding:20px 10px}
  .education-workspace .education-photo-actions,.education-workspace .education-review-actions{padding:8px 10px;gap:6px}
}
.education-template-dialog{--dialog-width:1120px}
.education-template-editor{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}
.education-template-editor form{min-width:0}
.education-template-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.education-template-checks{display:flex;flex-wrap:wrap;gap:8px 16px}
.education-template-checks>span{flex-basis:100%;font-weight:600}
.education-template-dialog .education-template-checks label{display:flex;align-items:center;gap:5px;font-weight:400;margin:0}
.education-template-preview{min-width:0;position:sticky;top:0}
.education-template-preview>h3{margin:0 0 12px}
.education-template-preview .education-paper{margin:0;min-height:460px}
.education-paper{font-family:"Times New Roman","SimSun",serif;font-size:var(--paper-size,16px);color:#222;overflow-wrap:anywhere}
.education-paper h3{font-family:inherit;font-size:1.3em;color:var(--paper-accent,#245F96);border-color:var(--paper-accent,#245F96)}
.education-paper h4{font-family:inherit;font-size:1em;margin:18px 0 8px;color:var(--paper-accent,#245F96)}
.education-paper p,.education-paper footer{white-space:pre-wrap;line-height:1.7;margin:12px 0}
.education-paper footer{border-top:1px solid #ccc;padding-top:12px}
.education-paper-patient{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0}
.education-paper table{width:100%;border-collapse:collapse;table-layout:fixed;font:inherit}
.education-paper th,.education-paper td{border:1px solid #aaa;padding:8px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.education-paper th{color:var(--paper-accent,#245F96);background:#f5f5f5}
@media(max-width:760px){.education-template-editor{grid-template-columns:minmax(0,1fr)}.education-template-preview{position:static}}
@media(max-width:430px){.education-template>label{grid-column:1/-1}.education-template{grid-template-columns:minmax(0,1fr) auto}}
