.chart-series-editor{display:grid;gap:8px;padding:11px 0;border-bottom:1px solid #d8e2e7}
.chart-series-title{display:flex;align-items:center;justify-content:space-between}
.chart-series-title button{padding:6px 10px}
.chart-series-editor>p{margin:0;color:#647883;font-size:10px}
.chart-series-editor #chartSeriesItems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.chart-series-editor label{position:relative;display:grid;gap:4px;padding:8px 9px;border:1px solid #d8e1e6;border-radius:8px;background:#f8fafb}
.chart-series-editor label>span{font-size:9px;color:#607987}
.chart-series-editor label>input{padding:7px 30px 7px 8px}
.chart-series-editor label>button{position:absolute;right:12px;bottom:14px;border:0;background:transparent;color:#8b4054;cursor:pointer}
.chart-data-row:has(.chart-comparison-value){grid-template-columns:20px minmax(130px,1fr) repeat(auto-fit,minmax(95px,150px)) 32px}
.chart-comparison-value{min-width:0}
.chart-comparison-value input{width:100%}
@media(max-width:700px){.chart-series-editor #chartSeriesItems{grid-template-columns:1fr}.chart-data-row:has(.chart-comparison-value){grid-template-columns:18px 1fr 1fr 28px}}

/* Lesbarkeit der Werkbank-Oberflaeche. Dokumenttext und A4-Vorschauen behalten
   ihre wissenschaftlichen, vom Projekt vorgegebenen Schriftgroessen. */
.app-shell.workshop-mode{font-synthesis:none;text-rendering:optimizeLegibility}
.app-shell.workshop-mode button,.app-shell.workshop-mode input,.app-shell.workshop-mode select,.app-shell.workshop-mode textarea{-webkit-font-smoothing:auto}
.app-shell.workshop-mode .module-purpose p{font-size:13px;line-height:1.5}
.app-shell.workshop-mode .module-purpose strong{font-weight:700}
.app-shell.workshop-mode .work-main-toolbar>div span{font-size:12px}
.app-shell.workshop-mode .figure-detail-label,
.app-shell.workshop-mode .figure-library-head span,
.app-shell.workshop-mode .evidence-panel-title span,
.app-shell.workshop-mode .format-section>div:first-child>span,
.app-shell.workshop-mode .format-preview-head span,
.app-shell.workshop-mode .citation-style-head span,
.app-shell.workshop-mode .citation-style-samples span,
.app-shell.workshop-mode .citation-own-rule>span,
.app-shell.workshop-mode .check-overview>div:first-child>span,
.app-shell.workshop-mode .export-stage span,
.app-shell.workshop-mode .export-readiness>span,
.app-shell.workshop-mode .chart-design-profiles>span,
.app-shell.workshop-mode .dataset-quality-head span{font-size:11px;font-weight:700;letter-spacing:.1em}
.app-shell.workshop-mode .citation-settings label,
.app-shell.workshop-mode .format-section label,
.app-shell.workshop-mode .chart-design-grid label,
.app-shell.workshop-mode .chart-advanced-grid label,
.app-shell.workshop-mode .chart-data-row label,
.app-shell.workshop-mode .transcript-document-grid label{font-size:12px;font-weight:650}
.app-shell.workshop-mode .citation-style-preview>p,
.app-shell.workshop-mode .citation-style-warning,
.app-shell.workshop-mode .citation-own-rule,
.app-shell.workshop-mode .chart-design-head span,
.app-shell.workshop-mode .chart-design-advice,
.app-shell.workshop-mode .chart-draft-advice,
.app-shell.workshop-mode .dataset-quality-grid span,
.app-shell.workshop-mode .dataset-quality p,
.app-shell.workshop-mode .transcript-documentation p,
.app-shell.workshop-mode .export-stage p{font-size:12px;line-height:1.5}
.app-shell.workshop-mode .work-chapter-button small,
.app-shell.workshop-mode .recommended-work-chapter small,
.app-shell.workshop-mode .citation-list-item small,
.app-shell.workshop-mode .work-module-status,
.app-shell.workshop-mode .check-counts span{font-size:11px}
.app-shell.workshop-mode .quiet-item-actions button,
.app-shell.workshop-mode .check-filters button,
.app-shell.workshop-mode .chart-design-profiles button,
.app-shell.workshop-mode .transcript-utilities button{font-size:12px}
.app-shell.workshop-mode .chart-series-editor>p,.app-shell.workshop-mode .chart-series-editor label>span{font-size:11px}

/* Zweiter Lesbarkeitsdurchgang: Kleinstschrift in allen Werkbank-Modulen
   wird auf eine verlaesslich lesbare UI-Groesse gebracht. */
.app-shell.workshop-mode .module-link small,
.app-shell.workshop-mode .work-outline-head span,
.app-shell.workshop-mode .work-outline-panel>span,
.app-shell.workshop-mode .component-number,
.app-shell.workshop-mode .work-component-item small,
.app-shell.workshop-mode .work-source-file-box span,
.app-shell.workshop-mode .evidence-source-access,
.app-shell.workshop-mode .evidence-trace span,
.app-shell.workshop-mode .evidence-trace a,
.app-shell.workshop-mode .evidence-trace button,
.app-shell.workshop-mode .source-file-mark,
.app-shell.workshop-mode .dataset-quality-head>strong,
.app-shell.workshop-mode .dataset-missing-list span,
.app-shell.workshop-mode .transcript-utilities span,
.app-shell.workshop-mode .citation-style-head>strong,
.app-shell.workshop-mode .check-overview>div:first-child>span,
.app-shell.workshop-mode .check-counts span,
.app-shell.workshop-mode .work-check small,
.app-shell.workshop-mode .export-stage span,
.app-shell.workshop-mode .export-readiness span,
.app-shell.workshop-mode .chart-design-profiles small,
.app-shell.workshop-mode .chart-design-grid output,
.app-shell.workshop-mode .chart-advanced-grid output{font-size:11px}

.app-shell.workshop-mode .work-chapter-head span,
.app-shell.workshop-mode .work-writing-area label,
.app-shell.workshop-mode .work-editor-meta,
.app-shell.workshop-mode .format-group>span,
.app-shell.workshop-mode .work-material-controls,
.app-shell.workshop-mode .find-summary span{font-size:12px}

.app-shell.workshop-mode .script-format small{font-size:9px;line-height:1}
.app-shell.workshop-mode .format-group>span{letter-spacing:.06em}

.numeric-detail{margin-top:7px;border-top:1px solid #e0e7ea;padding-top:7px}
.numeric-detail summary{cursor:pointer;color:#294966;font-size:12px;font-weight:700}
.numeric-detail dl{display:grid;gap:5px;margin:8px 0 0}
.numeric-detail dl div{display:flex;justify-content:space-between;gap:12px}
.numeric-detail dt,.numeric-detail dd{margin:0;font-size:12px}
.numeric-detail dt{color:#647782}.numeric-detail dd{font-weight:700}
.dataset-distributions{margin:18px 0;padding:16px;border:1px solid #d5e0e6;border-radius:12px;background:#f7fafb}
.dataset-distributions .dataset-quality-head h3{margin:3px 0 0!important}
.categorical-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:14px}
.categorical-summary article{padding:12px;border:1px solid #dce5e9;border-radius:9px;background:#fff}
.categorical-summary article>div strong,.categorical-summary article>div span{display:block}
.categorical-summary article>div span,.dataset-distributions>p{color:#647782;font-size:12px;line-height:1.45}
.categorical-summary ol{display:grid;gap:5px;margin:10px 0 0;padding:0;list-style:none}
.categorical-summary li{display:flex;justify-content:space-between;gap:12px;padding-top:5px;border-top:1px solid #edf1f3;font-size:12px}
.categorical-summary li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.transcript-file-tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.transcript-file-tools button,.transcript-import-button{font-size:12px;padding:8px 11px}
.transcript-import-button{display:inline-flex!important;align-items:center;cursor:pointer;text-transform:none!important;letter-spacing:0!important;color:#294966!important}
.transcript-import-button input{display:none}
.transcript-release-note{margin:10px 0 0;padding:9px 11px;border-left:3px solid #456f88;background:#eef4f7;color:#536d7b;font-size:12px;line-height:1.45}

/* Werkbank v127: scharfe, einheitliche Bedienoberflaeche. Sehr kleine
   9/10-Pixel-Schriften und synthetische Extremgewichte wirkten unter der
   Windows-Anzeigeskalierung unscharf. Dokument- und Druckvorschauen sind
   bewusst ausgenommen, weil dort die gespeicherten Formatvorgaben gelten. */
.app-shell.workshop-mode{font-size:14px;text-rendering:auto}
.app-shell.workshop-mode .workshop-page,
.app-shell.workshop-mode dialog{font-synthesis:weight style;text-rendering:auto}
.app-shell.workshop-mode .workshop-page button,
.app-shell.workshop-mode .workshop-page input,
.app-shell.workshop-mode .workshop-page select,
.app-shell.workshop-mode .workshop-page textarea,
.app-shell.workshop-mode dialog button,
.app-shell.workshop-mode dialog input,
.app-shell.workshop-mode dialog select,
.app-shell.workshop-mode dialog textarea{font-size:13px;line-height:1.35}
.app-shell.workshop-mode .workshop-page button,
.app-shell.workshop-mode dialog button{font-weight:700}
.app-shell.workshop-mode :is(
  .work-outline-head span,.work-outline-panel>span,.component-number,
  .work-component-item small,.figure-library-head span,.figure-detail-label,
  .work-figure-item span,.interview-meta b,.transcript-head span,
  .citation-settings label,.citation-list-item small,.citation-preview span,
  .citation-links dt,.check-score>div:first-child small,.work-check small,
  .check-guide>span,.format-section>div:first-child>span,.format-preview-head span,
  .chart-design-profiles>span,.dataset-quality-head span,.export-stage span,
  .citation-style-head span,.citation-style-samples span,.citation-own-rule>span
){font-size:11px!important;font-weight:700!important;letter-spacing:.08em!important;line-height:1.35}
.app-shell.workshop-mode :is(
  .work-component-item p,.work-module-card p,.work-figure-item small,
  .figure-ready-note span,.interview-status span,.interview-meta span,
  .transcript-actions span,.citation-type-badge,.citation-links dd,
  .work-check p,.check-guide p,.check-guide li,.check-overview p,
  .dataset-quality-grid span,.dataset-quality p,.export-stage p,
  .citation-style-preview>p,.citation-style-warning,.citation-own-rule
){font-size:13px!important;line-height:1.5}
.app-shell.workshop-mode .citation-list-item>span,
.app-shell.workshop-mode .work-chapter-button>span{font-size:12px}
.app-shell.workshop-mode .citation-list-item strong,
.app-shell.workshop-mode .work-chapter-button strong,
.app-shell.workshop-mode .work-figure-item strong{font-size:14px;line-height:1.35}
.app-shell.workshop-mode .citation-style-samples strong{font-size:14px;line-height:1.55}
.app-shell.workshop-mode .citation-settings{align-items:end}
.app-shell.workshop-mode .citation-settings label{gap:6px;color:#526b79}
.app-shell.workshop-mode .citation-settings select,
.app-shell.workshop-mode .citation-settings input{min-height:40px}
.app-shell.workshop-mode .citation-style-preview,
.app-shell.workshop-mode .check-overview,
.app-shell.workshop-mode .dataset-quality,
.app-shell.workshop-mode .transcript-documentation{box-shadow:none}
.app-shell.workshop-mode dialog{max-height:calc(100dvh - 24px)}
.app-shell.workshop-mode dialog form{max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
.preview-register{display:grid;gap:10px;margin-top:24px}.preview-register p{display:flex;align-items:flex-end;gap:8px;margin:0;font-size:14px}.preview-register p span{min-width:0}.preview-register p i{flex:1;border-bottom:1px dotted #9aa6ac;transform:translateY(-4px)}.preview-register p small{max-width:34%;color:#687984;text-align:right}
.evidence-original-search{display:grid;gap:10px;padding:13px;border:1px solid #d5e0e6;border-radius:10px;background:#f6f9fa}.evidence-original-search>div:first-child strong,.evidence-original-search>div:first-child span{display:block}.evidence-original-search>div:first-child span{margin-top:3px;color:#607580;font-size:12px;line-height:1.45}.evidence-search-controls{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:7px}.evidence-original-results,#evidenceOriginalResults{display:grid;gap:9px;max-height:390px;overflow-y:auto}.evidence-original-result{padding:10px;border:1px solid #d8e2e7;border-radius:9px;background:#fff}.evidence-original-result>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.evidence-original-result button{border:0;background:#e7eff4;color:#294966;padding:7px 9px;border-radius:7px;cursor:pointer;font-weight:700}.evidence-original-result textarea{width:100%;resize:vertical;border:1px solid #d5dee3;border-radius:7px;padding:10px;font:14px/1.55 Georgia,serif;color:#1f2b31;background:#fff}.dialog-inline-status.ready{background:#e5f1eb;color:#25634d}.dialog-inline-status.warning{background:#fff1dc;color:#80551a}@media(max-width:720px){.evidence-search-controls{grid-template-columns:1fr}.evidence-original-result>div{align-items:flex-start;flex-direction:column}}
.evidence-original-result strong em{display:inline-block;margin-left:7px;padding:3px 6px;border-radius:999px;background:#e5f1eb;color:#25634d;font:700 10px "Segoe UI",sans-serif}
.evidence-result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.evidence-result-actions button:first-child:not(:last-child){background:#fff;border:1px solid #cbd8df}
.citation-repeat-preview{display:grid;gap:5px;margin-top:12px;padding:12px 14px;border:1px solid #d8e1e6;border-radius:9px;background:#fff}.citation-repeat-preview span{font-size:12px;font-weight:750;letter-spacing:.07em;color:#607480}.citation-repeat-preview strong{font:600 14px/1.5 Georgia,serif;color:#17272f}
.evidence-index-progress{height:7px;overflow:hidden;border-radius:999px;background:#dce6eb}.evidence-index-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#294f6d;transition:width .25s ease}

.citation-settings{grid-template-columns:repeat(2,minmax(260px,1fr))!important}.citation-settings>button{grid-column:2;justify-self:end}
@media(max-width:1050px){.citation-settings{grid-template-columns:1fr 1fr!important}.citation-settings>button{grid-column:2;justify-self:end}}
@media(max-width:650px){.citation-settings{grid-template-columns:1fr!important}.citation-settings>button{grid-column:1;justify-self:stretch}}

/* Werkbank v134: Die kompakte Schreibkopfleiste bildet beim Festsetzen eine
   geschlossene Flaeche. So kann die normale Seitenkopfzeile seitlich nicht
   mehr durch den zentrierten Inhaltsbereich scheinen. */
body.work-main-editing .work-main-toolbar.is-stuck{isolation:isolate;background:#fff}
body.work-main-editing .work-main-toolbar.is-stuck::before{content:"";position:absolute;z-index:-1;top:-1px;bottom:-1px;left:50%;width:100vw;transform:translateX(-50%);background:#fff;border-bottom:1px solid #d8e1e8;box-shadow:0 5px 12px rgba(31,57,76,.08);pointer-events:none}
body.work-main-editing .work-main-toolbar.is-stuck::before{z-index:0}
body.work-main-editing .work-main-toolbar.is-stuck>*{position:relative;z-index:1}

/* Einheitliche Mindestgroesse fuer Bedien- und Erklaertexte. Dokumenttext,
   Druckvorschau und Diagrammbeschriftungen behalten ihre fachlichen Werte. */
.app-shell.workshop-mode :is(
  .module-purpose p,.work-main-toolbar>div span,.citation-settings label,
  .citation-style-preview>p,.citation-style-warning,.citation-own-rule,
  .citation-list-item small,.citation-preview span,.evidence-trace span,
  .evidence-trace a,.evidence-trace button,.work-check p,.check-guide p,
  .check-guide li,.dataset-quality p,.dataset-quality-grid span,
  .export-stage p,.export-stage span,.field-explanation
){font-size:13px!important;line-height:1.5!important;letter-spacing:0!important}
.app-shell.workshop-mode :is(
  .citation-style-head>strong,.citation-style-samples>span,
  .figure-library-head>span,.evidence-panel-title>span,.eyebrow
){font-size:12px!important;line-height:1.35!important;letter-spacing:.07em!important}
.app-shell.workshop-mode .citation-settings :is(input,select){font-size:14px!important}

/* Werkbank v142: durchgehende, pixelstabile Bedienoberflaeche. Die Regeln
   betreffen nur die Anwendungschrome, nicht A4-, Druck- oder Diagrammtext. */
.app-shell.workshop-mode{
  --work-ui-font:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
}
.app-shell.workshop-mode :is(
  .workshop-page,.work-main-toolbar,.module-purpose,
  .work-chapter-list,.work-writing-area,
  .work-outline-view,.work-sources-view,.work-evidence-view,
  .work-figures-view,.work-charts-view,.work-studies-view,
  .work-interviews-view,.work-citations-view,.work-format-view,
  .work-checks-view,.work-export-view,.work-abbreviations-view
){font-family:var(--work-ui-font);text-rendering:auto;-webkit-font-smoothing:auto}
.app-shell.workshop-mode :is(
  .work-editor-layout,.work-outline-layout,.work-sources-layout,
  .work-evidence-layout,.work-figures-layout,.work-charts-layout,
  .work-studies-layout,.work-interviews-layout,.work-citations-layout,
  .work-format-layout,.work-check-layout,.work-export-layout,
  .work-abbreviation-layout,.citation-settings,.citation-style-samples,
  .citation-links,.chart-dialog-grid,.chart-design-grid,.chart-advanced-grid
)>*{min-width:0}
.app-shell.workshop-mode :is(
  .work-module-grid small,.work-card small,.work-card p,
  .work-chapter-button small,.work-component-item small,
  .work-source-list small,.work-source-detail p,.evidence-list-item small,
  .figure-ready-note span,.work-figure-item small,.chart-source,
  .interview-meta span,.transcript-actions span,.citation-list-item small,
  .citation-preview span,.citation-links dt,.citation-links dd,
  .format-section label,.check-score p,.work-check p,.check-guide p,
  .check-guide li,.export-formats p,.export-formats small,
  .export-scope span,.export-readiness p
){font-size:13px!important;line-height:1.48!important}
.app-shell.workshop-mode :is(
  .work-chapter-head span,.work-outline-head span,.figure-library-head span,
  .figure-detail-label,.evidence-panel-title span,.citation-style-head span,
  .citation-style-samples span,.citation-own-rule>span,.format-preview-head span,
  .check-guide>span,.export-readiness>span,.eyebrow
){font-size:12px!important;font-weight:700!important;letter-spacing:.065em!important}
.app-shell.workshop-mode :is(
  .citation-style-preview,.citation-style-samples>div,.citation-preview,
  .citation-links div,#workCitationDetail,.work-check,.work-source-detail,
  .work-figure-detail,#workFigureDetail,#workChartDetail,#workDatasetDetail,
  #workInterviewDetail
){overflow-wrap:anywhere;word-break:normal}
.app-shell.workshop-mode .citation-style-samples{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.app-shell.workshop-mode .citation-style-samples strong,
.app-shell.workshop-mode .citation-preview strong,
.app-shell.workshop-mode .citation-links dd{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.app-shell.workshop-mode dialog{font-family:var(--work-ui-font);font-size:14px}
.app-shell.workshop-mode dialog :is(.hint,.field-explanation,small){font-size:13px;line-height:1.48}
.app-shell.workshop-mode dialog :is(label,input,select,textarea,button){font-size:14px;line-height:1.4}
.app-shell.workshop-mode .work-chart-dialog{max-width:min(940px,calc(100vw - 28px));overflow:hidden}
.app-shell.workshop-mode .work-chart-dialog form{scrollbar-gutter:stable;overscroll-behavior:contain}
@media(max-width:760px){
  .app-shell.workshop-mode .citation-style-samples{grid-template-columns:1fr}
}
@media(max-width:620px){
  .app-shell.workshop-mode .workshop-page{padding:20px 14px}
  .app-shell.workshop-mode .work-list,
  .app-shell.workshop-mode .work-module-grid{grid-template-columns:minmax(0,1fr)}
  .app-shell.workshop-mode .workshop-header{align-items:stretch;flex-direction:column}
  .app-shell.workshop-mode .workshop-header-actions{width:100%}
}
.work-backup-dialog{width:min(700px,calc(100vw - 28px))}
.work-backup-summary{display:grid;gap:4px;padding:13px 15px;border-left:4px solid #315d7d;border-radius:9px;background:#edf4f7}
.work-backup-complete-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.work-backup-complete,.work-backup-import{display:grid;gap:3px;padding:14px 16px;border-radius:10px;text-align:left}.work-backup-complete{background:#294966;color:#fff;text-decoration:none}.work-backup-complete span{font-size:13px;color:#d5e2ea}.work-backup-complete:hover{background:#203f5b}.work-backup-import{border:1px solid #b9cbd6;background:#f4f8fa;color:#294966;cursor:pointer}.work-backup-import span{font-size:13px;color:#607580}.work-backup-import:hover{background:#eaf2f6}@media(max-width:620px){.work-backup-complete-row{grid-template-columns:1fr}}
.work-backup-summary span{color:#607580;font-size:13px}
.work-backup-list{display:grid;gap:7px;max-height:340px;overflow-y:auto;padding-right:3px}
.work-backup-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid #d9e2e7;border-radius:9px;background:#fff}
.work-backup-list article div{display:grid;gap:3px;min-width:0}.work-backup-list article span{font-size:13px;color:#607580}
.work-backup-list article a{flex:none;border:1px solid #b9cbd6;border-radius:8px;padding:7px 10px;color:#294966;text-decoration:none;font-weight:700}
.work-backup-actions{display:flex;align-items:center;gap:7px;flex:none}.work-backup-actions button{border:0;background:transparent;color:#7d3c4e;padding:7px 8px;cursor:pointer;font-weight:700}.work-backup-actions button:hover{background:#f6eaed;border-radius:7px}
.work-backup-restore-dialog{width:min(590px,calc(100vw - 28px))}.work-backup-restore-dialog .danger{border:1px solid #a74c4c;border-radius:9px;background:#8e3535;color:#fff;padding:10px 14px;font-weight:700}.work-backup-restore-dialog .danger:disabled{opacity:.4;cursor:not-allowed}
.work-backup-empty{padding:25px;text-align:center;color:#607580}
.file-check-status{display:block;margin-top:8px;color:#526f7f;font-size:12px;font-weight:700}

/* Werkbank v163: abschliessender Lesbarkeitsrahmen fuer alle Bedienansichten.
   Die UI bleibt bei Windows-Skalierung pixelstabil und bricht um, bevor ein
   Herauszoomen noetig wird. A4-Seiten, Editorinhalt und Diagramme sind bewusst
   nicht Teil dieser Regeln. */
.app-shell.workshop-mode{
  --work-ui-font:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  font-family:var(--work-ui-font);
  font-size:15px;
  font-synthesis:none;
  font-optical-sizing:auto;
  text-rendering:auto;
  -webkit-font-smoothing:auto;
}
.app-shell.workshop-mode .topbar{background:#fff;backdrop-filter:none}

.citation-draft-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:10px;padding:12px;border:1px solid #cfdae2;border-radius:10px;background:#f7fafc}
.citation-draft-context>div{display:grid;gap:3px;align-content:center;min-width:0}
.citation-draft-context span,.citation-draft-context small{font-size:11px;line-height:1.45;color:#60798c}
.citation-draft-context>div>span:first-child{font-size:9px;font-weight:800;letter-spacing:.12em}
.citation-draft-context strong{overflow-wrap:anywhere}
.citation-draft-state{border-left:3px solid #91a9b9;padding-left:12px}.citation-draft-state.ready{border-color:#3b7a65}.citation-draft-state.warning{border-color:#bd7a22;background:#fff8ed;padding:9px 11px}
.citation-draft-state button{justify-self:start;margin-top:5px;border:1px solid #819aab;border-radius:7px;background:#fff;color:#294966;padding:7px 10px;font-weight:750;cursor:pointer}
@media(max-width:650px){.citation-draft-context{grid-template-columns:1fr}}
.source-detail-grid select{width:100%;min-width:0}
.work-source-search{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}
.work-source-search #workSourceTypeFilter{width:100%;font-size:12px;background:#fff}
.work-source-overview{display:flex;justify-content:space-between;gap:8px;padding:2px 3px 7px;color:#657781;font-size:11px;font-weight:700}
.work-source-overview .complete{color:#27684f}
.source-card-state{display:inline-flex!important;width:max-content;margin-top:6px;padding:3px 7px;border-radius:999px;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.02em}
.source-card-state.complete{background:#e5f1eb;color:#246348}
.source-card-state.warning{background:#fff0dc;color:#8a5718}
.work-source-reference-preview{display:grid;gap:5px;margin-top:17px;padding:13px 14px;border:1px solid #cddbe3;border-left:4px solid #50758e;border-radius:9px;background:#f7fafb}.work-source-reference-preview>span{font-size:10px;font-weight:800;letter-spacing:.07em;color:#617987}.work-source-reference-preview>strong{font-family:Georgia,"Times New Roman",serif;font-size:14px;line-height:1.55;color:#203743;overflow-wrap:anywhere}.work-source-reference-preview>small{font-size:12px;line-height:1.45;color:#617681}.work-source-reference-preview.warning{border-left-color:#b97823;background:#fffaf2}.work-source-reference-preview.warning>small{color:#81551b}
.evidence-card .evidence-actions{float:none;clear:both;display:flex;justify-content:flex-end;gap:6px;margin:14px 0 0;padding-top:10px;border-top:1px solid #e8edef}
.evidence-card .evidence-actions button{padding:7px 10px}
.evidence-card .evidence-actions [data-use-evidence]{margin-right:auto;background:#e6eef4;color:#234d6b;font-weight:800}
.evidence-card .evidence-actions .evidence-in-use{color:#315f7f;background:#edf3f6;font-weight:750}.evidence-card .evidence-actions .evidence-in-use:hover{background:#e2edf3}
@media(max-width:650px){.evidence-card .evidence-actions{display:grid;grid-template-columns:1fr 1fr}.evidence-card .evidence-actions [data-use-evidence]{grid-column:1/-1;margin:0;text-align:center}.evidence-card .evidence-actions button{border:1px solid #dce4e9}.evidence-trace{margin-top:12px}}
.app-shell.workshop-mode :is(
  .workshop-header,.work-dashboard-head,.work-module-grid,
  .work-main-toolbar,.module-purpose,.work-chapter-list,
  .work-outline-view,.work-sources-view,.work-evidence-view,
  .work-figures-view,.work-charts-view,.work-studies-view,
  .work-interviews-view,.work-citations-view,.work-format-view,
  .work-checks-view,.work-export-view,.work-abbreviations-view,
  dialog
){font-family:var(--work-ui-font);font-synthesis:none;text-rendering:auto}
.app-shell.workshop-mode :is(
  .work-module-grid small,.work-card small,.work-card p,
  .work-source-card small,.evidence-source-filter small,
  .evidence-explanation p,.evidence-card-meta,.evidence-note,
  .work-figure-item small,.chart-source,.interview-meta span,
  .transcript-actions span,.citation-list-item small,
  .citation-style-preview>p,.citation-style-warning,
  .citation-own-rule,.citation-links dt,.citation-links dd,
  .format-section label,.work-check p,.check-guide p,
  .check-guide li,.export-formats p,.export-formats small,
  .export-readiness p,.field-explanation,.hint
){font-size:13px!important;line-height:1.5!important}
.app-shell.workshop-mode :is(
  .work-outline-head span,.figure-library-head span,.figure-detail-label,
  .evidence-panel-title span,.evidence-list-head span,
  .citation-style-head span,.citation-style-samples span,
  .citation-own-rule>span,.format-preview-head span,
  .check-guide>span,.export-readiness>span,.eyebrow
){font-size:12px!important;font-weight:700!important;letter-spacing:.06em!important;line-height:1.35!important}
.app-shell.workshop-mode :is(button,input,select,textarea){font-family:var(--work-ui-font)}
.app-shell.workshop-mode :is(.citation-settings,.citation-style-preview,.citation-style-samples,.citation-links,.evidence-card,.work-source-file-box)>*{min-width:0}
.app-shell.workshop-mode :is(.citation-style-samples strong,.citation-preview strong,.citation-links dd,.evidence-card blockquote){overflow-wrap:anywhere;word-break:normal}

@media(max-width:1180px){
  .app-shell.workshop-mode .citation-settings{grid-template-columns:minmax(0,1fr)!important}
  .app-shell.workshop-mode .citation-settings>button{grid-column:1;justify-self:start}
  .app-shell.workshop-mode .citation-style-samples{grid-template-columns:minmax(0,1fr)}
  .app-shell.workshop-mode .work-citations-layout,
  .app-shell.workshop-mode .work-evidence-layout,
  .app-shell.workshop-mode .work-sources-layout{grid-template-columns:minmax(0,1fr)}
  .app-shell.workshop-mode :is(
    .work-citations-layout>aside,.work-citations-layout>article,
    .evidence-source-panel,.evidence-main,
    .work-source-list,.work-source-detail
  ){min-height:auto}
}

/* Werkbank v174: Dialoge liegen technisch ausserhalb der App-Huelle. Die
   bisherigen Werkbank-Regeln erreichten sie deshalb nicht verlaesslich. Dieser
   gemeinsame Rahmen verhindert winzige, synthetisch gerenderte Beschriftungen. */
body:has(.app-shell.workshop-mode) dialog{
  font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  font-size:14px;
  font-synthesis:none;
  text-rendering:auto;
  -webkit-font-smoothing:auto;
}
body:has(.app-shell.workshop-mode) dialog :is(label,input,select,textarea,button){font-family:inherit;font-size:14px;line-height:1.4}
body:has(.app-shell.workshop-mode) dialog :is(.hint,.field-explanation,small){font-size:13px!important;line-height:1.5!important}
body:has(.app-shell.workshop-mode) dialog :is(.eyebrow,.chart-design-head span,.chart-design-profiles>span,.dataset-quality-head span){font-size:12px!important;font-weight:700!important;letter-spacing:.06em!important;line-height:1.35!important}
body:has(.app-shell.workshop-mode) dialog :is(.chart-design-grid label,.chart-advanced-grid label,.chart-series-editor label>span,.chart-data-row label,.transcript-document-grid label){font-size:13px!important;line-height:1.4!important}
body:has(.app-shell.workshop-mode) dialog :is(.chart-design-grid output,.chart-advanced-grid output,.chart-design-profiles small,.chart-design-advice,.chart-draft-advice){font-size:12px!important;line-height:1.45!important}
.app-shell.workshop-mode :is(.citation-draft-context span,.citation-draft-context small,.work-source-overview,.source-card-state){font-size:12px!important;line-height:1.4!important}

/* Wissenswerk v179: gemeinsamer, pixelstabiler Rahmen fuer die Bedienoberflaeche
   aller drei Module. Inhaltliche Flaechen (PDF, Lerntext, Gesetzeswortlaut,
   Editor und A4-Vorschau) werden absichtlich nicht typografisch veraendert. */
.app-shell{
  --ui-font:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  font-family:var(--ui-font);
  font-synthesis:none;
  text-rendering:auto;
  -webkit-font-smoothing:auto;
}
.app-shell :is(button,input,select,textarea){font-family:var(--ui-font);font-synthesis:none;text-rendering:auto;-webkit-font-smoothing:auto}
.app-shell .topbar{background:#fff;backdrop-filter:none}
.app-shell :is(
  .sidebar,.topbar,.home-view,.library-page,.source-strip,.project-tabs,
  .structure-workspace,.learning-toolbar,.assistant-panel,
  .vocabulary-page,.downloads-page,.settings-page,
  .reference-page,.workshop-page
){text-rendering:auto;-webkit-font-smoothing:auto}
.app-shell :is(
  .home-quick-actions small,.module-link small,.project-item small,
  .source-strip span,.chapter-link small,.assistant-select span,
  .reference-column-head small,.reference-list-button small,
  .reference-section-label,.reference-kind,.status-pill
){font-size:12px!important;line-height:1.4!important;letter-spacing:0!important}
.app-shell :is(
  .home-quick-actions small,.project-item small,.source-strip span,
  .chapter-link small,.assistant-select span,.reference-column-head small,
  .reference-list-button small
){color:#566a62}
.sidebar :is(.module-link small,.project-item small){color:rgba(255,255,255,.78)}

/* Auch modale Eingaben aus Lernwerkstatt und Nachschlagwerk liegen ausserhalb
   der App-Huelle und erhalten deshalb denselben scharfen UI-Font explizit. */
body:has(.app-shell) dialog{font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-synthesis:none;text-rendering:auto;-webkit-font-smoothing:auto}
body:has(.app-shell) dialog :is(button,input,select,textarea){font-family:inherit;text-rendering:auto;-webkit-font-smoothing:auto}

.export-scope #exportScope{grid-template-columns:repeat(3,minmax(0,1fr))}
.export-manifest{margin-top:15px;padding:17px 18px;border:1px solid #d6e1e7;border-radius:12px;background:#fff}
.export-manifest>div>span,.export-manifest>div>strong{display:block}.export-manifest>div>span{font-size:12px;font-weight:750;letter-spacing:.06em;color:#607786}.export-manifest>div>strong{margin-top:3px;font-family:Georgia,serif;font-size:18px}
.export-manifest ol{display:grid;gap:5px;margin:13px 0;padding:0;list-style:none}.export-manifest li{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;background:#f5f8fa}.export-manifest li b{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#e2ebf0;color:#294966}.export-manifest li small{color:#667985;font-size:12px}
.export-generation-status{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#edf3f6;color:#526c7b;font-size:13px}.export-generation-status.busy{background:#fff1dc;color:#80551a}.export-generation-status.ready{background:#e5f1eb;color:#25634d}.export-generation-status.error{background:#f9e8e8;color:#8b3e48}.export-formats a[aria-disabled=true]{opacity:.58;pointer-events:none}
@media(max-width:760px){.export-scope #exportScope{grid-template-columns:1fr 1fr}.export-manifest li{grid-template-columns:27px minmax(0,1fr)}.export-manifest li small{grid-column:2}}

.work-journey{margin:14px 0;padding:17px 18px;border:1px solid #d4e0e7;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(36,68,93,.04)}
.work-journey-head{display:flex;align-items:end;justify-content:space-between;gap:15px}.work-journey-head>div span,.work-journey-head>div strong{display:block}.work-journey-head>div span,.work-next-step>div>span{font-size:11px;font-weight:750;letter-spacing:.07em;color:#607887}.work-journey-head>div strong{margin-top:3px;font:700 18px Georgia,serif}.work-journey-head label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#566f7e}.work-journey-head select{min-width:155px}
.work-journey-toggle-actions{display:flex!important;align-items:center;gap:8px}.work-journey-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #c7d5de;border-radius:8px;background:#f8fafb;color:#294966;padding:8px 10px;font-size:12px;font-weight:750;cursor:pointer}.work-journey-toggle b{font-size:15px;line-height:1}.work-journey-toggle:hover{background:#eef4f7}.work-journey.collapsed{margin:8px 0;padding:8px 11px;box-shadow:none}.work-journey.collapsed .work-journey-head{align-items:center}.work-journey.collapsed .work-journey-head>div:first-child{display:flex;align-items:center;gap:9px}.work-journey.collapsed .work-journey-head>div:first-child span{font-size:10px}.work-journey.collapsed .work-journey-head>div:first-child strong{margin:0;font:700 14px var(--work-ui-font,"Segoe UI",sans-serif)}.work-journey.collapsed :is(.work-project-profile,ol,.work-phase-suggestion,.work-health,.work-next-step,.work-journey-toggle-actions label){display:none!important}.work-journey.collapsed .work-journey-toggle{padding:5px 8px;border-color:transparent;background:transparent}.work-journey.collapsed .work-journey-toggle:hover{border-color:#c7d5de;background:#f3f7f9}@media(max-width:650px){.work-journey.collapsed .work-journey-toggle span{display:none}}
.work-journey ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:15px 0;padding:0;list-style:none}.work-journey li{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border:1px solid #dce4e8;border-radius:9px;color:#687a84;background:#f8fafb}.work-journey li i{flex:none;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e6ecef;font-style:normal;font-size:11px;font-weight:800}.work-journey li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.work-journey li.done{color:#2d6653;background:#edf5f1}.work-journey li.done i{background:#d8ebe2}.work-journey li.active{border-color:#6689a2;color:#244a66;background:#eaf1f5}.work-journey li.active i{background:#294966;color:#fff}
.work-next-step{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 13px;border-left:4px solid #315f80;border-radius:9px;background:#f0f5f8}.work-next-step strong,.work-next-step p{display:block}.work-next-step strong{margin-top:3px}.work-next-step p{margin:3px 0 0;color:#5f7380;font-size:12px}.work-next-step button{flex:none}
@media(max-width:850px){.work-journey ol{grid-template-columns:1fr}.work-journey li span{white-space:normal}.work-next-step,.work-journey-head{align-items:stretch;flex-direction:column}.work-next-step button{align-self:flex-start}}

.work-profile-fields{display:grid;gap:12px;margin:0;padding:14px;border:1px solid #d6e1e7;border-radius:10px;background:#f7fafb}.work-profile-fields legend{padding:0 7px;color:#294966;font-weight:800}.work-profile-fields textarea{width:100%;resize:vertical}
.work-project-profile{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(120px,.65fr) auto;gap:9px;margin:14px 0}.work-project-profile>div{min-width:0;padding:10px 11px;border:1px solid #dce4e8;border-radius:9px;background:#f8fafb}.work-project-profile span,.work-project-profile strong{display:block}.work-project-profile span{font-size:10px;font-weight:750;letter-spacing:.07em;color:#647b88}.work-project-profile strong{margin-top:4px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.work-project-profile button{align-self:stretch}
@media(max-width:1050px){.work-project-profile{grid-template-columns:1fr 1fr}.work-project-profile button{justify-self:start}}@media(max-width:650px){.work-project-profile{grid-template-columns:1fr}}

.work-project-profile .expose-sync-button{color:#6f3548;border-color:#d7bec6;background:#fbf5f7}.work-project-profile .expose-sync-button:hover{background:#f4e7eb}
.writing-goal-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 10px}.writing-goal-summary>div{padding:10px 11px;border:1px solid #dce4e8;border-radius:9px;background:#f7fafb}.writing-goal-summary span,.writing-goal-summary strong,.writing-goal-summary small{display:block}.writing-goal-summary span{font-size:9px;font-weight:800;letter-spacing:.06em;color:#667b88}.writing-goal-summary strong{margin-top:3px;font-size:12px;color:#294966}.writing-goal-summary small{margin-top:2px;color:#71838d;font-size:10px}.writing-goal-summary>div.reached{border-color:#bcd8cc;background:#edf6f2}.writing-goal-summary>div.reached strong{color:#28644e}.writing-goal-progress{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(90px,1fr) auto;align-items:center;gap:9px}.writing-goal-progress>div{height:6px;overflow:hidden;border-radius:999px;background:#e6ecef}.writing-goal-progress i{display:block;height:100%;border-radius:inherit;background:#5c8098}.writing-goal-progress span{font-size:11px;color:#637783;white-space:nowrap}.writing-goal.reached .writing-goal-progress i{background:#38745e}.writing-goal.reached .writing-goal-progress span{color:#2d6a52;font-weight:750}
@media(max-width:650px){.writing-goal-summary{grid-template-columns:1fr}.writing-goal-progress{grid-template-columns:1fr}.writing-goal-progress span{white-space:normal}}
.work-project-profile .work-deadline small{display:block;margin-top:3px;color:#657985;font-size:11px;line-height:1.35}.work-project-profile .work-deadline.soon{border-color:#e1cfac;background:#fff9ef}.work-project-profile .work-deadline.urgent{border-color:#dfb36d;background:#fff3df}.work-project-profile .work-deadline.overdue{border-color:#d8a2a7;background:#fbebed;color:#7d3440}.work-project-profile .work-deadline.done{border-color:#b9d8ca;background:#edf6f2;color:#28644e}
.work-phase-suggestion{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-3px 0 12px;padding:10px 12px;border:1px solid #cddce5;border-radius:9px;background:#f7fafc}.work-phase-suggestion div{display:grid;gap:2px}.work-phase-suggestion strong{font-size:13px;color:#294966}.work-phase-suggestion span{font-size:12px;color:#617784}.work-phase-suggestion button{flex:none}
.work-health{display:grid;width:100%;gap:3px;margin:0 0 12px;padding:11px 13px;border:1px solid #cad9e2;border-left:4px solid #5f8198;border-radius:9px;background:#f8fafb;color:#203d52;text-align:left;cursor:pointer}.work-health:hover{background:#f0f5f8}.work-health>span{font-size:10px;font-weight:800;letter-spacing:.07em;color:#667d8b}.work-health>strong{font-size:13px}.work-health>div{display:flex;align-items:center;gap:7px;margin-top:3px}.work-health b{padding:3px 7px;border-radius:999px;background:#e7eef2;font-size:11px}.work-health i{margin-left:auto;color:#294966;font-size:12px;font-style:normal;font-weight:800}.work-health.needs-work{border-left-color:#a54850;background:#fff7f7}.work-health.needs-work b:first-child{background:#f4dfe1;color:#8b3440}.work-health.review{border-left-color:#bd7a22;background:#fffaf2}.work-health.review b:nth-child(2){background:#ffebca;color:#815117}.work-health.ready{border-left-color:#34745d;background:#f3f9f6}
@media(max-width:650px){.work-phase-suggestion{align-items:stretch;flex-direction:column}.work-phase-suggestion button{align-self:flex-start}}
@media(max-width:650px){.work-health>div{align-items:flex-start;flex-wrap:wrap}.work-health i{width:100%;margin-left:0;margin-top:3px}}
.work-expose-sync-dialog{width:min(760px,calc(100vw - 28px))}.work-expose-sync-rows{display:grid;gap:8px}.work-expose-sync-rows>label{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px!important;padding:12px;border:1px solid #d9e2e7;border-radius:10px;background:#f8fafb;cursor:pointer}.work-expose-sync-rows>label>input{width:auto;margin-top:4px}.work-expose-sync-rows>label>span{display:grid;grid-template-columns:100px minmax(0,1fr);gap:4px 10px;min-width:0}.work-expose-sync-rows strong{grid-column:1/-1;color:#203d52}.work-expose-sync-rows small{color:#667985}.work-expose-sync-rows em,.work-expose-sync-rows b{min-width:0;font-style:normal;font-weight:600;overflow-wrap:anywhere}.work-expose-sync-rows i{grid-column:1/-1;width:max-content;margin-top:3px;padding:3px 7px;border-radius:999px;background:#e5f1eb;color:#28634e;font-size:11px;font-style:normal}.work-expose-sync-rows i.different{background:#fff0dc;color:#85561a}.work-expose-sync-rows>label.unavailable{opacity:.55;cursor:not-allowed}
@media(max-width:560px){.work-expose-sync-rows>label>span{grid-template-columns:1fr}.work-expose-sync-rows strong,.work-expose-sync-rows i{grid-column:1}}
.work-journey.collapsed .work-journey-head{align-items:center;flex-direction:row!important}.work-journey.collapsed .work-journey-toggle-actions{width:auto!important;margin-left:auto}
.app-shell.workshop-mode .citation-draft-context>div>span:first-child{font-size:12px!important;letter-spacing:.06em!important}
.app-shell.workshop-mode :is(.work-source-search #workSourceTypeFilter,.quiet-item-actions button,.evidence-actions button){font-size:13px!important}
.work-source-duplicate-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid #dfc38c;border-left:4px solid #b97a24;border-radius:9px;background:#fff8ec}.work-source-duplicate-hint>div{display:grid;gap:3px}.work-source-duplicate-hint span{font-size:12px;color:#765624}.work-source-duplicate-hint>div:last-child{display:flex;align-items:center;gap:7px;flex:none}.work-source-duplicate-hint .quiet{border:0;background:transparent;color:#6f552d;padding:7px;font-size:12px;font-weight:700;cursor:pointer}@media(max-width:700px){.work-source-duplicate-hint{align-items:stretch;flex-direction:column}.work-source-duplicate-hint>div:last-child{align-items:stretch;flex-direction:column}}
.work-source-merge-note{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:12px 13px;border:1px solid #dfc38c;border-left:4px solid #b97a24;border-radius:9px;background:#fff8ec}.work-source-merge-note>div{display:grid;gap:3px}.work-source-merge-note span{font-size:12px;color:#765624}.work-source-merge-note button{flex:none}@media(max-width:700px){.work-source-merge-note{align-items:stretch;flex-direction:column}.work-source-merge-note button{align-self:flex-start}}

.whole-work-preview .work-preview-page{height:297mm;min-height:297mm;max-height:297mm;overflow:hidden;padding:var(--preview-top,25mm) var(--preview-right,25mm) var(--preview-bottom,25mm) var(--preview-left,30mm);font-family:var(--preview-font,Georgia),serif;font-size:var(--preview-font-size,12pt);line-height:var(--preview-line-height,1.5);text-align:var(--preview-align,justify)}
.whole-work-preview .work-preview-page :is(h1,h2,h3,h4,h5,h6){font-family:var(--preview-font,Georgia),serif}
.whole-work-preview .work-preview-page.title-page{text-align:center}
.whole-work-preview .preview-page-number{position:absolute;left:50%;bottom:10mm;transform:translateX(-50%);font:10pt var(--preview-font,Georgia),serif;color:#4d585d}
.whole-work-preview .work-preview-page.has-preview-footnotes{padding-bottom:max(var(--preview-bottom,25mm),38mm)}
.whole-work-preview .preview-footnotes{position:absolute;left:var(--preview-left,30mm);right:var(--preview-right,25mm);bottom:17mm;border-top:1px solid #26343a;padding-top:5px;background:#fff;color:#17272f;text-align:left;font-family:var(--preview-font,Georgia),serif;font-size:var(--preview-footnote-size,9pt);line-height:1.25}
.whole-work-preview .preview-footnotes ol{display:grid;gap:3px;margin:0;padding:0;list-style:none}.whole-work-preview .preview-footnotes li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:5px;align-items:start}.whole-work-preview .preview-footnotes li>span{font-size:.78em;vertical-align:super}.whole-work-preview .preview-footnotes p{margin:0;overflow-wrap:anywhere}
.component-page-preview>h2,.whole-work-preview .work-preview-page:not(.main-preview):not(.title-page)>h2{font-size:var(--component-heading-size,20pt);text-align:var(--component-heading-align,left);margin-bottom:28px}
.component-page-preview .preview-abbreviations,.whole-work-preview .preview-abbreviations{text-align:left;width:100%;margin-inline:0}
.preview-abbreviation-row{grid-template-columns:var(--abbreviation-key-width,28%) minmax(0,1fr)}
[data-component-density="compact"] :is(.preview-abbreviation-row,.preview-toc>div,.preview-bibliography-row,.preview-register>p,.preview-table-directory-row){padding-block:1px;margin-block:0}
[data-component-density="standard"] :is(.preview-abbreviation-row,.preview-toc>div,.preview-bibliography-row,.preview-register>p,.preview-table-directory-row){padding-block:5px;margin-block:0}
[data-component-density="airy"] :is(.preview-abbreviation-row,.preview-toc>div,.preview-bibliography-row,.preview-register>p,.preview-table-directory-row){padding-block:10px;margin-block:2px}
[data-component-density="compact"] .preview-toc{gap:3px}[data-component-density="standard"] .preview-toc{gap:7px}[data-component-density="airy"] .preview-toc{gap:12px}
.component-design-options{display:grid;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #d9e2e7}.component-design-options .eyebrow{margin-bottom:-4px}.component-design-options label{margin:0}
.title-page h1{font-size:var(--title-heading-size,28pt)!important}.title-page .title-page-content{width:100%}
.whole-work-preview [data-preview-chapter-id]>h2,.whole-work-preview [data-preview-chapter-id]>h3,.whole-work-preview [data-preview-chapter-id]>h4{cursor:pointer}.preview-flow-controls{display:none;align-items:center;gap:6px;margin:-8px 0 12px;padding:7px 9px;border:1px solid #ccd9e0;border-radius:8px;background:#f7fafb;font:12px "Segoe UI",sans-serif;text-align:left}.preview-flow-controls.open{display:flex}.preview-flow-controls span{margin-right:auto;color:#566a75}.preview-flow-controls button{border:1px solid #bdccd5;border-radius:6px;background:#fff;padding:5px 8px;color:#244c6b;font:600 12px "Segoe UI",sans-serif;cursor:pointer}.preview-flow-controls button:hover{background:#eaf2f7}
@media print{.preview-flow-controls{display:none!important}}
.whole-work-preview .directory-page{display:block;text-align:left;color:#17272f}.whole-work-preview .directory-page>h2{margin:0 0 28px}.whole-work-preview .directory-page>h2.continuation-anchor{display:none}.whole-work-preview .directory-page :is(.preview-register,.preview-table-directory,.preview-abbreviations,.preview-bibliography,.preview-toc){margin-top:0}.whole-work-preview .directory-page .preview-register p{display:grid;grid-template-columns:max-content minmax(0,1fr) minmax(28px,1fr) minmax(145px,31%);align-items:start;gap:7px;padding:6px 0}.whole-work-preview .directory-page .preview-register p>strong{font-weight:700;white-space:nowrap}.whole-work-preview .directory-page .preview-register p>i{margin-top:.9em;transform:none}.whole-work-preview .directory-page .preview-register p small{max-width:none;text-align:left;color:#5e707a}.whole-work-preview .directory-page .preview-register p small b{font-size:.88em;color:#87949b}
.preview-flow-help{display:flex;align-items:center;gap:11px;max-width:920px;margin:14px auto 4px;padding:10px 14px;border:1px solid #cbd9e2;border-radius:10px;background:#f4f8fa;color:#405865;font:13px/1.45 "Segoe UI",sans-serif}.preview-flow-help>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#dfeaf0;color:#285574;font-size:17px}.preview-flow-help p{margin:0}.preview-flow-help strong{color:#244d6b}
.whole-work-preview .paginated-preview-page{position:relative}.whole-work-preview .paginated-preview-page .preview-part-label{margin-bottom:16px}
.whole-work-preview .paginated-preview-page section{break-inside:auto;margin-bottom:20px}.whole-work-preview .paginated-preview-page section>h2,.whole-work-preview .paginated-preview-page section>h3,.whole-work-preview .paginated-preview-page section>h4,.whole-work-preview .paginated-preview-page section>h5,.whole-work-preview .paginated-preview-page section>h6{break-after:avoid;page-break-after:avoid;margin-top:20px}.whole-work-preview .paginated-preview-page section:first-of-type>h2,.whole-work-preview .paginated-preview-page section:first-of-type>h3{margin-top:0}.whole-work-preview .chapter-continuation{margin-top:0}
.whole-work-preview .paginated-preview-page section.structural-heading{margin-bottom:0}.whole-work-preview .paginated-preview-page section.structural-heading+.structural-heading>h3,.whole-work-preview .paginated-preview-page section.structural-heading+section>h3,.whole-work-preview .paginated-preview-page section.structural-heading+section>h4{margin-top:10px}
.whole-work-preview .placeholder-page{display:block;place-items:initial;text-align:left;color:#17272f}.whole-work-preview .placeholder-page>div{max-width:none}.whole-work-preview .placeholder-page h2{margin:0 0 18px}.whole-work-preview .placeholder-page .component-prose{max-width:none;color:#17272f;text-align:var(--preview-align,left)}
.whole-work-preview .preview-inline-material{border-top:0;border-bottom:0;margin:10px auto 14px;padding:0}.whole-work-preview .preview-inline-material img{margin-bottom:7px}
.whole-work-preview .preview-inline-chart{box-sizing:border-box;padding-bottom:10px;overflow:visible}.whole-work-preview .preview-inline-chart svg{display:block;max-width:100%;height:auto}
.figure-crop-panel{display:grid;gap:14px;margin-top:18px;padding:16px;border:1px solid #ccd9e0;border-radius:12px;background:#f7fafb}.figure-crop-heading{display:grid;gap:3px}.figure-crop-heading span{font-size:12px;line-height:1.45;color:#637680}.figure-crop-workspace{display:grid;grid-template-columns:minmax(300px,1.35fr) minmax(260px,.65fr);align-items:start;gap:18px}.figure-crop-preview{position:sticky;top:84px;display:grid;gap:7px;min-width:0}.figure-crop-preview small{color:#637680;text-align:center}.figure-crop-stage{position:relative;display:grid;place-items:center;max-height:68vh;overflow:hidden;border-radius:9px;background:#dfe7eb;box-shadow:inset 0 0 0 1px #c5d3da}.figure-crop-stage img{display:block;max-width:100%;max-height:68vh;width:auto;height:auto;object-fit:contain;border-radius:0;box-shadow:none}.figure-crop-stage i{position:absolute;z-index:2;display:block;background:rgba(20,33,42,.58);pointer-events:none}.figure-crop-stage [data-crop-shade="top"]{inset:0 0 auto}.figure-crop-stage [data-crop-shade="bottom"]{inset:auto 0 0}.figure-crop-stage [data-crop-shade="left"]{left:0}.figure-crop-stage [data-crop-shade="right"]{right:0}.figure-crop-stage [data-crop-selection]{position:absolute;z-index:3;border:2px solid #2b78a0;box-shadow:0 0 0 1px rgba(255,255,255,.9);pointer-events:none}.figure-crop-editor{display:grid;gap:14px;padding:14px;border:1px solid #d5e0e5;border-radius:9px;background:#fff}.figure-crop-controls{display:grid;grid-template-columns:1fr;gap:12px}.figure-crop-controls label{display:grid;grid-template-columns:52px minmax(0,1fr) 50px;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:700}.figure-crop-controls input{width:100%}.figure-crop-controls output{text-align:right;color:#536b78;font-weight:600}.figure-crop-values{padding:9px;border-radius:7px;background:#edf4f7;color:#365568;font-size:12px;line-height:1.4}.figure-crop-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}@media(max-width:850px){.figure-crop-workspace{grid-template-columns:1fr}.figure-crop-preview{position:sticky;top:70px;z-index:4;padding:8px;background:#f7fafb}.figure-crop-stage,.figure-crop-stage img{max-height:52vh}}@media(max-width:650px){.figure-crop-controls{grid-template-columns:1fr}}
.heading-format-details{padding:0!important}.heading-format-details summary{display:grid;grid-template-columns:1fr auto;gap:3px 16px;padding:18px 20px;cursor:pointer;list-style:none}.heading-format-details summary::-webkit-details-marker{display:none}.heading-format-details summary span{grid-column:1;font-size:10px;font-weight:800;letter-spacing:.12em;color:#a76112}.heading-format-details summary strong{grid-column:1;font-size:16px}.heading-format-details summary small{grid-column:1;color:#647783}.heading-format-details summary:after{content:'⌄';grid-column:2;grid-row:1/4;align-self:center;font-size:20px;color:#375c75}.heading-format-details[open] summary:after{transform:rotate(180deg)}.heading-format-help{margin:0 20px 12px;padding:10px 12px;border-radius:8px;background:#edf4f7;color:#526b79;font-size:12px}.heading-format-grid{display:grid;grid-template-columns:64px 110px 110px minmax(120px,1fr) minmax(130px,1fr);gap:8px 12px;align-items:center;padding:0 20px 20px}.heading-format-grid>b{font-size:11px;color:#60737e}.heading-format-grid>span{font-weight:800}.heading-format-grid label{margin:0}.heading-format-grid label:not(.compact-check){display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px}.heading-format-grid label i{font-style:normal;color:#71818a}.heading-format-grid .compact-check{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.heading-format-grid .compact-check input{width:auto}@media(max-width:760px){.heading-format-grid{grid-template-columns:60px 1fr 1fr}.heading-format-grid>b:nth-child(n+4){display:none}.heading-format-grid .compact-check{grid-column:2/4}}
.whole-work-preview .preview-page-overflow{outline:2px solid #c48332}.whole-work-preview .preview-page-overflow:after{content:'Ein einzelner Inhalt ist höher als eine A4-Seite. Prüfe seine Größe.';position:absolute;left:12px;right:12px;bottom:8px;padding:6px;background:#fff2df;color:#7b5118;text-align:center;font:12px "Segoe UI",sans-serif}
@media(max-width:900px){.whole-work-preview .work-preview-page{height:calc((100vw - 40px) * 1.414);min-height:calc((100vw - 40px) * 1.414);max-height:calc((100vw - 40px) * 1.414);padding:clamp(24px,8vw,var(--preview-top,25mm)) clamp(20px,7vw,var(--preview-right,25mm))}}

/* Wissenswerk v208: Alle Werkbank-Module bilden unabhaengig von der Textmenge
   gleich grosse, ruhige Schaltflaechen. */
.work-module-grid{grid-auto-rows:150px;align-items:stretch}
.work-module-grid>button{width:100%;height:150px;min-height:150px;align-content:start}
@media(max-width:620px){.work-module-grid{grid-auto-rows:142px}.work-module-grid>button{height:142px;min-height:142px}}

/* Die A4-Schreibbreite prueft nur Nutzbreite und Zeilenumbrueche. Seitenenden
   sind erst nach dem Zusammenfuegen aller Kapitel verlaesslich. */
body.work-main-editing .work-writing-area.a4-editor-mode .work-editor-surface{background-image:none!important}
.work-editor-view-switch small{display:block;max-width:290px;margin:4px 0 0;color:#607580;font-size:10px;line-height:1.3;white-space:normal}

/* Wissenswerk v210: Zusatzinformationen und Aktionen einer Fundstelle gehoeren
   vollstaendig in die breite Inhaltsspalte und duerfen nicht in die Nummernspalte
   des Kartenrasters umbrechen. */
.evidence-card>.evidence-trace,
.evidence-card>.evidence-actions,
.evidence-card>.quiet-item-actions{grid-column:2/-1;min-width:0;width:100%;box-sizing:border-box}
.evidence-card>.evidence-trace{margin-top:0}
.evidence-card>.evidence-actions{align-items:center;flex-wrap:wrap}
.evidence-card>.evidence-actions [data-use-evidence]{margin-right:auto}
.evidence-card>.evidence-actions button{white-space:nowrap}
@media(max-width:650px){
  .evidence-card{grid-template-columns:1fr}
  .evidence-card>.evidence-card-number,.evidence-card>div,.evidence-card>.evidence-trace,.evidence-card>.evidence-actions,.evidence-card>.quiet-item-actions{grid-column:1}
}

/* Wissenswerk v211: Ein erzwungener Seitenwechsel ist im Editor sichtbar,
   wird in Vorschau und Export jedoch als echter Umbruch umgesetzt. */
.work-editor-surface [data-work-page-break]{position:relative;clear:both;height:30px;margin:18px 0;background:linear-gradient(to bottom,transparent 14px,#9aa8b0 14px,#9aa8b0 15px,transparent 15px);cursor:default;user-select:all}
.work-editor-surface [data-work-page-break]:after{content:'Manueller Seitenumbruch';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:2px 9px;background:#fff;color:#647782;font:700 10px "Segoe UI",sans-serif;letter-spacing:.04em;white-space:nowrap}
.work-page-break-button{white-space:nowrap}
.work-insert-dialog .insert-choice-explanation{display:block;margin:-3px 0 9px;color:#647985;font-size:11px;line-height:1.45}

/* Fundstellen im Einfügen-Dialog: inhaltlich statt als anonyme graue Knöpfe. */
.work-insert-dialog .citation-place-section{padding:1rem!important;background:#fbfcfd}
.citation-place-list{display:grid;gap:.65rem;max-height:360px;overflow-y:auto;padding:.1rem .25rem .15rem 0;scrollbar-gutter:stable}
.citation-place-card{border:1px solid #d5e0e6;border-radius:11px;background:#fff;padding:.8rem .85rem;box-shadow:0 2px 8px rgba(24,55,75,.035)}
.citation-place-card-head{display:flex;align-items:flex-start;gap:.65rem}.citation-place-card-head>span{display:grid;place-items:center;min-width:34px;height:30px;border-radius:7px;background:#e6eff4;color:#244d6b;font-weight:850;font-size:.78rem}.citation-place-card-head div{display:grid;gap:.12rem;min-width:0}.citation-place-card-head strong{font-size:.9rem;line-height:1.25}.citation-place-card-head small{color:#60727e;font-size:.76rem}
.citation-place-excerpt{margin:.65rem 0!important;padding:.6rem .7rem;border-left:2px solid #9eb8c8;background:#f7f9fa;color:#263940!important;font-family:Georgia,serif;font-size:.84rem!important;line-height:1.5}.citation-place-excerpt.empty{font-family:inherit;font-style:italic;color:#78868d!important}
.citation-place-actions{display:flex;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.citation-place-actions button{min-height:34px!important;width:auto!important;margin:0!important;padding:.42rem .7rem!important;border-radius:7px!important;font-size:.76rem!important}
.evidence-quote-preview-dialog form{width:min(700px,calc(100vw - 2rem));max-height:min(760px,88vh);overflow:auto}.evidence-quote-preview-dialog h2{margin:.35rem 0 .55rem}.evidence-quote-preview-dialog #evidenceQuotePreviewMeta{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:1rem}.evidence-quote-preview-dialog #evidenceQuotePreviewMeta span{padding:.3rem .55rem;border-radius:999px;background:#edf3f6;color:#49616e;font-size:.76rem}.evidence-quote-preview-dialog blockquote{max-height:52vh;overflow:auto;margin:0;padding:1rem 1.1rem;border:1px solid #d9e2e7;border-left:3px solid #6e95ad;border-radius:8px;background:#fbfcfc;white-space:pre-wrap;font-family:Georgia,serif;font-size:1rem;line-height:1.65;color:#1f2c31}
@media(max-width:620px){.citation-place-actions{display:grid;grid-template-columns:1fr}.citation-place-actions button{width:100%!important}}

/* Schmale eingefügte Elemente bleiben vollständig bedienbar. */
.work-inline-material .work-material-controls{box-sizing:border-box;max-width:100%;flex-wrap:wrap;align-content:flex-start;overflow:hidden;row-gap:.35rem}
.work-inline-material .work-material-controls span{white-space:nowrap}.work-inline-material[data-work-size="33"] .work-material-controls,.work-inline-material[data-work-size="50"] .work-material-controls{padding:.4rem;gap:.28rem}.work-inline-material[data-work-size="33"] .work-material-controls>span,.work-inline-material[data-work-size="50"] .work-material-controls>span{flex-basis:100%;margin:2px 0 0!important;color:#6b7c86;font-size:9px;letter-spacing:.04em}.work-inline-material[data-work-size="33"] .work-material-controls select,.work-inline-material[data-work-size="50"] .work-material-controls select{max-width:100%;min-width:0}
.work-editor-surface [data-material-spacer].material-side-writing{box-sizing:border-box;clear:none!important;min-height:180px!important;outline:1px dashed #c6d4dc!important;background:#fbfcfd!important;color:#1e292e;cursor:text}
.work-editor-surface [data-material-spacer].material-side-writing:has(>br:only-child)::before,.work-editor-surface [data-material-spacer].material-side-writing:empty::before{content:'Hier klicken und neben dem Element schreiben …';display:inline;color:#82939d;font:12px/1.4 "Segoe UI",sans-serif;pointer-events:none}
.work-editor-surface .work-inline-material.wrap-left+ [data-material-spacer].material-side-writing{margin-left:calc(var(--side-media-width,0px) + 0px)}
.preview-inline-material.wrap-left,.preview-inline-material.wrap-right{max-width:100%;padding:.65rem 0}.preview-inline-material .professional-chart-svg text{font-size:12px}.preview-inline-material[style*="width:33"] .professional-chart-svg text,.preview-inline-material[style*="width: 33"] .professional-chart-svg text{font-size:14px}
.work-chart-toolbar-actions{display:flex;align-items:center;gap:10px}
.work-table-studio{margin-top:18px;padding:22px;border:1px solid #cfdbe3;border-radius:14px;background:#fff}
.work-table-studio-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.work-table-studio-head span{display:block;color:#557084;font-size:11px;font-weight:800;letter-spacing:.09em}
.work-table-studio-head h3{margin:3px 0 0;font-family:Georgia,serif;font-size:24px}
.work-table-studio>p{margin:7px 0 16px;color:#536977}
.work-table-studio-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px}
.work-table-studio-list>button{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;text-align:left;padding:14px;border:1px solid #d6e0e6;border-radius:11px;background:#f8fafb;color:#102d44}
.work-table-studio-list>button:hover{border-color:#7795aa;background:#eef4f7}
.work-table-studio-list>button span{grid-row:1/3;padding:4px 7px;border-radius:7px;background:#e4eef4;font-size:11px;font-weight:800}
.work-table-studio-list>button strong{font-size:15px}.work-table-studio-list>button small{color:#617684}
.work-studio-table-dialog form{width:min(700px,calc(100vw - 36px))}
@media(max-width:760px){.work-chart-toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.work-table-studio-head{align-items:flex-start;flex-direction:column}}
.native-figure-input-fallback{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.program-image-picker{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-height:42px;margin:8px 0 5px;padding:0 17px;background:#fff}
.recent-image-picker{display:inline-flex;margin-left:8px;color:#46647a;font-size:12px}
.external-browser-upload{display:inline-flex;margin:8px 0 5px 8px;background:#244e70;color:#fff}.embedded-upload-note{display:block!important;margin:4px 0 6px;color:#536d7f!important;font-size:12px}.figure-file-drop .recent-image-picker{margin-left:0}
.image-browser-dialog{width:min(1000px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}.image-browser-head{display:flex;justify-content:space-between}.image-browser-head h2{margin:4px 0 12px}.image-browser-roots{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.image-browser-roots button{padding:8px 12px;border:1px solid #cfdae2;border-radius:8px;background:#f7fafb}.image-browser-path{display:flex;align-items:center;gap:12px;margin-bottom:12px}.image-browser-path span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#607582}.image-browser-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;max-height:58vh;overflow:auto;padding:3px}.image-browser-grid>button{min-width:0;border:1px solid #d4dfe6;border-radius:10px;background:#fff;padding:9px;text-align:left}.image-browser-folder{display:flex;align-items:center;gap:8px;min-height:58px}.image-browser-folder span{font-size:24px}.image-browser-image{display:grid;gap:5px}.image-browser-image img{width:100%;height:105px;object-fit:contain;background:#eef2f4;border-radius:6px}.image-browser-image strong,.image-browser-image small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-browser-image small{color:#607582}
.image-browser-roots button.drive{background:#eaf1f5;font-weight:750}.image-browser-address{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px}.image-browser-address input{min-width:0}

/* Dateiauswahl als ruhige zweispaltige Liste statt enger Kachelwand. */
.image-browser-dialog{width:min(1080px,calc(100vw - 28px));overflow:hidden}.image-browser-dialog form{box-sizing:border-box;display:flex;flex-direction:column;height:calc(100vh - 56px);max-height:840px;overflow:hidden}.image-browser-head,.image-browser-roots,.image-browser-address,.image-browser-path,.image-browser-dialog .dialog-actions{flex:0 0 auto}.image-browser-roots{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}.image-browser-grid{min-height:0;max-height:none;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding:6px 8px 12px}.file-browser-summary,.file-browser-section-title,.file-browser-empty,.file-browser-loading{grid-column:1/-1}.file-browser-summary{position:sticky;top:-6px;z-index:3;display:flex;justify-content:space-between;gap:16px;padding:9px 11px;border-bottom:1px solid #d8e2e8;background:#f5f8fa;color:#5e7482;font-size:11px}.file-browser-summary strong{color:#294966}.file-browser-section-title{padding:10px 3px 3px;color:#597184;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.image-browser-grid>button{box-sizing:border-box;width:100%;min-height:66px;padding:8px 10px;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;align-content:center;align-items:center}.image-browser-grid>button:hover{border-color:#8eabba;background:#f4f8fa}.image-browser-folder span,.image-browser-image img,.dataset-browser-file>span{grid-column:1;grid-row:1/3}.image-browser-folder span{width:48px;height:46px;display:grid;place-items:center;border-radius:8px;background:#edf3f6;font-size:25px}.image-browser-grid>button strong{grid-column:2;grid-row:1;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.3}.image-browser-grid>button small{grid-column:2;grid-row:2;min-width:0;margin-top:3px;color:#667b87;overflow:visible;text-overflow:clip;white-space:normal}.image-browser-image{gap:0}.image-browser-image img{box-sizing:border-box;width:52px;height:52px;object-fit:contain;border:1px solid #dce4e8;border-radius:7px;background:#fff}.dataset-browser-file{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:0 11px!important}.dataset-browser-file>span{box-sizing:border-box;width:50px!important;height:40px!important;padding:0 3px;text-align:center}.image-browser-dialog .dialog-actions{margin-top:0;padding-top:12px;border-top:1px solid #dce4e8;background:#fff}.file-browser-empty{padding:34px;text-align:center;color:#667985}.image-browser-path span{direction:rtl;text-align:left}
@media(max-width:720px){.image-browser-grid{grid-template-columns:1fr}.image-browser-dialog{width:calc(100vw - 16px)}.image-browser-roots{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.file-browser-summary{position:static}}

/* Studienauswertung mit klaren Begriffen und nachvollziehbaren Folgeaktionen. */
.dataset-chart-dialog form{width:min(760px,calc(100vw - 28px));display:grid;gap:13px}.dataset-chart-fields{grid-template-columns:1fr 1fr}.dataset-chart-fields label:last-child{grid-column:1/-1}.dataset-chart-fields small{display:block;margin-top:5px;color:#657985;font-weight:400;line-height:1.45}.dataset-chart-next-note{display:grid;gap:3px;padding:11px 13px;border:1px solid #cfdee6;border-radius:9px;background:#f4f8fa;color:#526b79;font-size:12px}.dataset-chart-next-note strong{color:#294f69}.dataset-delete-choice{width:min(690px,calc(100vw - 28px))}.dataset-dependent-list{display:grid;gap:7px;max-height:260px;overflow-y:auto}.dataset-dependent-list button{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 11px;padding:10px 12px;border:1px solid #d5e0e6;border-radius:9px;background:#fff;text-align:left}.dataset-dependent-list span{grid-row:1/3;color:#587185;font-size:11px;font-weight:800}.dataset-dependent-list small{color:#607783}.quiet-warning{padding:11px 13px;border-radius:9px;background:#fff1e8;color:#78472f;line-height:1.45}.danger-button{border:1px solid #a54e4e!important;background:#8e3f47!important;color:#fff!important}

/* Säulen erhalten denselben wissenschaftlichen Bezugsrahmen wie Linien und
   Flächen. Border-box verhindert zugleich das Abschneiden der letzten Säule. */
.bar-preview{box-sizing:border-box;position:relative;max-width:100%;overflow:hidden;background-image:repeating-linear-gradient(to top,transparent 0,transparent 54px,#dce4e8 55px,#dce4e8 56px);border-left:2px solid #8299a9}.bar-preview>div{position:relative;z-index:1;min-width:0}.bar-preview small{display:block;box-sizing:border-box;width:100%;max-width:100%;padding-inline:2px;overflow:hidden;overflow-wrap:normal;word-break:normal;white-space:nowrap;text-overflow:ellipsis}.chart-live-panel .bar-preview{width:100%;padding-left:24px;padding-right:24px}.chart-live-panel .chart-draft-preview{overflow:hidden!important}.chart-preview .bar-preview{width:100%}
@media(max-width:680px){.dataset-chart-fields{grid-template-columns:1fr}.dataset-chart-fields label:last-child{grid-column:auto}.dataset-delete-choice .dialog-actions{align-items:stretch}.dataset-delete-choice .dialog-actions button{white-space:normal}}

/* Die globalen Werkbankaktionen sitzen optisch auf der Höhe des Inhalts,
   nicht unmittelbar unter dem oberen Fensterrand. */
.app-shell.workshop-mode .workshop-header-actions{align-self:flex-end;transform:translateY(12px)}
.app-shell.workshop-mode .workshop-header-actions.has-open-work{min-width:177px}
@media(max-width:760px){.app-shell.workshop-mode .workshop-header-actions{align-self:stretch;transform:none}}

/* Gemeinsame wissenschaftliche Diagrammgrundlage. */
.scientific-cartesian{box-sizing:border-box;width:100%;height:auto;min-width:0;min-height:0;overflow:hidden}.scientific-cartesian .professional-chart-svg{display:block;width:100%;height:auto;max-width:100%;max-height:none;overflow:visible}.scientific-cartesian .chart-axis{stroke:var(--chart-axis);stroke-width:1.7}.scientific-cartesian .grid{stroke:var(--chart-grid);stroke-width:1}.scientific-cartesian .hidden-grid{stroke:transparent}.scientific-cartesian .chart-axis-tick{font-size:10px;text-anchor:end;fill:#657781}.scientific-cartesian .chart-x-label{font-size:10px;text-anchor:middle;fill:#435760}.scientific-cartesian .chart-column{shape-rendering:geometricPrecision}.scientific-cartesian .chart-line{stroke-linecap:round;stroke-linejoin:round}.scientific-cartesian .chart-scatter-connection{stroke-dasharray:4 4;stroke-linecap:round}.scientific-cartesian .chart-axis-title{font-size:10px;font-weight:700;fill:#526c7b}.scientific-cartesian .chart-axis-title-x{text-anchor:end}.scientific-cartesian .chart-axis-title-y{text-anchor:start}
.scientific-cartesian .chart-bar-label{font-size:10px;text-anchor:end;fill:#435760}.scientific-cartesian .chart-bar-value{text-anchor:start}
dialog input[type="file"]:not([hidden]):not(.native-figure-input-fallback):not(.native-dataset-input-fallback){box-sizing:border-box;width:100%;padding:7px;border:1px solid #cdd9e0;border-radius:9px;background:#f7fafb;color:#5e7380;font-size:11px}dialog input[type="file"]::file-selector-button{margin-right:10px;padding:8px 11px;border:1px solid #bdcdd7;border-radius:7px;background:#fff;color:#294966;font-weight:750;cursor:pointer}
.figure-file-drop:has(.program-image-picker){cursor:default}
.figure-path-fallback{margin:-2px 0 10px;border:1px solid #d5e0e6;border-radius:9px;background:#f8fafb;padding:10px 12px}.figure-path-fallback summary{cursor:pointer;color:#31536d;font-size:12px;font-weight:750}.figure-path-fallback p{margin:9px 0 7px;color:#607582;font-size:12px}.figure-path-fallback div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.figure-path-fallback input{min-width:0}.figure-path-fallback button{white-space:nowrap}@media(max-width:620px){.figure-path-fallback div{grid-template-columns:1fr}}
.work-figure-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}.work-figure-dialog form{padding-bottom:0}.work-figure-dialog .dialog-actions{position:sticky;bottom:0;z-index:2;margin:8px -2px 0;padding:12px 2px 2px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 12px)}
.local-image-library-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}.local-image-library-head{display:flex;justify-content:space-between;gap:18px}.local-image-library-head h2{margin:5px 0}.local-image-library-head p{margin:0 0 14px;color:#607582}.local-image-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:55vh;overflow:auto;padding:2px}.local-image-library-list>button{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;text-align:left;padding:12px;border:1px solid #d5e0e6;border-radius:9px;background:#fff;color:#173b57}.local-image-library-list>button:hover{border-color:#315f87;background:#edf4f8}.local-image-icon{grid-row:1/3;font-size:22px}.local-image-library-list strong,.local-image-library-list small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-image-library-list small{color:#657986}.local-image-loading{color:#657986}@media(max-width:620px){.local-image-library-list{grid-template-columns:1fr}}
.work-quick-citation-dialog form{width:min(620px,calc(100vw - 36px))}.quick-citation-place{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:14px 0 18px;padding:14px;border-radius:10px;background:#edf3f7}.quick-citation-place span{grid-row:1/3;font-weight:800;color:#244b68}.quick-citation-place small{color:#5c7180}.quick-citation-types{display:grid;gap:9px;margin:0 0 15px;padding:0;border:0}.quick-citation-types legend{margin-bottom:9px;font-weight:800}.quick-citation-types label{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #d5dfe5;border-radius:10px;background:#fff}.quick-citation-types label:has(input:checked){border-color:#315f7f;background:#eff5f8}.quick-citation-types label span{display:grid;gap:3px}.quick-citation-types label small{color:#607582}

/* v239: Bildbreite und Ausrichtung entsprechen im Editor und in der Druckansicht
   wirklich den gewählten Dritteln. Bildunterschriften bleiben bewusst leise. */
.work-inline-material,.preview-inline-material{max-width:none}
.work-inline-material figcaption,.work-inline-caption{gap:2px;margin-top:7px;color:#52636d;font:400 12px/1.4 "Segoe UI",sans-serif}
.work-inline-material figcaption strong,.work-inline-caption strong{font-weight:600;color:#435763}
.work-inline-material figcaption span,.work-inline-caption span{font-size:10.5px;color:#75838a}
.preview-inline-material figcaption{gap:2px;margin-top:7px;color:#555f5d;font:400 11.5px/1.4 var(--preview-font,Georgia),serif}
.preview-inline-material figcaption strong{font-weight:400}.preview-inline-material figcaption span{font-size:10px;color:#747d79}

/* v240: Tabellen besitzen wie Diagramme eine auswählbare Vorschau. */
.work-table-browser{display:grid;grid-template-columns:minmax(230px,32%) minmax(0,1fr);gap:18px;align-items:start}
.work-table-studio-list{display:grid;grid-template-columns:1fr;align-content:start}
.work-table-studio-list>button.active{border-color:#315f7f;background:#e8f0f5;box-shadow:inset 3px 0 #315f7f}
.work-table-studio-preview{min-width:0;padding:20px;border:1px solid #d6e0e6;border-radius:12px;background:#fbfcfd}
.work-table-studio-preview>h3{margin:5px 0 18px;font:700 24px Georgia,serif}
.work-table-preview-sheet{overflow:auto;padding:18px;border:1px solid #d8e1e7;border-radius:8px;background:#fff}
.work-table-preview-sheet table{width:100%;border-collapse:collapse}.work-table-preview-sheet th,.work-table-preview-sheet td{min-width:70px;padding:8px 10px;border:1px solid #9aa9b3;text-align:left}.work-table-preview-sheet th{background:#e8eff4}.work-table-preview-sheet caption{text-align:left;margin-bottom:8px}.work-table-preview-sheet caption span{display:block;color:#71818a;font-size:11px}
@media(max-width:800px){.work-table-browser{grid-template-columns:1fr}}

/* Der erste Absatz nach einem schmalen Bild ist die direkt anklickbare
   Schreibfläche für die freie Spalte daneben. */
.work-editor-surface [data-material-spacer].material-side-writing{display:block!important;min-height:150px;margin:0;padding:8px 10px;border-radius:7px;outline:1px dashed transparent}
.work-editor-surface [data-material-spacer].material-side-writing:hover,.work-editor-surface [data-material-spacer].material-side-writing:focus{outline-color:#b8c9d4;background:#f8fbfc}
.work-editor-surface [data-material-spacer].material-side-writing:empty:before{content:'Hier neben dem Bild schreiben …';color:#91a0a8;font:12px "Segoe UI",sans-serif}
.work-editor-surface [data-material-spacer].material-side-writing+p,
.whole-work-preview .preview-inline-material.wrap-left+p+p,
.whole-work-preview .preview-inline-material.wrap-right+p+p{clear:both}

/* Nach dem seitlichen Begleittext beginnt der folgende Absatz wieder sicher
   auf voller Satzbreite. Das verhindert, dass große Bilder oder Diagramme
   ungewollt noch in weitere Absätze hineinragen. */
.work-editor-surface table[data-work-table-wrap="text"]+p+p,
.whole-work-preview table[data-work-table-wrap="text"]+p+p{clear:both}

/* Kontextbearbeitung für Bilder und Diagramme: Die Bedienelemente nehmen
   keinen Platz mehr innerhalb der eigentlichen Druckdarstellung ein. */
.work-material-context-bar{position:fixed;z-index:38;box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:6px 10px;border:1px solid #9fb8c8;border-radius:9px;background:#eef5f8;box-shadow:0 5px 18px rgba(30,65,88,.16);font:600 11px/1.25 "Segoe UI",sans-serif;color:#29475b}
.work-material-context-bar.hidden{display:none}.work-material-context-bar>strong{font-size:12px;color:#17384f}.work-material-context-bar>[data-context-kind]{padding:4px 7px;border-radius:999px;background:#dceaf1;color:#315770}.work-material-context-bar label,.work-material-context-bar .context-align,.work-material-context-bar .context-move{display:flex;align-items:center;gap:5px}.work-material-context-bar select{width:auto;min-width:105px;padding:6px 8px}.work-material-context-bar button{min-width:30px;height:31px;padding:0 8px;border:1px solid #bfd0da;border-radius:7px;background:#fff;color:#294d67}.work-material-context-bar button:hover,.work-material-context-bar button.active{border-color:#315f7f;background:#315f7f;color:#fff}.work-material-context-bar button:disabled{opacity:.45;cursor:not-allowed}.work-material-context-bar [data-context-close]{margin-left:auto;font-size:17px}
.work-inline-material.work-material-selected{border-color:#39749b!important;box-shadow:0 0 0 3px rgba(57,116,155,.15)!important}.work-inline-material.work-material-selected:after{content:'Wird bearbeitet';position:absolute;left:8px;top:8px;padding:3px 7px;border-radius:999px;background:#315f7f;color:#fff;font:700 9px/1.3 "Segoe UI",sans-serif;letter-spacing:.03em}
@media(max-width:900px){.work-material-context-bar{flex-wrap:wrap}.work-material-context-bar [data-context-close]{margin-left:0}}

/* Ein einziges, vorhersehbares Scrollsystem: Das Dokument selbst scrollt.
   Die Schreibfläche besitzt keinen zweiten konkurrierenden Scrollbalken. */
body.work-main-editing .work-editor-layout{height:auto!important;min-height:calc(100vh - 180px)!important;overflow:visible!important;align-items:start!important}
body.work-main-editing .work-writing-area{height:auto!important;min-height:calc(100vh - 180px)!important;overflow:visible!important;overscroll-behavior:auto!important}
body.work-main-editing .work-chapter-list{position:sticky;top:calc(var(--work-main-toolbar-height,70px) + 82px);height:calc(100vh - var(--work-main-toolbar-height,70px) - 98px)!important;min-height:360px;align-self:start}
.professional-chart-svg g>text{text-anchor:start!important}
.chart-custom-frame .professional-chart-svg>line:not(.grid){stroke:var(--chart-axis,#657781)!important;stroke-width:1.6!important}
.professional-chart-svg .chart-axis-tick{text-anchor:end!important;font-size:10px!important;fill:#657781!important}
.professional-chart-svg .chart-axis-title{font-size:10px!important;font-weight:700;fill:#4c626f!important}
.professional-chart-svg .chart-axis-title-x{text-anchor:end!important}.professional-chart-svg .chart-axis-title-y{text-anchor:start!important}

/* Lange Quellenmasken bleiben auf kleinen Bildschirmen vollständig bedienbar. */
.work-source-dialog{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}
.work-source-dialog form{padding-bottom:0}.work-source-dialog .dialog-actions{position:sticky;bottom:0;z-index:4;margin:10px -2px 0;padding:15px 2px 3px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 14px)}

/* v241: Jede Erstellen- und Bearbeitenmaske bleibt unabhängig von der
   Bildschirmhöhe scrollbar; die entscheidenden Aktionen bleiben erreichbar. */
dialog:not(.quiet-confirm-dialog){max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}
dialog:not(.quiet-confirm-dialog)>form{box-sizing:border-box;max-height:none;padding-bottom:0}
dialog:not(.quiet-confirm-dialog) .dialog-actions{position:sticky;bottom:0;z-index:5;margin-top:12px;padding-top:16px;padding-bottom:3px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 15px)}

/* v242: Eine Tabelle besitzt in Editor, Tabellenbibliothek und drucknaher
   Gesamtansicht dieselbe ruhige wissenschaftliche Grundgestaltung. */
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"]{box-sizing:border-box;border-collapse:collapse;background:#fff;color:#17272f;font-family:var(--preview-font,Georgia),"Times New Roman",serif;line-height:1.4}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"] :is(th,td){height:auto;min-width:0;padding:7px 9px;border:1px solid #9eabb3;text-align:left;vertical-align:top;font:inherit}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"] th{background:#e8eff4;color:#203b4d;font-weight:700}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"] caption{caption-side:top;padding:0 0 7px;text-align:left;color:#354b58}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"] caption strong{display:block;font:600 .88em/1.35 var(--preview-font,Georgia),serif}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table="true"] caption span{display:block;margin-top:2px;color:#748087;font:400 .68em/1.35 "Segoe UI",sans-serif}

/* v244: Direkte PDF-Seite und verständlicher automatischer Nachweisfluss. */
.evidence-page-controls{display:grid;grid-template-columns:minmax(110px,180px) auto;align-items:end;gap:9px;margin-top:9px}.evidence-page-controls label{display:grid;gap:5px;font-size:11px;font-weight:750}.evidence-page-controls input{min-width:0}.evidence-page-controls button{min-height:39px;white-space:nowrap}
.citation-automatic-help{display:flex;align-items:flex-start;gap:11px;margin:14px 0;padding:13px 15px;border:1px solid #c8dbe3;border-radius:10px;background:#f2f7f9;color:#45606f}.citation-automatic-help>span{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#dcece4;color:#276349;font-weight:800}.citation-automatic-help strong{color:#234b67}.citation-automatic-help p{margin:3px 0 0;font-size:12px;line-height:1.5}
@media(max-width:560px){.evidence-page-controls{grid-template-columns:1fr}}

/* v245: Die drei Zitierarten sind ruhige, vollständig anklickbare Karten. */
.work-quick-citation-dialog .quick-citation-types{display:grid;gap:9px;border:0;padding:0;margin:14px 0}.work-quick-citation-dialog .quick-citation-types legend{padding:0 0 8px;font-weight:750}
.work-quick-citation-dialog .quick-citation-types label{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:start!important;gap:11px!important;margin:0!important;padding:13px 14px!important;border:1px solid #d3dee5;border-radius:10px;background:#fff;cursor:pointer}
.work-quick-citation-dialog .quick-citation-types label:has(input:checked){border-color:#315f7f;background:#eef5f8;box-shadow:inset 3px 0 #315f7f}.work-quick-citation-dialog .quick-citation-types input{width:16px!important;height:16px!important;margin:2px 0 0!important;accent-color:#315f7f}
.work-quick-citation-dialog .quick-citation-types label>span{display:grid;gap:3px;min-width:0}.work-quick-citation-dialog .quick-citation-types strong{color:#173d59}.work-quick-citation-dialog .quick-citation-types small{color:#607681;font-size:12px;line-height:1.45}
.quick-citation-result{margin:12px 0;padding:10px 12px;border-radius:8px;background:#f3f6f7;color:#536a77;font-size:12px;line-height:1.45}

/* Auch die eingeklappte Seitenleiste behält die schnellen Bereichswechsel
   und die Einstellungen als eindeutig erkennbare Symbolknöpfe. */
.sidebar-collapsed .sidebar .sidebar-bottom{display:flex!important;flex-direction:column;align-items:center;width:100%;margin-top:auto}
.sidebar-collapsed .sidebar .module-switches{display:grid!important;gap:8px;margin:0 0 9px}
.sidebar-collapsed .sidebar .module-link{display:flex;width:42px;min-height:42px;height:42px;padding:5px;border-radius:10px;justify-content:center}
.sidebar-collapsed .sidebar .module-link>span:first-child{width:30px;height:30px;flex:0 0 30px}
.sidebar-collapsed .sidebar .module-link>span:nth-child(2){display:none}
.sidebar-collapsed .sidebar #settingsBtn{display:grid!important;place-items:center;width:42px;height:42px;padding:0;border-radius:10px;font-size:0}
.sidebar-collapsed .sidebar #settingsBtn::before{content:"⚙";font-size:18px;line-height:1}
.sidebar-collapsed.app-shell:not(.reference-mode):not(.workshop-mode) .learning-link,
.sidebar-collapsed.app-shell.reference-mode .reference-link,
.sidebar-collapsed.app-shell.workshop-mode .workshop-link{display:none!important}

/* v257: Hauptstück mit zwei unabhängigen, vorhersehbaren Scrollbereichen. */
@media(min-width:901px){
  body.work-main-editing{overflow:hidden}
  body.work-main-editing .workspace{height:100dvh;overflow:hidden}
  body.work-main-editing .work-editor-layout{height:calc(100dvh - var(--work-main-toolbar-height,70px) - 112px)!important;min-height:420px!important;overflow:hidden!important;align-items:stretch!important}
  body.work-main-editing .work-chapter-list{position:relative!important;top:auto!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
  body.work-main-editing .work-writing-area{height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
  body.work-main-editing .work-format-toolbar{position:sticky;top:0;z-index:30;border-radius:0 0 10px 10px;box-shadow:0 4px 14px rgba(25,54,74,.09)}
}

/* A4 bleibt auch auf schmalen Bildschirmen intern exakt; nur die optische
   Skalierung darf sich ändern, niemals Seitenformat oder Randverhältnis. */
.whole-work-preview .work-preview-page{box-sizing:border-box;width:210mm;height:297mm;min-height:297mm;max-height:297mm}
@media(max-width:900px){.whole-work-preview{overflow-x:auto}.whole-work-preview .work-preview-page{width:210mm;height:297mm;min-height:297mm;max-height:297mm;padding:var(--preview-top,25mm) var(--preview-right,25mm) var(--preview-bottom,25mm) var(--preview-left,30mm);zoom:min(1,calc((100vw - 40px) / 793.7))}}

#formatPreviewPage{box-sizing:border-box;width:210mm;min-width:210mm;height:297mm;min-height:297mm;background:#fff;overflow:hidden;transform-origin:top left}
.format-preview #formatPreviewPage{zoom:.62}
.preview-toc .toc-level-one>span{font-weight:700}

/* Die Bedienleiste ist ein zusammengehöriges Werkzeugband. */
body.work-main-editing .work-format-toolbar{gap:0;padding:0 10px;border:1px solid #cad7df;background:#fff}
body.work-main-editing .work-format-toolbar .format-group{min-height:48px;padding:7px 10px;border-right:1px solid #e0e7eb}
body.work-main-editing .work-format-toolbar .format-group:last-child{border-right:0}
body.work-main-editing .work-format-toolbar button{min-height:32px;border-radius:6px}
.work-current-format{align-self:center;min-width:72px;padding:4px 7px;border-radius:6px;background:#eef3f6;color:#456171;font:600 10px/1.2 "Segoe UI",sans-serif;white-space:nowrap}.work-format-toolbar #workFormatTransfer.active{border-color:#315f7f;background:#315f7f;color:#fff}

/* 2/3 Breite ist für wissenschaftlichen Fließtext daneben zu schmal. */
.work-material-context-bar [data-context-size] option[value="67"]{color:#52636d}
dialog:not(.quiet-confirm-dialog){box-sizing:border-box;max-width:calc(100vw - 28px)}
dialog:not(.quiet-confirm-dialog) .dialog-actions button{min-height:40px;min-width:112px}

/* Der besonders umfangreiche Diagrammeditor verwendet das Formular selbst
   als Scrollfläche. Dadurch bleibt seine Aktionsleiste dauerhaft sichtbar. */
#workChartDialog{overflow:hidden}
#workChartDialog>form{box-sizing:border-box;max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}

/* v266: Robustes Hauptstück-Scrollen. Die Seite bleibt immer der verlässliche
   Hauptscrollbereich; die Gliederung bleibt sichtbar und scrollt nur dann
   selbst, wenn ihre Kapitelliste höher als das Fenster ist. */
body.work-main-editing{overflow-x:hidden!important;overflow-y:auto!important}
body.work-main-editing .workspace{height:auto!important;min-height:100dvh;overflow:visible!important}
body.work-main-editing .work-editor-layout{height:auto!important;min-height:calc(100dvh - 180px)!important;overflow:visible!important;align-items:start!important}
body.work-main-editing .work-writing-area{height:auto!important;min-height:calc(100dvh - 180px)!important;overflow:visible!important;overscroll-behavior:auto!important}
body.work-main-editing .work-chapter-list{position:sticky!important;top:calc(var(--work-main-toolbar-height,70px) + 12px)!important;height:auto!important;max-height:calc(100dvh - var(--work-main-toolbar-height,70px) - 28px)!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.work-main-editing .work-format-toolbar{position:sticky;top:0;z-index:30}

/* v268: Einheitliche Werkbank-Kopfbereiche. Die Schreibwerkzeuge bleiben eine
   einzige, bewusst aufgebaute Zeile. Auf kleineren Fenstern wird diese Zeile
   waagrecht verschoben, statt zufaellig in unterschiedlich hohe Reihen zu
   zerfallen. Hauptkopf, Werkzeugband und Gliederung ueberlagern sich nicht. */
@media(min-width:901px){
  body.work-main-editing{--work-format-toolbar-height:54px}
  body.work-main-editing .work-main-toolbar{position:sticky!important;top:0!important;z-index:42!important;box-sizing:border-box;min-height:58px;padding:8px 14px;margin-bottom:0;border-radius:12px 12px 0 0;box-shadow:none}
  body.work-main-editing .work-main-toolbar.is-stuck{min-height:52px;padding-block:6px;border-radius:0;box-shadow:none}
  body.work-main-editing .work-main-toolbar.is-stuck>div{display:block}
  body.work-main-editing .work-main-toolbar.is-stuck>div strong{font-size:15px}
  body.work-main-editing .work-main-toolbar.is-stuck>div span{margin-top:0;font-size:10px}
  body.work-main-editing .work-main-toolbar :is(button,.secondary,.workshop-primary){min-height:36px;padding-block:7px}
  body.work-main-editing .work-format-toolbar{position:sticky!important;top:var(--work-main-toolbar-height,58px)!important;z-index:41!important;display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;box-sizing:border-box;width:100%;height:var(--work-format-toolbar-height);min-height:var(--work-format-toolbar-height);max-height:var(--work-format-toolbar-height);gap:0!important;margin:0 0 14px!important;padding:0 8px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;border-top:0!important;border-radius:0 0 11px 11px!important;background:#fff;box-shadow:0 7px 16px rgba(25,54,74,.09)!important}
  body.work-main-editing .work-format-toolbar .format-group{flex:0 0 auto!important;min-height:52px!important;height:52px!important;box-sizing:border-box;padding:6px 8px!important;white-space:nowrap}
  body.work-main-editing .work-format-toolbar .format-group>span{padding-inline:4px}
  body.work-main-editing .work-format-toolbar :is(button,select,.format-color){height:32px;min-height:32px}
  body.work-main-editing .work-editor-layout{min-height:calc(100dvh - var(--work-main-toolbar-height,58px) - var(--work-format-toolbar-height) - 30px)!important}
  body.work-main-editing .work-chapter-list{top:calc(var(--work-main-toolbar-height,58px) + var(--work-format-toolbar-height) + 12px)!important;max-height:calc(100dvh - var(--work-main-toolbar-height,58px) - var(--work-format-toolbar-height) - 28px)!important}
}

@media(max-width:900px){
  body.work-main-editing .work-main-toolbar{position:relative!important;top:auto!important;z-index:auto!important}
  body.work-main-editing .work-format-toolbar{position:sticky!important;top:0!important;z-index:41!important;display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;width:100%;max-height:56px;min-height:56px;margin-bottom:12px!important;padding:0 7px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;border-radius:0 0 10px 10px!important}
  body.work-main-editing .work-format-toolbar .format-group{flex:0 0 auto!important;box-sizing:border-box;height:54px;min-height:54px!important;padding:7px 8px!important;white-space:nowrap}
}

/* Rueckgaengig und Wiederholen sind in allen schreibenden Modulen gleich. */
.work-history-controls{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;padding-right:7px;margin-right:3px;border-right:1px solid #d9e2e7}
.work-history-controls button{display:grid;place-items:center;min-width:32px!important;width:32px;height:32px!important;min-height:32px!important;padding:0!important;border:1px solid #cbd8df!important;border-radius:7px!important;background:#fff!important;color:#24465e!important;font:700 19px/1 "Segoe UI Symbol","Segoe UI",sans-serif!important;cursor:pointer}
.work-history-controls button:hover{border-color:#527a96!important;background:#eef5f8!important;color:#153a54!important}
.work-history-controls.compact{justify-self:end;padding-right:8px;margin-left:auto}
.work-main-toolbar>.work-history-controls.compact{margin-right:0}
.dialog-actions>.work-history-controls{margin-right:auto}
@media(max-width:650px){.work-main-toolbar>.work-history-controls.compact{order:3;margin-left:0}.dialog-actions>.work-history-controls{width:auto}}

/* Ziehbare, aber im Druck unsichtbare Spaltengrenzen. */
.work-editor-surface table[data-work-table="true"] tr:first-of-type> :is(th,td){position:relative}
.work-editor-surface [data-table-resize-handle]{position:absolute;z-index:4;top:-1px;right:-5px;bottom:-1px;width:10px;cursor:col-resize;touch-action:none;background:transparent}
.work-editor-surface [data-table-resize-handle]::after{content:"";position:absolute;top:0;bottom:0;left:4px;width:2px;background:transparent}
.work-editor-surface [data-table-resize-handle]:hover::after,.work-editor-surface table.is-resizing-columns [data-table-resize-handle]::after{background:#39749b}
:is(.work-editor-surface,.whole-work-preview,.work-table-preview-sheet) table[data-work-table-column-widths]{table-layout:fixed}
@media print{[data-table-resize-handle]{display:none!important}}

/* Diagramm- und Tabellenbibliothek folgen demselben visuellen Raster. */
.work-chart-toolbar-actions{display:flex;align-items:center;gap:8px}
.work-chart-toolbar-actions>.workshop-primary{min-width:150px;text-align:center}
.work-table-studio{margin-top:16px;padding:0;border:0;border-radius:0;background:transparent}
.work-table-browser{display:grid;grid-template-columns:350px minmax(0,1fr);gap:16px;align-items:stretch}
.work-table-studio-list,.work-table-studio-preview{box-sizing:border-box;min-width:0;min-height:650px;border:1px solid #d8e1e8;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(32,59,85,.07)}
.work-table-studio-list{display:block;overflow:hidden}
.work-table-studio-list-items{display:grid;gap:0;padding:7px 9px 12px}
.work-table-studio-list-items>button{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;width:100%;padding:12px;border:0;border-radius:9px;background:transparent;color:#17354b;text-align:left;cursor:pointer}
.work-table-studio-list-items>button:hover,.work-table-studio-list-items>button.active{background:#e8f0f5}
.work-table-studio-list-items>button.active{box-shadow:inset 3px 0 #315f7f}
.work-table-studio-list-items>button>span{grid-row:1/3;align-self:start;padding:4px 7px;border-radius:7px;background:#dce8ef;font-size:11px;font-weight:800}
.work-table-studio-list-items>button>strong{overflow:hidden;text-overflow:ellipsis;font-size:14px}.work-table-studio-list-items>button>small{grid-column:2;color:#617684}
.work-table-studio-preview{padding:30px;background:#fff}
.work-table-studio-preview>h2{margin:5px 0 7px;font:700 28px Georgia,serif}
.work-library-explanation{margin:0 0 18px;color:#5c707c;font-size:12px;line-height:1.5}
.work-table-preview-sheet{padding:0;border:0;border-radius:0;background:#fff;overflow-x:auto}
.work-table-studio-preview>.secondary{margin-top:14px}
@media(max-width:900px){.work-table-browser{grid-template-columns:1fr}.work-table-studio-list,.work-table-studio-preview{min-height:auto}.work-chart-toolbar-actions>.workshop-primary{min-width:0}}

/* Derselbe ruhige Modulabschluss gilt in allen 15 Bearbeitungsansichten der
   Werkbank. Beim Scrollen bleibt die Orientierung erhalten; auf kleinen
   Bildschirmen nimmt der Kopf hingegen keinen dauerhaften Platz weg. */
@media(min-width:901px){
  #workshopView>section:not(#workDashboard)>.work-main-toolbar{
    position:sticky;top:0;z-index:40;box-sizing:border-box;
    min-height:58px;padding:8px 14px;margin-bottom:14px;
    border-color:#cfdbe2;background:rgba(255,255,255,.98);
    box-shadow:0 5px 15px rgba(28,54,72,.075);
    backdrop-filter:blur(8px)
  }
  #workshopView>section:not(#workDashboard)>.work-main-toolbar :is(button,.secondary,.workshop-primary){min-height:36px}
}
@media(max-width:900px){
  #workshopView>section:not(#workDashboard)>.work-main-toolbar{position:relative;top:auto;z-index:auto}
  body.work-main-editing .work-chapter-list{position:relative!important;top:auto!important;max-height:none!important;height:auto!important;overflow:visible!important}
}

/* v270: Kein Kopfbereich darf die farbige Seitennavigation ueberdecken.
   Die Werkzeuge stehen in zwei festen, inhaltlich gegliederten Reihen statt
   in einer waagrecht scrollbaren Leiste. */
body.work-main-editing .work-main-toolbar.is-stuck::before{display:none!important;content:none!important}

@media(min-width:901px){
  body.work-main-editing{--work-format-toolbar-height:104px}
  body.work-main-editing .work-format-toolbar{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-rows:52px 52px;
    width:100%;height:var(--work-format-toolbar-height);min-height:var(--work-format-toolbar-height);max-height:var(--work-format-toolbar-height);
    padding:0!important;overflow:hidden!important;scrollbar-width:none
  }
  body.work-main-editing .work-format-toolbar>.format-group{width:auto;min-width:0;height:52px!important;overflow:visible}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(1){grid-column:1/8;grid-row:1}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(2){grid-column:8/13;grid-row:1;border-right:0}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(3){grid-column:1/3;grid-row:2;border-top:1px solid #e0e7eb}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(4){grid-column:3/5;grid-row:2;border-top:1px solid #e0e7eb}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(5){grid-column:5/10;grid-row:2;border-top:1px solid #e0e7eb}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(6){grid-column:10/13;grid-row:2;border-top:1px solid #e0e7eb;border-right:0}
  body.work-main-editing .work-format-toolbar>.format-group:nth-child(7){grid-column:1/13;grid-row:2;z-index:2;background:#fff;border-top:1px solid #e0e7eb;border-right:0}
}

@media(max-width:900px){
  body.work-main-editing .work-format-toolbar{position:relative!important;top:auto!important;display:flex!important;flex-flow:row wrap!important;width:100%;height:auto;max-height:none;min-height:0;overflow:visible!important;padding:4px!important}
  body.work-main-editing .work-format-toolbar>.format-group{flex:1 1 100%!important;width:100%;height:auto;min-height:48px!important;flex-wrap:wrap;white-space:normal}
}

/* v298: Kontext bleibt auf den ersten Blick lesbar, auch bei vielen
   Nachweisen oder sehr breiten Datensaetzen. */
.citation-list-item>div{min-width:0}
.citation-list-item .citation-list-preview{display:block;grid-column:2;max-width:100%;margin-top:3px;overflow:hidden;color:#5f737f;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.dataset-beginner-guide{margin:14px 0;padding:15px 17px;border:1px solid #cfdde5;border-radius:11px;background:#f3f8fa;color:#26485f}
.dataset-beginner-guide>strong{display:block;margin-bottom:9px;font-size:14px}
.dataset-beginner-guide>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px}
.dataset-beginner-guide span{font-size:12px;line-height:1.45}
.dataset-beginner-guide b{margin-right:4px;color:#163c56}
.dataset-table-wrap :is(th,td):first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 #d6e0e6}
.dataset-table-wrap thead th:first-child{z-index:3;background:#e8f0f4}
.chart-setting-not-applicable{display:none!important}
.work-current-format{min-width:96px;text-align:center}
@media(max-width:700px){.dataset-beginner-guide>div{grid-template-columns:1fr}}

/* Lange Bibliotheken scrollen innerhalb ihres eigenen, sichtbaren Bereichs.
   Auswahl und Detailansicht bleiben dadurch nebeneinander erreichbar. */
@media(min-width:1181px){
  :root{--work-library-height:min(760px,calc(100dvh - 155px))}
  .work-sources-layout,.work-evidence-layout,.work-figures-layout,
  .work-charts-layout,.work-studies-layout,.work-interviews-layout,
  .work-citations-layout,.work-abbreviation-layout{align-items:stretch}
  .work-source-list,.work-source-detail,
  .work-evidence-layout>.evidence-source-panel,.work-evidence-layout>.evidence-main,
  .work-figures-layout>aside,.work-figures-layout>article,
  .work-charts-layout>aside,.work-charts-layout>article,
  .work-studies-layout>aside,.work-studies-layout>article,
  .work-interviews-layout>aside,.work-interviews-layout>article,
  .work-citations-layout>aside,.work-citations-layout>article,
  .work-abbreviation-layout>aside,.work-abbreviation-layout>article{
    box-sizing:border-box;height:var(--work-library-height);min-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable
  }
  .work-source-list{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  #workSources{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .work-evidence-layout>.evidence-source-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
  #evidenceSourceFilters{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .work-table-studio-list,.work-table-studio-preview{height:var(--work-library-height);min-height:560px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .format-form,.format-preview{box-sizing:border-box;max-height:var(--work-library-height);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .format-preview{overflow-x:hidden}
}
#formatPreviewPage{box-sizing:border-box;width:100%;max-width:100%;height:auto;min-width:0}
body.work-main-editing .work-writing-area.a4-editor-mode .work-inline-material{transition:width .16s ease,margin-left .16s ease,margin-right .16s ease}
.preview-layout-guidance{display:flex;align-items:center;gap:14px;max-width:980px;margin:0 auto 14px;padding:11px 14px;border:1px solid #cad9e2;border-radius:10px;background:#f2f7f9;color:#294b61;font-family:"Segoe UI",sans-serif}.preview-layout-guidance strong{flex:none}.preview-layout-guidance span{font-size:12px;line-height:1.45;color:#59717f}
.whole-work-preview .preview-inline-material{position:relative;cursor:pointer;transition:outline-color .15s ease,box-shadow .15s ease}.whole-work-preview .preview-inline-material.preview-selected{outline:2px solid #2f6688;outline-offset:4px;box-shadow:0 0 0 6px rgba(47,102,136,.08)}.preview-table-material{display:block;width:100%;break-inside:avoid}.preview-table-material>table{width:100%;margin:0}.preview-material-flow-controls{position:absolute;z-index:5;top:8px;right:8px;display:none;flex-wrap:wrap;align-items:center;gap:5px;max-width:calc(100% - 16px);padding:7px;border:1px solid #9fb8c8;border-radius:8px;background:rgba(247,251,253,.97);box-shadow:0 5px 16px rgba(28,54,72,.15);font:600 10px "Segoe UI",sans-serif}.preview-material-flow-controls.open{display:flex}.preview-material-flow-controls span{font-weight:800;color:#294b61}.preview-material-flow-controls button{padding:5px 7px;border:1px solid #c5d4dc;border-radius:6px;background:#fff;color:#294b61;font-size:10px;font-weight:700;cursor:pointer}.preview-material-flow-controls button:hover{background:#294b61;color:#fff}@media(max-width:700px){.preview-layout-guidance{display:grid}}
.figure-crop-stage{display:block;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}.figure-crop-stage img{width:auto;height:auto}
.work-companion-view{max-width:1450px;margin:0 auto}.companion-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}.companion-layout>main,.companion-layout>aside{display:grid;align-content:start;gap:16px}.companion-card{display:grid;gap:14px;padding:20px;border:1px solid #d4e0e6;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(35,61,78,.05)}.companion-card>div:first-child{display:grid;grid-template-columns:34px 1fr;gap:2px 10px;align-items:center}.companion-card>div:first-child>span{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e5eef3;color:#285471;font-weight:850}.companion-card h2{margin:0;font:700 21px Georgia,serif}.companion-card p{margin:0;color:#627680;font-size:12px;line-height:1.45}.companion-row{display:grid;grid-template-columns:145px repeat(3,minmax(0,1fr)) 34px;gap:8px;align-items:end;padding:11px;border:1px solid #e0e8ec;border-radius:9px;background:#f8fafb}.companion-row label,.companion-card>label{display:grid;gap:5px;font-size:11px;font-weight:750;color:#405a68}.companion-row input,.companion-card select{width:100%;min-width:0;padding:9px;border:1px solid #cbd8df;border-radius:7px;background:#fff}.companion-row .quiet-danger{height:36px;border:1px solid #e3c9c9;border-radius:7px;background:#fff;color:#9b4040;cursor:pointer}.companion-empty{padding:12px;border:1px dashed #ccd9df;border-radius:8px;text-align:center}.companion-checklist #companionChecklist{display:grid;gap:8px}.companion-checklist label{display:flex;gap:9px;align-items:flex-start;padding:9px;border-radius:7px;background:#f5f8fa;font-size:12px;line-height:1.4}.companion-checklist input{margin-top:2px}.companion-card a.full{display:block;text-align:center;text-decoration:none}@media(max-width:1100px){.companion-layout{grid-template-columns:1fr}.companion-layout>aside{grid-template-columns:repeat(2,minmax(0,1fr))}.companion-row{grid-template-columns:repeat(2,minmax(0,1fr)) 34px}.companion-row .quiet-danger{grid-column:3;grid-row:1}}@media(max-width:700px){.companion-layout>aside,.companion-row{grid-template-columns:1fr}.companion-row .quiet-danger{grid-column:auto;grid-row:auto;width:100%}}
.companion-row textarea{width:100%;min-width:0;min-height:72px;padding:9px;border:1px solid #cbd8df;border-radius:7px;background:#fff;font:inherit;line-height:1.4;resize:vertical}
.companion-row label>small{min-height:30px;color:#6c7f89;font-size:10px;font-weight:500;line-height:1.35}
