/* „Meine Dokumente“ (my-documents.js) und Kurzbrief-Dialog (short-letter.js) · Lila-Familie der Verwaltung */
.mdw-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.mdw-toolbar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: #59686d; text-transform: uppercase; }
.mdw-toolbar input, .mdw-toolbar select { min-height: 36px; padding: 6px 10px; border: 1px solid #c3ced1; border-radius: 4px; background: #fff; font: inherit; font-size: 14px; text-transform: none; }
.mdw-toolbar .mdw-search { flex: 1 1 240px; }
.mdw-scope-tabs { margin: 0; }
.mdw-table .mdw-row-actions { white-space: nowrap; text-align: right; }
.mdw-table td.person-cell span { display: block; color: var(--muted); font-size: 12px; }

/* Vorlagenwahl */
.mdw-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mdw-tpl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mdw-tpl:hover { border-color: var(--accent-2); }
.mdw-tpl.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(100, 49, 130, .16); }
.mdw-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.mdw-tpl strong { font-size: 13px; color: #1f2933; }
.mdw-tpl small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.mdw-thumb { width: 104px; margin: 0 auto 2px; aspect-ratio: 210 / 297; padding: 9% 9% 7%; border: 1px solid #e3dde5; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #faf8fb; display: flex; flex-direction: column; gap: 6%; overflow: hidden; }
.mdw-thumb-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 5%; border-bottom: 1px solid #61316e; }
.mdw-thumb-head b { width: 34%; height: 9px; border-radius: 2px; background: linear-gradient(90deg, #61316e, #a451aa); }
.mdw-thumb-head span { width: 18%; height: 5px; background: #d7c6df; }
.mdw-thumb i, .mdw-thumb-addr i, .mdw-thumb-body i { display: block; height: 3px; margin-bottom: 3px; border-radius: 1px; background: #d9d3dc; }
.mdw-thumb i.bold { height: 4px; background: #4c4550; }
.mdw-thumb i.title { height: 6px; background: #61316e; }
.mdw-thumb i.bar { height: 7px; background: #522459; }
.mdw-thumb i.note { height: 10px; background: #f5f0f6; border-left: 3px solid #803489; }
.mdw-thumb-addr { padding-top: 6%; }
.mdw-thumb-body { flex: 1; }
.mdw-thumb-body.blank { padding-top: 12%; }
.mdw-thumb-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; margin: 4px 0; }
.mdw-thumb-checks.col { grid-template-columns: 1fr; }
.mdw-thumb-checks b { display: block; height: 5px; border: 1px solid #803489; border-radius: 1px; background: #fff; }
.mdw-thumb-checks b.on { background: #803489; }
.mdw-thumb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; margin: 3px 0 5px; }
.mdw-thumb-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 3px 0 5px; }
.mdw-thumb-table b { height: 6px; background: #ece6ee; }
.mdw-thumb-table b:nth-child(-n+3) { background: #522459; }
.mdw-picker-hint { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; }
.mdw-picker-hint svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }

/* Editor */
.mdw-editor { display: flex; flex-direction: column; gap: 12px; }
.mdw-editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mdw-editor-title { flex: 1 1 260px; min-width: 0; }
.mdw-editor-title input { width: 100%; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 19px; font-weight: 650; color: #1b282d; background: transparent; }
.mdw-editor-title input:hover:not(:disabled), .mdw-editor-title input:focus { border-color: #c3ced1; background: #fff; outline: none; }
.mdw-editor-title small { display: block; padding-left: 6px; color: var(--muted); font-size: 12px; }
.mdw-save-state { flex: 0 1 auto; color: var(--muted); font-size: 12.5px; }
.mdw-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mdw-editor-actions .button.danger { margin-left: 4px; }
.mdw-mobile-tabs { display: none; margin: 0; }
.mdw-editor-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 46%); gap: 14px; align-items: start; }
.mdw-pane { min-width: 0; }
.mdw-pane-edit { display: flex; flex-direction: column; gap: 12px; }
.mdw-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mdw-settings .field label { font-size: 11.5px; }
.mdw-switches { display: flex; flex-direction: column; gap: 6px; }
.mdw-switch { display: flex !important; align-items: center; gap: 8px; text-transform: none !important; font-weight: 600 !important; font-size: 13px !important; margin: 0 !important; cursor: pointer; }
.mdw-switch .switch { width: 34px; height: 18px; min-height: 18px; padding: 0; flex: 0 0 34px; border: 0; }
.mdw-letter { border: 1px solid #d7ccda; border-left: 4px solid var(--primary, #643182); border-radius: 8px; background: #fbf9fc; }
.mdw-letter > summary { padding: 11px 14px; font-weight: 700; color: #4d2a55; cursor: pointer; list-style: none; }
.mdw-letter > summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .15s; }
.mdw-letter[open] > summary::before { transform: rotate(90deg); }
.mdw-letter-grid { padding: 4px 14px 14px; }
.mdw-letter-grid .field.full { grid-column: 1 / -1; }
.mdw-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; padding: 10px 12px; border: 1px solid #ded4e1; border-radius: 6px; background: #fff; }
.mdw-checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: none; font-weight: 500; margin: 0; cursor: pointer; }
.mdw-checks input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--accent); }
.mdw-blocks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.mdw-blocks-head strong { font-size: 15px; color: #1b282d; }
.mdw-insert-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.mdw-insert-tools select { max-width: 280px; min-height: 30px; padding: 3px 8px; border: 1px solid #c8d2d5; border-radius: 4px; background: #fff; font: inherit; font-size: 13.5px; }
.mdw-blocks { display: flex; flex-direction: column; gap: 10px; }
.mdw-block { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mdw-block > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid #ede8ef; background: #faf8fb; border-radius: 8px 8px 0 0; }
.mdw-block-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6a2b72; }
.mdw-block-actions { display: flex; gap: 2px; }
.mdw-block-actions .icon-button { width: 28px; height: 28px; }
.mdw-block-actions [data-move="-1"] svg { transform: rotate(180deg); }
.mdw-block-actions [data-move="1"] svg { transform: rotate(0deg); }
.mdw-block-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mdw-block-body input:not([type="checkbox"]):not([type="range"]):not([type="file"]), .mdw-block-body textarea, .mdw-block-body select { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #c3ced1; border-radius: 4px; background: #fff; font: inherit; font-size: 14.5px; color: #26363b; }
.mdw-block-body textarea { resize: vertical; line-height: 1.45; }
.mdw-block-body input:focus, .mdw-block-body textarea:focus, .mdw-block-body select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(100, 49, 130, .12); }
.mdw-block-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mdw-block-row select { width: auto; }
.mdw-format { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mdw-format button { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid #c8d2d5; border-radius: 4px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.mdw-format button:hover { background: #f2e8f3; border-color: #b58cbd; }
.mdw-format select { width: auto !important; min-height: 28px !important; padding: 2px 6px !important; font-size: 13px !important; }
.mdw-format small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.mdw-inline-options { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.mdw-inline-options label { display: inline-flex; align-items: center; gap: 6px; }
.mdw-inline-options input { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--accent); }
.mdw-table-edit { width: 100%; border-collapse: collapse; }
.mdw-table-edit th, .mdw-table-edit td { padding: 3px; vertical-align: top; }
.mdw-table-edit th { background: #f5f0f6; position: relative; }
.mdw-table-edit th input { font-weight: 700; padding-right: 30px; }
.mdw-table-edit th .icon-button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; }
.mdw-table-edit th.mdw-table-add { width: 1%; white-space: nowrap; background: transparent; }
.mdw-table-edit td:last-child { width: 32px; }
.mdw-table-edit td .icon-button { width: 26px; height: 26px; }
.mdw-pairs { display: flex; flex-direction: column; gap: 6px; }
.mdw-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 32px; gap: 6px; align-items: center; }
.mdw-image { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; }
.mdw-image img { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fafafa; object-fit: contain; }
.mdw-image-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 100px; border: 1px dashed #c3ced1; border-radius: 4px; color: var(--muted); font-size: 12.5px; }
.mdw-image-empty svg { width: 22px; height: 22px; }
.mdw-image-tools { display: flex; flex-direction: column; gap: 8px; }
.mdw-image-tools > label:not(.button) { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mdw-image-tools input[type="range"] { flex: 1; min-height: 0; padding: 0; accent-color: var(--accent); }
.mdw-image-tools .button { align-self: flex-start; cursor: pointer; }
.mdw-pagebreak-note { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: .08em; border-top: 1px dashed #b5a8b8; padding-top: 6px; }
.mdw-add-block { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px dashed #c9bfcf; border-radius: 8px; background: #fbf9fc; }
.mdw-add-block > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-size: 13px; font-weight: 700; color: #4d2a55; }
.mdw-add-block > span svg { width: 15px; height: 15px; }
.mdw-editor.readonly .mdw-block-body input:disabled, .mdw-editor.readonly .mdw-block-body textarea:disabled { background: #fafafa; color: #3a474c; }

/* Vorschau (Näherung des A4-Layouts) */
.mdw-pane-preview { position: sticky; top: 12px; }
.mdw-preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.mdw-preview-head small { color: var(--muted); font-size: 12px; }
.mdw-preview-scroll { max-height: calc(100vh - 150px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #e9e5ea; }
.mdw-page { --pv-scale: 1; position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: auto; min-height: 720px; padding: 26px 34px 30px; background: #fff; box-shadow: 0 2px 12px rgba(40, 20, 50, .16); font-family: "Segoe UI", Arial, sans-serif; font-size: 11.5px; line-height: 1.45; color: #293438; display: flex; flex-direction: column; }
.mdw-page.blank { padding-top: 30px; }
.mdw-pv-letterhead { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1.5px solid #61316e; box-shadow: 0 2px 0 -1px #d7c6df; }
.mdw-pv-brand { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; color: #61316e; letter-spacing: .01em; }
.mdw-pv-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 8px; color: #625b68; }
.mdw-pv-contact b { color: #61316e; letter-spacing: .06em; }
.mdw-pv-content { flex: 1; }
.mdw-pv-content.letter { padding-top: 2px; }
.mdw-pv-content p { margin: 0 0 8px; }
.mdw-pv-content p.align-center { text-align: center; }
.mdw-pv-content p.align-right { text-align: right; }
.mdw-pv-content h3 { margin: 10px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #b7904f; font-size: 14px; font-weight: 600; color: #522459; }
.mdw-pv-content h4 { margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: #803489; }
.mdw-pv-content ul, .mdw-pv-content ol { margin: 0 0 8px; padding-left: 18px; }
.mdw-pv-content li { margin-bottom: 2px; }
.mdw-pv-content ul li::marker { color: #803489; }
.mdw-pv-address-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 34px; min-height: 84px; }
.mdw-pv-address small { display: block; padding-bottom: 3px; margin-bottom: 4px; border-bottom: 1px solid #d8d2dc; font-size: 7px; color: #647176; }
.mdw-pv-address div { font-size: 12px; line-height: 1.4; }
.mdw-pv-info { display: grid; grid-template-columns: 1fr; align-content: start; gap: 1px; padding-left: 20%; }
.mdw-pv-info small { margin-top: 5px; font-size: 7.2px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #647176; }
.mdw-pv-info span { font-size: 10.5px; }
.mdw-pv-subject { font-weight: 700; font-size: 12.5px; margin-bottom: 16px !important; }
.mdw-pv-shorthead { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 4px; margin-bottom: 10px; border-bottom: 1.5px solid #b7904f; }
.mdw-pv-shorthead h2 { margin: 0; font-size: 20px; font-weight: 600; color: #522459; }
.mdw-pv-shorthead span { font-size: 9.5px; color: #647176; }
.mdw-pv-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid #d8d2dc; background: #f5f0f6; }
.mdw-pv-checks label, .mdw-pv-checklist label { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.mdw-pv-checks b, .mdw-pv-checklist b { position: relative; display: inline-block; width: 11px; height: 11px; border: 1px solid #803489; border-radius: 1px; background: #fff; flex: 0 0 auto; }
.mdw-pv-checks b.on::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #522459; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.mdw-pv-checklist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mdw-pv-checklist label { padding-bottom: 3px; border-bottom: 1px solid #e6e0e8; }
.mdw-pv-chapter { padding: 6px 10px; margin: 8px 0 8px; background: #522459; color: #fff; font-weight: 600; font-size: 12px; }
.mdw-pv-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 10px; }
.mdw-pv-table th { padding: 4px 6px; background: #522459; color: #fff; text-align: left; font-weight: 600; }
.mdw-pv-table td { padding: 4px 6px; border-bottom: 1px solid #d8d2dc; vertical-align: top; }
.mdw-pv-table tbody tr:nth-child(even) td { background: #f5f0f6; }
.mdw-pv-note { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; margin-bottom: 10px; border-left: 3px solid #803489; background: #f5f0f6; font-size: 10.5px; }
.mdw-pv-note.tone-sage { border-color: #477168; background: #f1f5f3; }
.mdw-pv-note.tone-gold { border-color: #b7904f; background: #faf6ed; }
.mdw-pv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }
.mdw-pv-fields div { padding-bottom: 3px; border-bottom: 1px solid #d8d2dc; }
.mdw-pv-fields small { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #647176; }
.mdw-pv-fields span { font-size: 11px; }
.mdw-pv-signature { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; margin: 22px 0 10px; }
.mdw-pv-signature div { padding-top: 3px; border-top: 1px solid #647176; font-size: 8.5px; color: #647176; }
.mdw-pv-pagebreak { margin: 10px 0; padding: 3px 0; border-top: 1px dashed #b5a8b8; text-align: center; font-size: 8px; letter-spacing: .1em; color: #b5a8b8; text-transform: uppercase; }
.mdw-pv-image { margin: 0 0 10px; }
.mdw-pv-image.align-center { margin-left: auto; margin-right: auto; }
.mdw-pv-image.align-right { margin-left: auto; }
.mdw-pv-image img { width: 100%; display: block; }
.mdw-pv-image figcaption { margin-top: 3px; font-size: 8.5px; color: #647176; text-align: center; }
.mdw-pv-closing { margin-top: 10px; }
.mdw-pv-closing p { margin: 0 0 2px; }
.mdw-pv-sigspace { height: 30px; }
.mdw-pv-closing strong { display: block; font-weight: 600; }
.mdw-pv-closing small { display: block; color: #647176; font-size: 9.5px; }
.mdw-pv-enclosures { margin-top: 14px; }
.mdw-pv-enclosures strong { display: block; margin-bottom: 2px; }
.mdw-pv-doctitle { margin-bottom: 12px; padding-bottom: 4px; border-bottom: 1.5px solid #b7904f; }
.mdw-pv-doctitle small { font-size: 7.5px; font-weight: 700; letter-spacing: .08em; color: #803489; }
.mdw-pv-doctitle div { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mdw-pv-doctitle h2 { margin: 0; font-size: 18px; font-weight: 600; color: #522459; }
.mdw-pv-doctitle span { font-size: 9px; color: #647176; }
.mdw-pv-empty { color: #b5a8b8; font-style: italic; }
.mdw-pv-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 6px; border-top: 1px solid #d7c6df; font-size: 7.5px; color: #625b68; }
.mdw-pv-footer span:first-child { font-weight: 700; color: #61316e; }
.mdw-pv-footer.blank { border-color: #e6e0e8; }

@media (max-width: 1100px) {
  .mdw-editor-body { grid-template-columns: 1fr; }
  .mdw-mobile-tabs { display: flex; }
  .mdw-pane-preview { position: static; }
  .mdw-preview-scroll { max-height: none; }
  .mdw-editor[data-mobile="edit"] .mdw-pane-preview { display: none; }
  .mdw-editor[data-mobile="preview"] .mdw-pane-edit { display: none; }
}
@media (max-width: 640px) {
  .mdw-editor-head { padding: 10px; }
  .mdw-editor-actions { width: 100%; }
  .mdw-editor-actions .button { flex: 1 1 auto; }
  .mdw-editor-actions .button span { display: none; }
  .mdw-page { padding: 16px 16px 18px; min-height: 0; font-size: 10.5px; }
  .mdw-pv-address-row { grid-template-columns: 1fr; margin-bottom: 16px; }
  .mdw-pv-info { padding-left: 0; }
  .mdw-image { grid-template-columns: 1fr; }
  .mdw-pair { grid-template-columns: 1fr; }
  .mdw-picker-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kurzbrief-Dialog (short-letter.js) */
.sl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.sl-form .field.full { grid-column: 1 / -1; }
.sl-form .field label { font-size: 11.5px; }
.sl-reference { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 10px; border: 1px solid #e0d8e3; border-radius: 4px; background: #faf7fb; font-size: 14px; color: #4d2a55; font-weight: 600; }
.sl-reference svg { width: 16px; height: 16px; }
.sl-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 10px 12px; border: 1px solid #ded4e1; border-radius: 6px; background: #fbf9fc; }
.sl-checks label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; text-transform: none; cursor: pointer; }
.sl-checks input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--accent); }
.sl-docs { display: flex; flex-direction: column; gap: 4px; max-height: 170px; overflow: auto; padding: 8px 10px; border: 1px solid #ded4e1; border-radius: 6px; background: #fff; }
.sl-docs label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 500; text-transform: none; cursor: pointer; }
.sl-docs label small { color: var(--muted); }
.sl-docs input { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--accent); }
.sl-docs .muted { font-size: 13px; }
.sl-text-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.sl-text-tools label { margin: 0 !important; }
.sl-options { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border: 1px solid #ded4e1; border-radius: 6px; background: #fbf9fc; }
.sl-options label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; text-transform: none; }
.sl-options input { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--accent); }
.sl-options .muted { width: 100%; font-size: 12.5px; }
.sl-history { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sl-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; border: 1px solid #ede8ef; border-radius: 6px; background: #faf8fb; font-size: 13px; }
.sl-history li strong { color: #1f2933; }
.sl-history li small { color: var(--muted); }
.sl-history li .button { margin-left: auto; }
@media (max-width: 640px) {
  .sl-form, .sl-checks { grid-template-columns: 1fr; }
}

/* Eingebettet als Reiter in „Dokumente & Medien“ (app.js renderDocuments): Kopfzeile mit Aktualisieren/Neu über der Werkzeugleiste. */
.mdw-embedded-head { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.documents-tabs { margin: 0 0 14px; }
