.workspace-header{padding-block:16px}.workspace-main{max-width:1100px;margin:24px auto 0;padding:0 18px 32px}
.workspace-login{max-width:530px;margin:7vh auto}.workspace-login h1,.workspace-welcome h1{font:44px 'Bebas Neue',sans-serif;color:var(--wine);letter-spacing:.02em;margin:4px 0}
.workspace-login>p{margin-bottom:20px}.workspace-login form{margin-top:18px}.workspace-login label{display:block;margin:0 0 5px;font-size:14px;font-weight:600}
.work-input{width:100%;padding:13px 12px;border:1px solid #dbcab9;border-radius:10px;background:white;color:var(--ink)}.work-input:focus{outline:3px solid var(--sky)}
.workspace-welcome{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:20px}
.workspace-welcome p{margin:4px 0}.workspace-welcome .pill{flex-shrink:0}
.workspace-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:17px}
.week-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.week-tools button{padding:8px 12px;min-height:42px}.week-tools strong{padding:4px 8px;min-width:200px;text-align:center}
.date-group{margin:19px 0}.date-heading{display:flex;gap:14px;align-items:baseline;margin:0 0 10px}.date-heading strong{font:25px 'Bebas Neue',sans-serif;color:var(--wine);letter-spacing:.03em}.date-heading small{color:var(--muted)}
.class-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.class-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:16px}
.class-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.class-hour{font:28px 'Bebas Neue',sans-serif;color:var(--wine)}.class-teacher{margin:7px 0 10px;color:var(--muted);font-size:13px}
.class-student{display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;border:1px solid #ece0d3;background:#fcfaf6;border-radius:10px;width:100%;margin:7px 0 0;padding:10px 11px;color:var(--ink);font-weight:600}
.class-student:hover{border-color:var(--wine);background:var(--cream)}
.class-student:disabled{opacity:1;cursor:default}
.class-student:disabled:hover{border-color:#ece0d3;background:#fcfaf6}
.class-student .pill{font-size:11px;padding:4px 7px}
.students-directory{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.directory-entry{border:1px solid var(--line);background:white;border-radius:13px;padding:18px;display:flex;flex-direction:column;gap:8px;text-align:left}
.directory-entry:hover{border-color:var(--wine)}.directory-entry strong{color:var(--wine);font-size:17px}
.directory-entry small{color:var(--muted)}.directory-search{width:100%;max-width:420px;margin-bottom:15px}
.fiche-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:15px;flex-wrap:wrap}
.fiche-heading h2{margin:0;font:30px 'Bebas Neue',sans-serif;color:var(--wine)}
.fiche-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.fiche-box{border-radius:14px;border:1px solid var(--line);background:white;padding:17px}
.fiche-box h3{color:var(--wine);margin:0 0 10px}.fiche-box p{margin:0;color:var(--muted);line-height:1.5}
.incomplete{display:inline-flex;padding:6px 11px;background:#f7f1e6;border-radius:100px;color:#795e3a;font-size:12px;font-weight:600}
.work-notice{padding:14px 16px;background:#fff6e5;border:1px solid #ebd4a4;border-radius:11px;margin:14px 0;color:#70552e}
.work-loading{padding:24px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted)}
.workspace-header .account span{color:var(--cream)}
@media(max-width:710px){.workspace-welcome{align-items:flex-start}.workspace-welcome h1,.workspace-login h1{font-size:37px}.week-tools strong{min-width:165px}.class-list,.fiche-grid{grid-template-columns:1fr}.workspace-main{margin-top:14px}.date-heading strong{font-size:23px}}

/* E2.1 — triagem pré-experimental dentro da ficha */
.fiche-triage{border:1px solid var(--line);background:#fff;border-radius:14px;margin-top:14px;padding:18px}
.triage-header{display:flex;justify-content:space-between;align-items:start;gap:12px}
.triage-header h3{color:var(--wine);font-size:18px;margin:0 0 7px}
.triage-header p{margin:0 0 12px}
.triage-header button{flex-shrink:0}
.triage-tools{border-top:1px solid var(--line);padding-top:14px;margin:12px 0 15px}
.triage-tools p{margin:9px 0 0}
.triage-new-link{background:#e9f5f9;border:1px solid #b3dae6;border-radius:13px;padding:15px;margin-bottom:17px}
.triage-new-link input{margin:10px 0;font-size:13px}
.triage-new-link-actions{display:flex;gap:8px;flex-wrap:wrap}
.triage-new-link p{margin:8px 0 0}
.fiche-triage h4{font-size:15px;color:var(--wine);margin:17px 0 8px}
.triage-record{border-top:1px solid var(--line);padding:15px 0}
.triage-record-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.triage-answers{display:grid;gap:7px;padding:12px 0;font-size:14px;line-height:1.45}
.triage-alert{background:#fff4dd;color:#745028;border-radius:10px;padding:11px;margin:6px 0 12px;font-size:14px}
.triage-review{border:1px solid var(--line);padding:13px;border-radius:11px;margin:13px 0 2px}
.triage-review label{font-weight:600;display:block;font-size:14px}
.triage-review textarea{margin:8px 0 12px;width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;resize:vertical;font:inherit}
.triage-review .triage-attest{display:flex;gap:9px;align-items:flex-start;line-height:1.4;margin-bottom:12px}
.triage-attest input{margin-top:3px;accent-color:var(--wine)}
@media(max-width:600px){.triage-header{display:block}.triage-header button{margin-bottom:9px}}

/* E2.1: badge mínimo de triagem em aulas experimentais */
.class-student-meta{display:flex;align-items:center;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.class-student-meta .pill{white-space:nowrap}

/* E2.2: anamnese inicial no resumo longitudinal */
.fiche-initial{border:1px solid var(--line);background:white;border-radius:14px;padding:18px;margin-top:14px}
.initial-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.initial-header h3{margin:0 0 6px;color:var(--wine);font-size:18px}
.initial-header p{margin:0 0 12px}
.initial-controls{border-top:1px solid var(--line);padding-top:14px;margin-top:12px}
.initial-controls p{margin:9px 0 0}
.initial-link-box{background:#ecf6fa;border:1px solid #b9dfea;border-radius:12px;padding:15px;margin:14px 0}
.initial-link-box input{margin:10px 0;font-size:13px}
.initial-link-actions{display:flex;gap:8px;flex-wrap:wrap}
.fiche-initial h4{color:var(--wine);margin:16px 0 8px;font-size:15px}
.initial-record{border-top:1px solid var(--line);padding:15px 0}
.initial-record-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.initial-answers{margin:13px 0;border:1px solid var(--line);border-radius:12px;padding:10px 15px;background:#fffcf9;display:grid;gap:0}
.initial-answer{display:grid;grid-template-columns:minmax(140px,1fr) 1.5fr;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.initial-answer:last-child{border-bottom:none}
.initial-answer strong{color:var(--wine)}
.initial-answer small{grid-column:2;color:var(--muted)}
@media(max-width:600px){.initial-header{display:block}.initial-header button{margin:0 0 10px}.initial-answer{grid-template-columns:1fr}.initial-answer small{grid-column:1}}

/* E2.3 — complementação clínica não obrigatória, com histórico imutável */
.fiche-clinical{border:1px solid var(--line);background:white;border-radius:14px;padding:18px;margin-top:14px}
.clinical-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.clinical-heading h3{color:var(--wine);font-size:18px;margin:0 0 6px}
.clinical-heading p{margin:0 0 10px}
.clinical-heading button{flex-shrink:0}
.clinical-status{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:12px 0}
.clinical-note-compose,.clinical-review{margin:16px 0;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fffcf8}
.clinical-note-compose h4,.clinical-review h4,.clinical-history h4{font-size:16px;color:var(--wine);margin:0 0 9px}
.clinical-note-compose label{display:block;font-size:14px;font-weight:600;margin:11px 0 6px}
.clinical-note-compose textarea{resize:vertical;min-height:84px}
.clinical-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}
.clinical-check{display:flex;align-items:flex-start;gap:9px;line-height:1.4;font-size:14px;font-weight:600;margin:12px 0}
.clinical-check input{accent-color:var(--wine);margin-top:3px}
.clinical-history{margin-top:17px}
.clinical-entry{padding:12px 0;border-top:1px solid var(--line)}
.clinical-entry-meta{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.clinical-entry-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:11px 0}
.clinical-entry p{line-height:1.5}
@media(max-width:610px){.clinical-heading{display:block}.clinical-heading button{margin:8px 0}}

/* E3.1 — resumo no topo da ficha e histórico opcional */
.summary-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.summary-head h3{margin-bottom:8px}
.caution-summary{border-color:#e6bd86;background:#fffdf7}
.current-caution{background:#fff4e4;border:1px solid #edcf9d;border-left:3px solid #b9701b;border-radius:10px;padding:12px;margin:10px 0}
.current-caution>p{color:var(--ink);font-weight:600;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.current-caution>small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.current-caution>button{margin-top:10px;font-size:12px;padding:8px 11px;min-height:38px}
.small-action{font-size:13px;min-height:40px;padding:8px 12px;margin-top:10px}
.observation-snippet{border-top:1px solid var(--line);padding:10px 0}
.observation-snippet strong{display:block;font-size:13px;color:var(--wine)}
.observation-snippet p{color:var(--ink);font-size:14px;margin:6px 0 4px;overflow-wrap:anywhere;white-space:pre-wrap}
.observation-snippet small{font-size:12px;color:var(--muted)}
.obs-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.observation-panel{margin:15px 0;border:1px solid var(--line);border-radius:14px;padding:18px;background:white}
.observation-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.observation-panel-heading h3{font-size:19px;color:var(--wine);margin:0 0 6px}
.observation-panel-heading p{margin:0 0 10px}
.observation-panel>h4,.obs-compose h4{color:var(--wine);font-size:16px;margin:15px 0 8px}
.obs-compose{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fffcf8;margin:12px 0 18px}
.obs-compose-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.obs-compose-top h4{margin:0}
.obs-fields{margin-top:12px;display:grid;gap:9px}
.obs-fields>label,.resolve-box>label{font-size:13px;font-weight:600}
.obs-fields textarea{resize:vertical;min-height:80px}
.obs-care-note{font-size:13px;border-left:3px solid #bf772a;padding:9px;background:#fff2dd;margin:0}
.obs-compose-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:11px;margin-top:4px}
.observation-history-item{padding:13px 0;border-top:1px solid var(--line)}
.obs-item-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.obs-item-head strong{color:var(--wine);font-size:14px}
.observation-history-item>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:8px 0}
.resolve-box{margin-top:11px;padding:12px;border:1px solid #dfc7a8;border-radius:10px;background:#fffdfa;display:grid;gap:9px}
.resolve-box .obs-confirm{font-weight:600;font-size:13px;display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.resolve-box input[type=checkbox]{margin-top:3px;accent-color:var(--wine)}
@media(max-width:620px){.obs-compose-top,.observation-panel-heading{display:block}.obs-compose-top button,.observation-panel-heading button{margin-top:8px}}

/* E3.2 — objetivos, avaliações opcionais e revisão por data efetiva */
.goal-teaser{padding:9px 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.goal-teaser strong{font-size:14px;flex:1;min-width:130px;color:var(--wine)}
.goal-teaser small{flex-basis:100%;font-size:12px;color:var(--muted)}
.goal-manager{background:white;border:1px solid var(--line);border-radius:14px;padding:18px;margin:15px 0}
.goal-manager-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.goal-manager-header h3{color:var(--wine);font-size:19px;margin:0 0 6px}
.goal-manager-header p{margin:0 0 10px}
.goal-creation,.goal-list-item{background:#fffdfa;border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}
.goal-line{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.goal-line h4{font-size:17px;color:var(--wine);margin:0}
.goal-line>strong{font-size:16px;color:var(--wine);max-width:100%;overflow-wrap:anywhere}
.goal-list-item>p{margin:8px 0}
.goal-list-item>button{font-size:13px;min-height:38px;padding:7px 11px;margin-top:5px}
.goal-list-item h5,.goal-settings h5,.goal-detail h5{font-size:15px;color:var(--wine);margin:15px 0 8px}
.goal-detail{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.goal-detail>p{line-height:1.5}
.goal-actions,.goal-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:13px 0}
.goal-actions button,.goal-buttons button{font-size:13px;min-height:42px}
.goal-creation h4{color:var(--wine);margin:0}
.goal-form-fields{display:grid;gap:9px;margin-top:12px}
.goal-form-fields>label,.goal-settings>label,.goal-settings-row>label{font-size:13px;font-weight:600}
.goal-form-fields textarea{resize:vertical;min-height:72px}
.goal-assessment-editor,.goal-settings{border:1px solid var(--line);background:#fffaf3;border-radius:12px;margin:15px 0;padding:14px}
.goal-assessment-editor h4{color:var(--wine);font-size:17px;margin:0 0 7px}
.goal-settings{display:grid;gap:9px}
.goal-settings>button{justify-self:start;font-size:13px}
.goal-settings-row{border-top:1px solid var(--line);padding-top:13px;margin-top:5px;display:grid;gap:8px}
.goal-settings-row button{justify-self:start;font-size:13px}
.goal-checkbox{display:flex;align-items:center;gap:8px;font-weight:600}
.goal-checkbox input{accent-color:var(--wine)}
.goal-method-warning{background:#eaf6fa;border:1px solid #b0d7e4;padding:12px;border-radius:9px;color:#325765;font-size:13px;line-height:1.45}
.goal-change{background:#edf8f1;color:#286441;padding:10px 12px;border-radius:10px;font-size:13px}
.goal-assessment-history{padding:10px 0;border-top:1px solid var(--line)}
.goal-assessment-history>.goal-line{align-items:center}
.goal-assessment-history>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:9px 0}
.goal-assessment-history>p>small{display:block;color:var(--muted);margin-top:5px}
@media(max-width:660px){.goal-manager-header{display:block}.goal-manager-header>button{margin:8px 0 0}.goal-actions button,.goal-buttons button{flex:1}.goal-line{align-items:start}}

/* E4 — relatórios seguros, consistentes no tablet e na impressão A4 */
.report-entry-card{background:#fffcf8}
.report-entry-card>h3{margin:0 0 8px;color:var(--wine)}
.report-entry-card>p{font-size:13px;color:var(--muted)}
.report-entry-card button{min-height:42px;margin-top:12px}
.report-page{max-width:950px;margin:0 auto}
.report-screen-heading{display:flex;align-items:flex-start;gap:18px;margin-bottom:14px}
.report-screen-heading>button{flex-shrink:0;min-height:42px}
.report-screen-heading h2{font:32px 'Bebas Neue',sans-serif;letter-spacing:.02em;color:var(--wine);margin:4px 0}
.report-screen-heading p{margin:0}
.report-screen-controls,.report-export-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:15px 0}
.report-screen-controls button{min-height:42px}
.report-page>.work-notice{line-height:1.5}
.report-version-list{margin:18px 0;padding:16px;border:1px solid var(--line);background:white;border-radius:14px}
.report-version-list h3{font-size:16px;color:var(--wine);margin:0 0 12px}
.report-version-button{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;
  width:100%;background:#fffcf8;border:1px solid var(--line);border-radius:10px;
  text-align:left;padding:12px 14px;margin:8px 0;min-height:52px}
.report-version-button strong{color:var(--wine)}
.report-version-button span{color:var(--muted);font-size:13px}
.report-version-button small{color:var(--wine);font-weight:600}
.report-version-button.is-selected{border-color:var(--wine);background:#fff2df}
.report-editor{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fffcf8;margin:16px 0}
.report-editor h3{color:var(--wine);font-size:19px;margin:0}
.report-editor p{line-height:1.5}
.report-editor>label{display:block;font-size:14px;font-weight:600;margin:13px 0 6px}
.report-editor textarea{resize:vertical;min-height:75px;white-space:pre-wrap}
.report-flex{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.report-export-row{justify-content:space-between;border-top:1px solid var(--line);padding-top:17px}
.report-export-row strong{color:var(--wine)}
.report-export-row p{margin:4px 0}
.report-paper{background:white;color:#292724;border:1px solid #d6c7b5;border-radius:4px;
  padding:36px 44px;margin:17px auto 30px;max-width:790px;
  box-shadow:0 8px 22px rgba(45,22,18,.06);line-height:1.5;font:14px 'Barlow',sans-serif}
.report-paper-header{display:flex;align-items:center;justify-content:space-between;gap:15px;
  border-bottom:2px solid #620000;padding-bottom:17px}
.report-mark{display:flex;align-items:baseline;gap:11px;color:#620000}
.report-mark strong{font:48px 'Bebas Neue',sans-serif;line-height:.85;letter-spacing:.02em}
.report-mark span{font:12px 'Barlow',sans-serif;font-weight:700;letter-spacing:.12em}
.report-paper-type{font-size:10px;letter-spacing:.13em;font-weight:600;color:#735e56}
.report-paper-title{padding:22px 0 18px}
.report-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#986a63;margin:0 0 7px}
.report-paper-title h2{font:36px 'Bebas Neue',sans-serif;color:#620000;letter-spacing:.02em;margin:0 0 5px}
.report-student-name{font-size:19px;font-weight:600;margin:0 0 15px}
.report-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;
  border-top:1px solid #e9dfd2;border-bottom:1px solid #e9dfd2;padding:10px 0;
  color:#806d61;font-size:11px}
.report-section{padding:9px 0 12px;break-inside:auto}
.report-section>h3{font:21px 'Bebas Neue',sans-serif;color:#620000;letter-spacing:.02em;
  border-bottom:1px solid #e9dfd2;margin:10px 0 12px;padding-bottom:7px}
.report-free-text,.report-note p,.report-assessment p,.report-care p{
  white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.report-free-text{margin:0}
.report-goal{padding:12px 0;border-bottom:1px solid #ece2d7;break-inside:avoid-page}
.report-goal:last-child{border-bottom:0}
.report-goal h4{margin:0 0 9px;font-weight:700;font-size:15px;color:#4b2929;overflow-wrap:anywhere}
.report-tag{border-radius:15px;padding:3px 8px;background:#f2ece4;color:#664a42;font-size:10px;font-weight:700}
.report-point-change{padding:8px 10px;background:#eef7f0;color:#32623b;border-radius:6px;
  font-size:12px;margin:9px 0}
.report-assessment{border-left:2px solid #95d7e9;padding:8px 0 8px 11px;margin:9px 0;break-inside:avoid}
.report-assessment>.report-flex{font-size:12px}
.report-assessment>.report-flex span{color:#786f69}
.report-assessment>small,.report-note>small,.report-care>small{display:block;color:#756e66;font-size:11px;margin-top:4px}
.report-measure{margin:5px 0;font-size:13px;overflow-wrap:anywhere}
.report-measure .report-muted{display:block}
.report-care{background:#fff7ec;border-left:3px solid #a96525;padding:10px 12px;margin:9px 0;
  break-inside:avoid-page}
.report-care p{margin:4px 0;font-size:13px}
.report-note{padding:10px 0;border-bottom:1px solid #ece2d7;break-inside:avoid-page}
.report-note:last-child{border-bottom:0}
.report-note .report-flex{font-size:12px}
.report-note .report-flex span{color:#756e66}
.report-note p{margin:6px 0;font-size:13px}
.report-empty,.report-muted{font-size:12px;color:#776b64}
.report-paper-footer{border-top:2px solid #620000;margin-top:26px;padding-top:12px;
  display:flex;flex-direction:column;gap:5px;color:#786f68;font-size:10px}
.report-paper-footer p{margin:4px 0}
.report-paper-footer>span{letter-spacing:.08em;font-weight:700;color:#620000}
.report-paper-footer>.report-test-stamp{letter-spacing:.02em;color:#a6633d}
@media(max-width:680px){
  .report-screen-heading{display:block}
  .report-screen-heading>button{margin-bottom:12px}
  .report-paper{padding:23px 18px;box-shadow:none}
  .report-paper-header{flex-wrap:wrap}
  .report-paper-title h2{font-size:30px}
  .report-export-row{align-items:flex-start}
  .report-screen-controls button{flex:1}
  .report-mark strong{font-size:42px}
}
@page{size:A4;margin:15mm}
@media print{
  body.printing-report{background:white!important;color:black!important}
  body.printing-report>.demo-banner,
  body.printing-report>.workspace-header,
  body.printing-report #loginArea,
  body.printing-report #workspaceNav,
  body.printing-report .workspace-welcome,
  body.printing-report #workspaceNotice,
  body.printing-report .report-screen-heading,
  body.printing-report .report-screen-controls,
  body.printing-report .report-version-list,
  body.printing-report .report-editor,
  body.printing-report .report-export-row,
  body.printing-report .report-page>.work-notice,
  body.printing-report .report-page>.outline,
  body.printing-report .report-page>.footnote{display:none!important}
  body.printing-report .workspace-main,
  body.printing-report #workspaceArea,
  body.printing-report #workspaceContent,
  body.printing-report .report-page{display:block!important;padding:0!important;margin:0!important;
    max-width:none!important;width:auto!important}
  body.printing-report .report-paper{display:block!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;padding:0!important;margin:0!important;max-width:none!important;
    background:white!important;color:#292724!important;font-size:11pt}
  body.printing-report .report-section{break-inside:auto}
  body.printing-report .report-note,
  body.printing-report .report-care,
  body.printing-report .report-assessment,
  body.printing-report .report-goal{break-inside:avoid-page}
  body.printing-report .report-paper-header,
  body.printing-report .report-section>h3{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing-report .report-paper-footer{break-inside:avoid}
}

/* E4.1 — prévia editorial com trechos em cinza e reversão explícita */
.report-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;background:#f5f0e8;border:1px solid #e8dfd3;border-radius:10px;
  margin:15px 0 10px;flex-wrap:wrap}
.report-selection-count{font-weight:600;font-size:13px;color:#665852}
.report-selection-toolbar button{font-size:13px}
.report-section-heading{display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;border-bottom:1px solid #e9dfd2;margin:10px 0 12px;padding-bottom:7px}
.report-section-heading h3{font:21px 'Bebas Neue',sans-serif;color:#620000;letter-spacing:.02em;margin:0}
.report-section-heading>button{padding:5px 10px;font-size:12px;min-height:34px;
  border:1px solid #cfbcad;border-radius:8px;background:#fffdf9;color:#6c3e39;
  cursor:pointer}
.report-section-heading>button:hover{background:#f4eadd}
.report-editable-section{border:1px dashed #d8caba;border-radius:11px;padding:10px 14px;
  margin:11px -14px;transition:background .15s}
.report-editable-section .report-section-heading{margin-top:0}
.report-item-selectable{position:relative;border-radius:8px}
.report-item-toolbar{display:flex;align-items:center;justify-content:flex-end;
  gap:9px;margin-top:6px;font-size:11px}
.report-item-toolbar>button{padding:5px 10px;min-height:31px;font-size:11px;
  border-radius:7px;background:#fff;border:1px solid #d9c8bd;color:#674640;cursor:pointer}
.report-item-toolbar>span{color:#6f6763;font-weight:600}
.report-preview-hidden-section{background:#f0f0ef;border-color:#b5b5b4}
.report-preview-hidden-section>.report-section-content{opacity:.35;filter:grayscale(1)}
.report-preview-hidden-section>.report-section-heading h3{color:#747474}
.report-preview-hidden-item{background:#f1f1f0;border:1px dashed #b5b5b5;padding:6px 10px;margin:5px 0}
.report-preview-hidden-item>.report-goal,
.report-preview-hidden-item>.report-care,
.report-preview-hidden-item>.report-note{opacity:.36;filter:grayscale(1)}
.report-preview-hidden-item .report-item-toolbar>button{color:#4c4b49;border-color:#aaa}
.report-hidden-label{font-size:12px;color:#666;font-weight:700;
  background:#dededc;padding:6px 10px;border-radius:6px;display:inline-block;margin:2px 0 8px}
.report-page .report-paper .report-section h3{line-height:1.1}
@media(max-width:670px){
  .report-editable-section{margin-left:0;margin-right:0;padding:10px}
  .report-section-heading h3{font-size:19px}
  .report-selection-toolbar>button{width:100%}
}
@media print{
  body.printing-report .report-item-toolbar,
  body.printing-report .report-selection-toolbar,
  body.printing-report .report-section-heading>button,
  body.printing-report .report-hidden-label{display:none!important}
  body.printing-report .report-editable-section,
  body.printing-report .report-item-selectable{border:0!important;padding:0!important;background:white!important}
  body.printing-report .report-section-heading{break-after:avoid}
}

/* Revisão visual — ficha separada de ferramentas clínicas, sem alterar fluxos */
.fiche-page-heading{padding:8px 0 15px;margin-top:2px}
.fiche-page-heading h2{font-size:clamp(29px,4.5vw,40px)}
.fiche-section{margin:17px 0 22px;padding:21px 24px}
.fiche-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding-bottom:15px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.fiche-section-heading h3{color:var(--wine);font:27px 'Bebas Neue',sans-serif;
  letter-spacing:.015em;margin:3px 0 8px}
.fiche-section-heading p{margin:0;line-height:1.45}
.fiche-tools-section{background:#fffaf4}
.fiche-tools-list{display:grid;gap:12px}
.fiche-tools-list>.fiche-triage,
.fiche-tools-list>.fiche-initial,
.fiche-tools-list>.fiche-clinical{margin-top:0}
@media(max-width:620px){
  .fiche-section{padding:15px;margin:13px 0 18px}
  .fiche-section-heading{margin-bottom:12px}
  .fiche-section-heading h3{font-size:24px}
}

/* E5 — exportação administrativa de contingência */
.offline-export-panel{max-width:890px;padding:25px}
.offline-header h2{font:32px 'Bebas Neue',sans-serif;color:var(--wine);margin:4px 0 9px}
.offline-header p{font-size:15px;color:var(--muted);line-height:1.5}
.offline-export-content{display:grid;gap:16px;margin-top:21px}
.offline-info,.offline-warning{border-radius:13px;padding:18px 20px;border:1px solid var(--line)}
.offline-info{background:#fffdfa}
.offline-info h3,.offline-warning h3{color:var(--wine);margin:0 0 8px;font-size:17px}
.offline-info p,.offline-warning p{margin:8px 0;line-height:1.5;font-size:14px}
.offline-warning{background:#fff4e4;border-color:#e5c69e}
.offline-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;
  border:1px solid var(--line);border-radius:10px;line-height:1.5;font-size:14px;
  background:white;font-weight:600}
.offline-consent input{accent-color:var(--wine);width:18px;height:18px;flex-shrink:0;margin:3px 0 0}
.offline-download{justify-self:start;min-height:48px}
@media(max-width:620px){
  .offline-export-panel{padding:15px}
  .offline-info,.offline-warning{padding:14px}
  .offline-download{width:100%}
}

/* E6.4: fundo claro e zona de silêncio para QR do autenticador, inclusive tema escuro. */
.mfa-qr-surface{display:flex;justify-content:center;align-items:center;width:max-content;max-width:100%;padding:18px;background:#fff;border:1px solid #d4d4d4;border-radius:12px;margin:12px 0}
.mfa-qr-surface img{display:block;width:260px;height:260px;max-width:100%;object-fit:contain}
.mfa-manual-setup{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}
.mfa-manual-setup summary{font-weight:600;cursor:pointer}
.mfa-secret{display:block;padding:12px;letter-spacing:.08em;white-space:normal;overflow-wrap:anywhere;background:var(--paper);border-radius:8px;margin:9px 0 0}

/* E6.4.2 — confianca apenas por decisao expressa e cadastro criptografico. */
.mfa-trust-choice{display:flex;gap:10px;align-items:center;font-weight:600;line-height:1.4}
.mfa-trust-choice input{width:19px;height:19px;accent-color:#620000;flex-shrink:0}
#mfaTrustedDevices .outline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#mfaTrustedDevices .outline button{margin-left:auto}
#lockArea{max-width:530px}
#lockArea .panel{padding:23px}
#lockArea h2{font:30px 'Bebas Neue',sans-serif;color:var(--wine);margin:0}
@media(max-width:530px){#mfaTrustedDevices .outline button{width:100%;margin-left:0}}
