/* Shared feedback and the settings section; no changes to navigation colours. */
.save-toast-region {position:fixed;z-index:10050;right:24px;bottom:24px;width:min(440px,calc(100vw - 32px));display:grid;gap:12px;pointer-events:none;}
.save-toast-region:empty {display:none;}
.save-toast {display:flex;align-items:flex-start;gap:14px;padding:16px 18px;border:1px solid var(--brand-active);border-left:4px solid var(--brand-primary);border-radius:12px;background:var(--status-success-soft);color:var(--brand-link);box-shadow:0 8px 30px #102d3624;font-size:14px;line-height:1.5;pointer-events:auto;max-height:calc(100dvh - 48px);overflow:auto;}
.save-toast > span {flex:1;min-width:0;overflow-wrap:anywhere;white-space:normal;}
.save-toast [data-toast-close] {flex:0 0 28px;width:28px;height:28px;padding:0;border:0;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer;border-radius:4px;}
.save-toast [data-toast-close]:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
.save-toast[data-level="error"],.save-toast[data-level="warning"] {background:var(--status-warning-soft);border-color:var(--status-warning);color:var(--status-warning);}
#schnellzugriff .card-head {padding:24px 24px 0;margin:0;border:0;}
#schnellzugriff .card-head h2 {margin:0 0 8px;}
#schnellzugriff .card-head p {margin:0;line-height:1.6;}
#schnellzugriff [data-favorites-visibility-form] {padding:22px 24px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:18px;}
#schnellzugriff .favorites-visibility-choice,[data-favorites-info-dialog] .favorites-visibility-choice {display:flex;align-items:flex-start;gap:12px;line-height:1.6;max-width:100%;margin:0;}
#schnellzugriff .favorites-visibility-choice input,[data-favorites-info-dialog] .favorites-visibility-choice input {flex:0 0 18px;width:18px;height:18px;margin:4px 0 0;}
#schnellzugriff .favorites-visibility-choice span {min-width:0;}
#schnellzugriff [data-favorites-visibility-form] p {margin:0;line-height:1.6;max-width:78ch;}
#schnellzugriff .button {max-width:100%;white-space:normal;}
[data-favorites-info-dialog] [data-favorites-visibility-form] {display:flex;flex-direction:column;align-items:flex-start;gap:16px;}
[data-favorites-info-dialog] [data-favorites-visibility-form] p {margin:0;line-height:1.6;}
[data-visibility-error][hidden] {display:none;}
@media(max-width:680px) {
  .save-toast-region {right:16px;bottom:16px;}
  #schnellzugriff .card-head {padding:20px 18px 0;}
  #schnellzugriff [data-favorites-visibility-form] {padding:18px;}
}

/* Supplementary attachment views share the portal's available content width. */
.embedded-attachments,.embedded-document {padding:24px;background:var(--brand-surface);border:1px solid var(--brand-border);border-radius:14px;margin:24px 0;min-width:0;}
.embedded-heading h2 {margin:6px 0 10px;}
.embedded-heading p,.embedded-note p {line-height:1.6;}
.embedded-note {padding:18px 20px;background:var(--brand-background);border:1px solid var(--brand-active);border-radius:10px;margin:18px 0;color:var(--brand-text);overflow-wrap:anywhere;}
.embedded-note p {margin:8px 0;}
.embedded-list {display:grid;gap:14px;margin:20px 0;}
.embedded-item {display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.6fr);gap:16px 24px;padding:20px;border:1px solid var(--brand-border);border-radius:10px;min-width:0;}
.embedded-file,.embedded-state {min-width:0;overflow-wrap:anywhere;}
.embedded-file b {display:block;font-size:16px;}
.embedded-file p {margin:8px 0;line-height:1.5;}
.embedded-file small,.embedded-state small {display:block;margin-top:8px;color:var(--brand-text-muted);}
.embedded-actions {display:flex;gap:10px;flex-wrap:wrap;align-items:center;grid-column:1/-1;}
.embedded-actions .button,.embedded-filter .button,.embedded-prepare .button {white-space:normal;max-width:100%;text-align:center;}
.embedded-prepare {display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;}
.embedded-prepare small {max-width:54ch;line-height:1.6;}
.embedded-anchor {white-space:nowrap;font-size:13px;margin:0 12px;}
.embedded-pdf {display:block;width:100%;height:min(76vh,1000px);min-height:420px;border:1px solid var(--brand-border);border-radius:8px;margin-top:20px;background:var(--brand-background);}
.embedded-filter {display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;padding:20px 0;}
.embedded-filter label {display:grid;gap:8px;flex:1 1 240px;min-width:0;}
.embedded-filter input,.embedded-filter select {width:100%;min-height:44px;}
.embedded-filter .button {min-height:44px;}
.embedded-table {width:100%;overflow:auto;}
.embedded-table table {width:100%;min-width:680px;table-layout:fixed;}
.embedded-table th:first-child {width:34%;}
.embedded-table td {vertical-align:top;overflow-wrap:anywhere;white-space:normal;}
.embedded-table td small {display:block;color:var(--brand-text-muted);margin-top:6px;}
.embedded-table .embedded-additional td {padding-top:0;}
.embedded-additional summary {padding:10px 0;font-size:13px;cursor:pointer;}
.embedded-additional dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 18px;}
.embedded-additional dt {font-size:12px;color:var(--brand-text-muted);}
.embedded-additional dd {margin:4px 0 0;white-space:pre-wrap;min-height:1em;}
.embedded-pagination {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:22px;}
.embedded-pagination > div {display:flex;gap:10px;}
.embedded-download-warning form {display:grid;gap:22px;justify-items:start;margin-top:24px;}
.embedded-download-warning label {display:flex;gap:12px;align-items:flex-start;line-height:1.6;}
.embedded-download-warning input[type="checkbox"] {flex:0 0 18px;width:18px;height:18px;margin-top:4px;}
[data-favorites-info-dialog] [data-favorites-visibility-form] {align-items:stretch;gap:0;}
[data-favorites-info-dialog] .favorites-dialog-body {display:flex;flex-direction:column;gap:18px;align-items:flex-start;}
@media(max-width:1000px) {.embedded-item {grid-template-columns:minmax(0,1fr);}.embedded-additional dl {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px) {.embedded-attachments,.embedded-document {padding:18px;}.embedded-note {padding:16px;}.embedded-item {padding:16px;}.embedded-filter label {flex-basis:100%;}.embedded-pdf {min-height:360px;}.embedded-additional dl {grid-template-columns:minmax(0,1fr);}}

.embedded-diagnostic-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:0 24px 24px;overflow-wrap:anywhere;}
@media(max-width:1000px) {.embedded-diagnostic-grid {grid-template-columns:minmax(0,1fr);}}

.embedded-pdf-page {display:block;max-width:100%;height:auto;margin:24px auto 0;border:1px solid var(--brand-border);background:var(--brand-surface);}
