.wsc-portal {
    --wsc-green: #126a50; --wsc-green-dark: #084c3a; --wsc-green-soft: #eef6f1;
    --wsc-level-event: #edf7f0; --wsc-level-event-border: #c5ddce; --wsc-level-main: #d1eadb; --wsc-level-main-border: #82b79a; --wsc-level-sub: #b4dcc3; --wsc-level-sub-border: #2d7656;
    --wsc-ink: #10261f; --wsc-muted: #5c7169; --wsc-line: #d6e2dc;
    --wsc-tile-radius: 12px; --wsc-tile-gap: 18px; container-type: inline-size;
    max-width: 1100px; margin: 32px auto; border: 1px solid var(--wsc-line); border-radius: 16px;
    background: #f7faf8; color: var(--wsc-ink); overflow: hidden;
    box-shadow: 0 10px 34px rgba(18,68,52,.08); font: 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
}
/* Clipping without a scroll container allows the editor's sidebar to follow the page. */
@supports (overflow: clip) { .wsc-portal { overflow: clip; } }
.wsc-portal *, .wsc-portal *::before, .wsc-portal *::after { box-sizing: border-box; }
.wsc-portal h2, .wsc-portal h3, .wsc-portal h4 { margin-top: 0; color: var(--wsc-ink); }
.wsc-portal h3 { font-size: 22px; }
.wsc-portal a { color: var(--wsc-green-dark); }
.wsc-portal-head, .wsc-portal-title-row, .wsc-portal-actions, .wsc-portal-inline, .wsc-portal-identity, .wsc-portal-brand, .wsc-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wsc-portal-head { padding: 22px 26px; background: #fff; }
.wsc-portal-brand, .wsc-login-brand, .wsc-portal-identity { justify-content: flex-start; }
.wsc-portal-brand h2, .wsc-login-brand h2 { margin: 0; font-size: 22px; }
.wsc-portal-brand small, .wsc-login-brand small, .wsc-portal-identity small { display: block; color: var(--wsc-muted); }
.wsc-brand-logo { display: block; flex: 0 0 auto; width: 88px; height: 58px; object-fit: contain; object-position: center; }
.wsc-login-brand .wsc-brand-logo { width: 112px; height: 72px; }
.wsc-brand-copy { min-width: 0; }
.wsc-brand-copy small { margin-top: 2px; }
.wsc-portal-identity .dashicons { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wsc-green-soft); color: var(--wsc-green); }
/* Portalweite Ziele bilden die oberste Navigationsebene; die aktive Arbeitsfläche bleibt visuell vorn. */
.wsc-portal .wsc-portal-global-nav { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; padding: 14px 26px 20px; border-top: 1px solid #c1d5c8; border-bottom: 1px solid #b9cfbf; background: #f0f5f2; box-shadow: inset 0 4px 0 var(--wsc-green); }
.wsc-portal .wsc-portal-global-heading { grid-column: 1 / -1; margin: 2px 0 1px; color: var(--wsc-green-dark); font-size: 13px; font-weight: 750; letter-spacing: .025em; line-height: 1.35; }
.wsc-portal .wsc-portal-global-nav a { min-width: 0; min-height: 76px; padding: 15px; border-color: #b9cfbf; font-weight: 650; text-decoration: none; }
.wsc-portal .wsc-portal-global-nav a:not(.is-active):hover { border-color: var(--wsc-level-sub-border); background: #f8fcf9; }
.wsc-portal .wsc-portal-global-nav a[aria-current="page"] { padding-inline-start: 11px; border-color: var(--wsc-level-sub-border); border-inline-start: 5px solid var(--wsc-green-dark); color: var(--wsc-green-dark); background: var(--wsc-level-sub); }
/* Compact location cue for long portal pages that have no settings selector. */
.wsc-portal-scroll-location { position: fixed; z-index: 99998; min-height: 42px; padding: 10px 16px; border: 1px solid #bacfc3; border-radius: 8px; background: #e9efeb; box-shadow: 0 5px 15px rgba(18,68,52,.16); color: #084c3a; font: 700 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif; overflow-wrap: anywhere; pointer-events: none; }
.wsc-portal-scroll-location[hidden] { display: none !important; }
.wsc-portal .wsc-event-nav { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr)); gap: 12px; margin: 0 22px 22px; padding: 0; border: 0; background: transparent; }
.wsc-portal .wsc-main-nav-tile { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; min-height: 68px; padding: 10px; border: 1px solid var(--wsc-line); border-radius: 9px; background: #fff; color: var(--wsc-green-dark); text-decoration: none; }
.wsc-main-nav-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wsc-green-soft); color: var(--wsc-green-dark); }
.wsc-main-nav-copy { min-width: 0; }
.wsc-main-nav-copy strong, .wsc-main-nav-copy small { display: block; }
.wsc-main-nav-copy strong { line-height: 1.2; }
.wsc-main-nav-copy small { margin-top: 3px; color: var(--wsc-muted); font-size: 11px; font-weight: 400; line-height: 1.3; }
.wsc-portal .wsc-main-nav-tile.is-active { border-color: var(--wsc-level-sub-border); background: var(--wsc-level-sub); color: var(--wsc-green-dark); box-shadow: 0 3px 10px rgba(18,106,80,.10); }
.wsc-main-nav-tile.is-active .wsc-main-nav-icon { background: #fff; color: var(--wsc-green-dark); }
.wsc-main-nav-tile.is-active .wsc-main-nav-copy small { color: #365b4d; }
/* Hierarchieebene 2: Hauptfunktion – bewusst weich, aber klarer als der Veranstaltungskontext. */
.wsc-portal .wsc-event-nav .wsc-main-nav-tile.is-active { border-color: var(--wsc-level-main-border); border-inline-start: 5px solid var(--wsc-green); padding-inline-start: 6px; background: var(--wsc-level-main); color: var(--wsc-green-dark); box-shadow: 0 3px 10px rgba(18,106,80,.10); }
.wsc-portal .wsc-event-nav .wsc-main-nav-tile.is-active .wsc-main-nav-icon { background: #fff; color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-nav .wsc-main-nav-tile.is-active .wsc-main-nav-copy small { color: #365b4d; }
.wsc-portal .wsc-event-nav .wsc-main-nav-tile:not(.is-active):hover { border-color: var(--wsc-level-main-border); box-shadow: 0 2px 8px rgba(18,106,80,.10); }
/* Veranstaltungskontext bleibt sichtbar, ohne die aktuelle Arbeit zu überlagern. */
.wsc-portal .wsc-event-context { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 22px 12px; padding: 12px 16px; border: 1px solid var(--wsc-level-event-border); border-radius: var(--wsc-tile-radius); background: var(--wsc-level-event); color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-context-main { display: flex; align-items: center; gap: 12px; flex: 1 1 520px; min-width: 0; }
.wsc-portal .wsc-event-context-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; min-height: 58px; height: auto; padding: 5px; border: 0; border-radius: 8px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(8,76,58,.12); }
.wsc-portal .wsc-event-context-logo img { display: block; max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; object-position: center; }
.wsc-portal .wsc-event-context-copy { flex: 1 1 360px; min-width: 0; }
.wsc-portal .wsc-event-context-label { display: block; margin-bottom: 2px; color: #4f7465; font-size: 12px; font-weight: 650; }
.wsc-portal .wsc-event-context h3 { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-context-date { margin: 4px 0 0; color: #244e3f; font-size: 13px; }
.wsc-portal .wsc-event-context-date strong { color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-context-area { margin: 3px 0 0; color: #4f7465; font-size: 12px; }
.wsc-portal .wsc-event-context-area strong { color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-context > a { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; background: #fff; border-color: #8fb7a5; color: var(--wsc-green-dark); }
.wsc-portal a:focus-visible, .wsc-portal button:focus-visible { outline: 3px solid var(--wsc-green-dark); outline-offset: 4px; }
.wsc-portal [tabindex="-1"]:focus:not([data-wsc-flash]) { outline: none; box-shadow: none; }
/* Navigation moves focus for screen readers; a heading should never look like a button. */
.wsc-portal :is(h2,h3,h4).wsc-jump-heading:focus { border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; outline: none !important; text-decoration: none; }
.wsc-portal #wsc-create-event:focus { outline: none; border-color: var(--wsc-green); background: #fbfefa; }
.wsc-portal .wsc-admin-wrap { --wsc-blue: #084c3a; --wsc-green: #126a50; }
/* Every portal workspace keeps the focus ring clear of the clipped outer edge. */
.wsc-portal > .wsc-portal-overview, .wsc-portal > .wsc-portal-card, .wsc-portal > .wsc-portal-settings,
.wsc-portal > .wsc-user-management, .wsc-portal > .wsc-security-page,
.wsc-portal > .wsc-registration-detail { margin: 22px; }
.wsc-portal .wsc-user-management > .wsc-portal-notice,
.wsc-portal .wsc-user-management > .wsc-portal-error,
.wsc-portal .wsc-security-page > .wsc-portal-notice,
.wsc-portal .wsc-security-page > .wsc-portal-error { margin-inline: 0; }
.wsc-portal-card { margin: 0 0 20px; padding: 22px; border: 1px solid var(--wsc-line); border-radius: 12px; background: #fff; }
.wsc-portal-subcard { margin: 18px 0; padding: 18px; border: 1px solid var(--wsc-line); border-radius: 10px; background: #f8fbf9; }
.wsc-section-heading { margin: 36px 0 18px; }
.wsc-section-heading p, .wsc-card-deadlines, .wsc-portal-help, .wsc-portal label small { color: var(--wsc-muted); }
.wsc-portal .wsc-portal-events { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: var(--wsc-tile-gap); }
.wsc-portal .wsc-event-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 220px; padding: 24px; border: 1px solid #b5cec1; border-radius: var(--wsc-tile-radius); background: #fff; color: var(--wsc-ink); text-decoration: none; }
.wsc-portal .wsc-event-card:hover { border-color: var(--wsc-green); box-shadow: 0 5px 18px rgba(18,68,52,.08); }
.wsc-portal .wsc-event-card:focus-visible { border-color: var(--wsc-green-dark); background: #f5fbf7; }
.wsc-portal .wsc-event-card.is-upcoming { border-color: #82b79a; border-inline-start: 4px solid var(--wsc-green); padding-inline-start: 21px; }
.wsc-portal .wsc-event-card.is-past { background: #f6f8f7; }
.wsc-portal .wsc-event-card-visual { display: grid; place-items: center; width: 100%; min-height: 92px; max-height: 120px; padding: 6px; border-radius: 9px; background: #fff; overflow: hidden; }
.wsc-portal .wsc-event-card-visual img { display: block; max-width: 100%; max-height: 106px; width: auto; height: auto; object-fit: contain; }
.wsc-portal .wsc-event-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--wsc-green-soft); color: var(--wsc-green); flex: 0 0 auto; font-size: 30px; }
.wsc-portal .wsc-event-icon[hidden], .wsc-portal .wsc-event-card-visual img[hidden] { display: none; }
.wsc-portal .wsc-event-status { display: inline-block; margin: 4px 0 0; padding: 3px 9px; border-radius: 16px; background: #e4f2e8; color: var(--wsc-green-dark); font-size: 12px; font-weight: 700; }
.wsc-portal .wsc-event-card.is-past .wsc-event-status { background: #e9eeeb; color: #4b5f55; }
.wsc-portal .wsc-event-card h4 { margin: 16px 0 9px; font-size: 1.5rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.wsc-portal .wsc-event-date { display: block; margin: 0 0 6px; color: var(--wsc-ink); font-size: 14px; overflow-wrap: anywhere; }
.wsc-portal .wsc-event-date strong { color: var(--wsc-green-dark); }
.wsc-portal .wsc-event-number { display: block; margin-bottom: 10px; color: var(--wsc-muted); font-size: 12px; overflow-wrap: anywhere; }
.wsc-portal .wsc-user-list { margin: 0 0 22px; }
.wsc-portal .wsc-user-list > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.wsc-portal .wsc-user-count { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px; border-radius: 50%; background: var(--wsc-green-soft); color: var(--wsc-green-dark); font-size: 14px; }
.wsc-portal .wsc-user-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); gap: var(--wsc-tile-gap); align-items: start; }
.wsc-portal .wsc-user-grid > .wsc-portal-card { margin: 0; }
.wsc-portal .wsc-user-entry { min-width: 0; border: 1px solid #b5cec1; border-radius: var(--wsc-tile-radius); background: #fff; overflow: hidden; }
.wsc-portal .wsc-user-entry[open] { grid-column: 1 / -1; border-color: var(--wsc-green); }
.wsc-portal .wsc-user-entry.is-inactive { background: #f6f8f7; }
.wsc-portal .wsc-user-tile { display: flex; flex-direction: column; align-items: flex-start; min-height: 202px; padding: 20px 22px; list-style: none; cursor: pointer; }
.wsc-portal .wsc-user-tile::-webkit-details-marker { display: none; }
.wsc-portal .wsc-user-tile:focus-visible { outline: 3px solid var(--wsc-green-dark); outline-offset: -3px; }
.wsc-portal .wsc-user-tile:hover { background: #f2f9f5; }
.wsc-portal .wsc-user-entry[open] > .wsc-user-tile { min-height: 0; background: var(--wsc-green-soft); }
.wsc-portal .wsc-user-tile-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; background: var(--wsc-green-soft); color: var(--wsc-green-dark); }
.wsc-portal .wsc-user-tile-name { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.wsc-portal .wsc-user-tile-email { color: var(--wsc-muted); font-size: 13px; overflow-wrap: anywhere; }
.wsc-portal .wsc-user-tile-role { margin-top: 10px; color: var(--wsc-green-dark); font-weight: 650; }
.wsc-portal .wsc-user-tile-status { display: inline-block; margin-top: 5px; padding: 2px 9px; border-radius: 16px; background: #e4f2e8; color: var(--wsc-green-dark); font-size: 12px; font-weight: 700; }
.wsc-portal .wsc-user-entry.is-invited .wsc-user-tile-status { background: #fff3d6; color: #674810; }
.wsc-portal .wsc-user-entry.is-inactive .wsc-user-tile-status { background: #e7ece8; color: #3d5148; }
.wsc-portal .wsc-user-tile-mfa { margin-top: 5px; color: var(--wsc-muted); font-size: 12px; }
.wsc-portal .wsc-user-tile-chevron { align-self: flex-end; margin-top: auto; color: var(--wsc-green-dark); font-size: 22px; line-height: 1; transform: rotate(-90deg); }
.wsc-portal .wsc-user-entry[open] .wsc-user-tile-chevron { transform: none; }
.wsc-portal .wsc-user-entry-body { padding: 20px 22px; border-top: 1px solid var(--wsc-line); }
.wsc-portal .wsc-user-entry-body > form { margin: 0 0 14px; }
.wsc-portal .wsc-readonly-role { display: flex; align-items: center; min-height: 46px; padding: 9px 12px; border: 1px solid var(--wsc-line); border-radius: 6px; background: #eff3f0; color: #344a3f; font-weight: 650; }
.wsc-portal [data-wsc-user-event-access][hidden] { display: none; }
.wsc-portal-logout, .wsc-portal-actions a, .wsc-portal-secondary, .wsc-portal button { display: inline-block; padding: 9px 14px; border: 1px solid var(--wsc-green); border-radius: 7px; background: #fff; color: var(--wsc-green-dark); text-decoration: none; cursor: pointer; font: inherit; font-weight: 650; }
.wsc-portal button:hover, .wsc-portal a:hover { filter: brightness(.96); }
.wsc-portal .wsc-portal-primary, .wsc-card-primary { background: var(--wsc-green) !important; color: #fff !important; }
.wsc-portal-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; justify-content: stretch; margin-top: 16px; }
.wsc-portal-actions a { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.25; }
.wsc-portal-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; }
.wsc-portal .wsc-user-core-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.wsc-portal .wsc-user-core-grid > label, .wsc-portal .wsc-user-core-grid > .wsc-role-display { min-width: 0; }
.wsc-portal .wsc-role-display > strong { display: block; margin-bottom: 5px; }
.wsc-portal .wsc-user-core-grid input, .wsc-portal .wsc-user-core-grid select { width: 100%; }
.wsc-portal label { display: block; margin-bottom: 12px; font-weight: 650; }
.wsc-portal label small { display: block; margin-top: 5px; font-weight: 400; }
.wsc-portal input[type="text"], .wsc-portal input[type="search"], .wsc-portal input[type="email"], .wsc-portal input[type="date"], .wsc-portal input[type="datetime-local"], .wsc-portal input[type="number"], .wsc-portal input[type="password"], .wsc-portal input[type="file"], .wsc-portal textarea, .wsc-portal select { width: 100%; min-height: 43px; margin-top: 5px; padding: 9px 11px; border: 1px solid #a9bdb4; border-radius: 6px; background: #fff; color: var(--wsc-ink); font: inherit; }
.wsc-portal textarea { resize: vertical; }
.wsc-portal input:focus, .wsc-portal textarea:focus, .wsc-portal select:focus { outline: 3px solid rgba(18,106,80,.18); border-color: var(--wsc-green); }
.wsc-portal .wsc-datetime-field { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.wsc-portal .wsc-datetime-field legend { margin-bottom: 4px; font-weight: 650; }
.wsc-datetime-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .55fr); gap: 12px; max-width: 560px; }
.wsc-portal .wsc-datetime-controls label { min-width: 0; margin: 0; }
.wsc-portal .wsc-datetime-field > small { display: block; margin-top: 6px; color: var(--wsc-muted); }
.wsc-datetime-warning { margin: 7px 0 0; color: #8b1f1f; }
@media(max-width:480px) { .wsc-datetime-controls { grid-template-columns: minmax(0,1fr); } }
.wsc-portal input[type="checkbox"] { width: auto; min-height: 0; margin: 0 7px 0 0; }
.wsc-portal input[type="checkbox"], .wsc-portal input[type="radio"] { accent-color: var(--wsc-green); }
.wsc-check-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.wsc-check-row label { margin: 0; }
.wsc-flow-note { margin: 14px 0; padding: 12px 14px; border-left: 4px solid var(--wsc-green); background: var(--wsc-green-soft); }
.wsc-portal .wsc-capacity-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 12px 16px; margin: 14px 0 12px; }
.wsc-portal .wsc-capacity-grid > label { min-width: 0; margin: 0; }
.wsc-portal .wsc-capacity-grid > .wsc-step-checkbox { grid-column: 1 / -1; }
.wsc-portal .wsc-auth-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 12px; margin: 18px 0; }
.wsc-portal .wsc-auth-step { min-width: 0; padding: 18px; border-radius: 9px; border-left: 4px solid var(--wsc-green); background: #f2f9f5; }
.wsc-portal .wsc-auth-step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wsc-green-dark); color: #fff; font-weight: 700; }
.wsc-portal .wsc-auth-step h5 { margin: 12px 0 8px; color: var(--wsc-green-dark); font-size: 16px; }
.wsc-portal .wsc-auth-step p { margin: 0 0 12px; }
.wsc-portal .wsc-auth-step button { max-width: 100%; white-space: normal; }
.wsc-portal .wsc-auth-step .wsc-totp-qr svg { max-width: 100%; height: auto; }
.wsc-portal .wsc-auth-step code { overflow-wrap: anywhere; }
.wsc-portal .wsc-auth-disable { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--wsc-line); }
.wsc-recipient-help { display: grid; gap: 3px; margin: 16px 0 8px; padding: 12px 14px; border: 1px solid #b9d3c6; border-radius: 8px; background: #f3f8f5; }
.wsc-recipient-help span, .wsc-recipient-help small { color: var(--wsc-muted); }
.wsc-recipient-help small { margin-top: 5px; }
.wsc-export-options { display: grid; gap: 12px; margin: 16px 0 20px; padding: 14px; border: 1px solid var(--wsc-line); border-radius: 8px; background: #f8fbf9; }
.wsc-export-option { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.wsc-periodic-export { flex-wrap: wrap; }
.wsc-periodic-export > label { display: flex; align-items: center; gap: 8px; margin: 0; }
.wsc-export-interval { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 0 0 8px !important; }
.wsc-portal .wsc-export-interval input[type="number"] { width: 82px; min-height: 38px; margin: 0; }
.wsc-export-options > small { color: var(--wsc-muted); }
.wsc-export-block { margin-top: 18px; padding: 18px; border: 1px solid var(--wsc-line); border-radius: 10px; background: #fbfdfc; }
.wsc-export-block h4 { margin-bottom: 4px; font-size: 18px; }
.wsc-column-groups { display: grid; gap: 12px; margin: 14px 0; }
.wsc-column-group { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--wsc-line); border-radius: 8px; background: #fff; }
.wsc-column-group legend { padding: 0 5px; font-weight: 700; color: var(--wsc-green-dark); }
.wsc-column-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 6px 18px; }
.wsc-portal .wsc-column-choice { display: flex; align-items: flex-start; min-width: 0; gap: 7px; margin: 0; padding: 5px 2px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.wsc-portal .wsc-column-choice input { flex: 0 0 auto; margin: 4px 0 0; }
.wsc-backup-list { display: grid; gap: 8px; margin-top: 14px; }
.wsc-backup-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--wsc-line); border-radius: 7px; background: #fff; }
.wsc-backup-list span, .wsc-backup-list small { display: block; }
.wsc-backup-list small { color: var(--wsc-muted); }
.wsc-backup-description { min-width: 0; }
.wsc-backup-description code { display: block; max-width: 100%; margin: 5px 0; overflow-wrap: anywhere; color: #355247; font-size: 11px; }
.wsc-backup-actions { display: flex !important; align-items: center; gap: 8px; flex: 0 0 auto; }
.wsc-backup-passwords { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 16px 0 6px; }
.wsc-portal .wsc-backup-passwords label { display: grid; gap: 5px; min-width: 0; }
.wsc-portal .wsc-backup-passwords input { width: 100%; min-width: 0; }
.wsc-backup-password-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.wsc-portal .wsc-backup-password-actions button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.wsc-portal-danger { min-height: 38px; padding: 8px 13px; border: 1px solid #a72d2d; border-radius: 6px; background: #fff; color: #8b1f1f; font: inherit; font-weight: 700; cursor: pointer; }
.wsc-portal-danger:hover, .wsc-portal-danger:focus { background: #fff1f1; border-color: #7e1717; color: #7e1717; }
.wsc-backup-import { margin-top: 18px; padding: 16px; border: 1px solid var(--wsc-line); border-radius: 8px; background: #fff; }
.wsc-backup-import h4 { margin: 0 0 8px; }
.wsc-backup-import input[type="file"] { display: block; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid #a9bdb4; border-radius: 6px; background: #fff; }
.wsc-import-confirm { display: flex !important; align-items: flex-start; gap: 9px; margin: 14px 0 !important; padding: 12px; background: #fff8e5; border-left: 4px solid #c58a00; }
.wsc-import-confirm input { margin-top: 3px; }
.wsc-retention-block { border-left: 4px solid #c58a13; background: #fffdf7; }
.wsc-portal-upload { display: grid; gap: 7px; margin: 16px 0; padding: 14px; border-radius: 8px; background: #f8fbf9; }
.wsc-portal-notice, .wsc-portal-error { margin: 18px 22px; padding: 12px 16px; border-left: 4px solid #278244; background: #eef8f1; }
.wsc-portal-error { border-left-color: #b32d2e; background: #fcf0f1; }
.wsc-portal [data-wsc-flash]:focus { outline: 2px solid var(--wsc-green-dark); outline-offset: 2px; }
.wsc-portal-settings #wsc-settings-result:empty { display: none; }
.wsc-portal-settings #wsc-settings-result > .wsc-portal-notice,
.wsc-portal-settings #wsc-settings-result > .wsc-portal-error { margin: 0 0 14px; }
.wsc-insert-tools, .wsc-subject-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 10px 0; }
.wsc-mail-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,300px); align-items: start; gap: 18px; }
.wsc-mail-editor-fields { min-width: 0; }
.wsc-mail-token-sidebar { position: sticky; top: var(--wsc-sticky-tabs-bottom, 205px); min-width: 0; max-height: calc(100dvh - var(--wsc-sticky-tabs-bottom, 205px) - 12px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid #b9d3c6; border-radius: 9px; background: #f4f9f6; }
.wsc-mail-token-title { display: block; margin-bottom: 9px; color: var(--wsc-green-dark); }
.wsc-mail-token-destination { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.wsc-mail-token-destination legend { margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.wsc-portal .wsc-mail-token-destination label { display: flex; align-items: center; gap: 5px; flex: 1 1 100px; min-height: 39px; margin: 0; padding: 6px 8px; border: 1px solid var(--wsc-line); border-radius: 7px; background: #fff; cursor: pointer; font-size: 13px; }
.wsc-portal .wsc-mail-token-destination label:has(input:checked) { border-color: var(--wsc-green); background: #e0f0e6; color: var(--wsc-green-dark); }
.wsc-portal .wsc-mail-token-destination input { margin: 0; accent-color: var(--wsc-green); }
.wsc-mail-token-sidebar .wsc-form-field-tokens { margin: 0; }
.wsc-mail-token-sidebar .wsc-form-field-tokens > strong { font-size: 13px; }
.wsc-form-field-tokens { display: grid; gap: 7px; margin: 12px 0; }
.wsc-form-token-group { border: 1px solid #a9cdb7; border-radius: 7px; background: #fff; }
.wsc-form-token-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 6px; background: #eaf4ee; color: var(--wsc-green-dark); font-weight: 700; cursor: pointer; list-style: none; }
.wsc-form-token-group summary:hover { background: #d7eadd; }
.wsc-form-token-group summary:focus-visible { outline: 2px solid var(--wsc-green); outline-offset: 2px; }
.wsc-form-token-group[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: #d1eadb; box-shadow: inset 3px 0 0 var(--wsc-green-dark); }
.wsc-form-token-group summary::-webkit-details-marker { display: none; }
.wsc-form-token-group summary::before { content: '▸'; display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border: 1px solid #94bda5; border-radius: 6px; background: #fff; font-size: 19px; line-height: 1; }
.wsc-form-token-group[open] summary::before { content: '▾'; border-color: var(--wsc-green-dark); background: var(--wsc-green-dark); color: #fff; }
.wsc-form-token-group summary span { margin-left: auto; white-space: nowrap; font-size: 12px; font-weight: 500; color: #365b4d; }
.wsc-form-token-buttons { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--wsc-line); }
.wsc-portal .wsc-token-button { padding: 6px 9px; border-color: #9eb9ac; background: #fff; font-size: 13px; font-weight: 600; }
.wsc-portal .wsc-token-button.is-inserted { border-color: var(--wsc-green); background: var(--wsc-green-soft); color: var(--wsc-green-dark); }
@container (max-width: 850px) {
    .wsc-mail-editor-layout { grid-template-columns: minmax(0,1fr); }
    .wsc-mail-token-sidebar { position: static; max-height: none; overflow: visible; }
}
.wsc-template-guide { display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #b9d3c6; border-radius: 8px; background: #f3f8f5; }
.wsc-template-guide span, .wsc-template-guide small { color: var(--wsc-muted); }
.wsc-deadline-step { margin-top: 16px; padding: 18px; border: 1px solid var(--wsc-line); border-radius: 10px; background: #fbfdfc; }
.wsc-deadline-step h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 18px; }
.wsc-deadline-step h4 > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--wsc-green); color: #fff; font-size: 14px; }
.wsc-step-checkbox, .wsc-confirmation-switch { display: flex !important; align-items: center; gap: 7px; padding: 12px; border-radius: 8px; background: var(--wsc-green-soft); }
.wsc-confirmation-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; padding: 0; border: 0; }
.wsc-confirmation-modes legend { grid-column: 1 / -1; margin-bottom: 2px; font-weight: 750; }
.wsc-confirmation-modes label { display: flex; align-items: flex-start; gap: 8px; min-height: 94px; margin: 0; padding: 14px; border: 1px solid #a9bdb4; border-radius: 8px; background: #fff; cursor: pointer; }
.wsc-confirmation-modes label:has(input:checked) { border: 2px solid var(--wsc-green); background: var(--wsc-green-soft); }
.wsc-confirmation-modes label span, .wsc-confirmation-modes label small { display: block; }
.wsc-confirmation-modes label small { margin-top: 4px; color: var(--wsc-muted); font-weight: 400; }
.wsc-confirmation-date { max-width: 560px; }
.wsc-mail-more { margin: 8px 0; }
.wsc-mail-more summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 9px; border: 1px solid #b9d3c6; border-radius: 6px; background: #f1f8f3; color: var(--wsc-green-dark); cursor: pointer; font-weight: 650; list-style: none; }
.wsc-mail-more summary::-webkit-details-marker { display: none; }
.wsc-mail-more summary::before { content: '▸'; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: #fff; font-size: 18px; line-height: 1; }
.wsc-mail-more[open] summary::before { content: '▾'; background: var(--wsc-green-dark); color: #fff; }
.wsc-mail-more summary:hover { background: #d7eadd; }
.wsc-settings-tabs { position: sticky; top: var(--wsc-sticky-top, 32px); z-index: 20; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; padding: 10px; border: 1px solid var(--wsc-line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(18,68,52,.08); }
.wsc-sticky-sentinel { display: block; width: 0; height: 0; pointer-events: none; }
.wsc-settings-tabs.is-stuck { border-color: #c7d2cc; background: #e9efeb; box-shadow: 0 6px 18px rgba(18,68,52,.16); }
.wsc-portal .wsc-settings-tabs button { position: relative; min-height: 64px; padding: 9px 10px 9px 44px; border-color: var(--wsc-line); text-align: left; }
.wsc-settings-tabs button > span { position: absolute; left: 10px; top: 12px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--wsc-green-soft); color: var(--wsc-green-dark); }
.wsc-settings-tabs button small { display: block; margin-top: 2px; color: var(--wsc-muted); font-weight: 400; }
/* Die aktive Unterfunktion trägt die stärkste sichtbare Betonung. */
.wsc-portal .wsc-settings-tabs button.is-active { border-color: var(--wsc-level-sub-border); border-inline-start: 5px solid var(--wsc-green-dark); padding-inline-start: 40px; background: var(--wsc-level-sub); color: var(--wsc-green-dark); box-shadow: inset 0 0 0 1px rgba(8,76,58,.15); }
.wsc-settings-tabs button.is-active > span { background: var(--wsc-green); color: #fff; }
.wsc-settings-tabs button.is-active small { color: #365b4d; }
.wsc-portal .wsc-settings-tabs button:not(.is-active):hover { border-color: var(--wsc-level-main-border); background: var(--wsc-level-event); }
.wsc-portal .wsc-settings-tabs button[data-wsc-settings-tab="loeschen"] { border-color: #d9a9a9; color: #8b1f1f; }
.wsc-settings-tabs button[data-wsc-settings-tab="loeschen"] > span { background: #fceaea; color: #8b1f1f; }
.wsc-portal .wsc-settings-tabs button[data-wsc-settings-tab="loeschen"].is-active { border-color: #bb5a5a; border-inline-start-color: #992727; background: #fceaea; color: #751b1b; box-shadow: inset 0 0 0 1px rgba(139,31,31,.12); }
.wsc-settings-tabs button[data-wsc-settings-tab="loeschen"].is-active > span { background: #992727; color: #fff; }
.wsc-portal .wsc-settings-tabs button[data-wsc-settings-tab="loeschen"]:hover { border-color: #bb5a5a; background: #fceaea; }
.wsc-portal .wsc-event-delete-box h3 { color: #8b1f1f; }
.wsc-portal-settings.is-tabbed .wsc-event-delete-box[data-wsc-settings-section].is-active { border-inline-start-color: #992727; }
.wsc-event-delete-box .wsc-portal-danger { margin-top: 12px; background: #992727; color: #fff; }
.wsc-event-delete-box .wsc-portal-danger:hover, .wsc-event-delete-box .wsc-portal-danger:focus { background: #751b1b; color: #fff; }
.wsc-portal-settings.is-tabbed[data-wsc-current-area="loeschen"] .wsc-sticky-save { display: none; }
.wsc-portal-settings.is-tabbed [data-wsc-settings-section] { display: none; }
.wsc-portal-settings.is-tabbed [data-wsc-settings-section].is-active { display: block; }
.wsc-portal-settings .wsc-portal-card.is-scroll-current,
.wsc-portal-settings .wsc-mail-editor.is-scroll-current,
.wsc-portal-settings .wsc-deadline-step.is-scroll-current,
.wsc-portal-settings .wsc-export-block.is-scroll-current {
    border-color: var(--wsc-level-sub-border);
    background: #f5faf7;
    box-shadow: inset 4px 0 0 var(--wsc-green-dark);
}
/* Inset markers identify the current card without expanding headers into fields. */
.wsc-portal-settings .wsc-portal-card[data-wsc-settings-section]:has(.is-scroll-current):not(.is-scroll-current) {
    box-shadow: inset 4px 0 0 var(--wsc-green);
}
.wsc-portal-settings .wsc-portal-card[data-wsc-settings-section]:is(.is-scroll-current, :has(.is-scroll-current)) > h3,
.wsc-portal-settings .wsc-portal-card[data-wsc-settings-section]:is(.is-scroll-current, :has(.is-scroll-current)) > .wsc-portal-title-row h3 { color: var(--wsc-green-dark); font-weight: 750; }
.wsc-portal-settings .wsc-deadline-step.is-scroll-current > h4,
.wsc-portal-settings .wsc-export-block.is-scroll-current > .wsc-portal-title-row { color: var(--wsc-green-dark); }
.wsc-portal-settings .wsc-export-block.is-scroll-current > .wsc-portal-title-row h4 { color: var(--wsc-green-dark); font-weight: 750; }
.wsc-portal-settings .wsc-event-delete-box.is-scroll-current { border-color: #bb5a5a; background: #fff8f8; box-shadow: inset 4px 0 0 #992727; }
.wsc-portal-settings .wsc-event-delete-box.is-scroll-current > h3 { color: #8b1f1f; }
.wsc-portal-settings [data-wsc-settings-section="email"] > .wsc-portal-title-row h3 { color: var(--wsc-green-dark); font-size: 24px; font-weight: 750; }
.wsc-portal-settings .wsc-flow-note.is-scroll-current { border-inline-start-color: var(--wsc-green-dark); background: var(--wsc-level-main); }
.wsc-portal-settings .wsc-mail-editor.is-scroll-current { background: #f0f8f3; }
.wsc-portal-settings .wsc-mail-editor.is-scroll-current > .wsc-mail-editor-head h4 { color: var(--wsc-green-dark); font-weight: 750; }
.wsc-portal-settings .wsc-form-field-row.is-scroll-current,
.wsc-portal-settings .wsc-consent-row.is-scroll-current { border-color: var(--wsc-level-sub-border); }
.wsc-portal-settings .wsc-consent-row.is-scroll-current { background: #f0f8f3; box-shadow: inset 4px 0 0 var(--wsc-green); }
#wsc-form-fields .wsc-form-field-row.is-scroll-current { background: var(--wsc-level-event); box-shadow: inset 4px 0 0 var(--wsc-green); }
.wsc-portal-settings #wsc-form-fields .wsc-form-field-row.is-scroll-current.is-system { border-inline-start-width: 1px; }
.wsc-sticky-save { position: sticky; bottom: 12px; z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px; border: 1px solid var(--wsc-line); border-radius: 10px; background: #e9efeb; box-shadow: 0 5px 20px rgba(18,68,52,.12); }
.wsc-sticky-save .wsc-save-context { display: grid; gap: 1px; min-width: 0; }
.wsc-sticky-save [data-wsc-save-label] { color: var(--wsc-green-dark); font-size: 13px; font-weight: 750; }
.wsc-sticky-save [data-wsc-save-location] { display: block; color: var(--wsc-green-dark); font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.wsc-sticky-save small { display: block; }
.wsc-sticky-save small { color: var(--wsc-muted); }
.wsc-sticky-save .wsc-save-mobile-help, .wsc-mobile-detail-text, .wsc-mobile-select-all > span { display: none; }
.wsc-portal .wsc-mobile-select-all { margin: 0; cursor: pointer; }
.wsc-sticky-actions { display: flex; align-items: center; gap: 9px; }
@media (max-width: 680px) { .wsc-sticky-save { align-items: stretch; flex-direction: column; } .wsc-sticky-actions { flex-wrap: wrap; } .wsc-sticky-actions > button { flex: 1 1 auto; } }
.wsc-preview-modal[hidden] { display: none !important; }
.wsc-preview-modal { --wsc-green: #126a50; --wsc-green-dark: #084c3a; --wsc-green-soft: #eef6f1; --wsc-ink: #10261f; --wsc-muted: #5c7169; --wsc-line: #d6e2dc; position: fixed; z-index: 2147483647; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--wsc-ink); font: 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; }
.wsc-preview-modal *, .wsc-preview-modal *::before, .wsc-preview-modal *::after { box-sizing: border-box; }
.wsc-preview-modal button { display: inline-block; padding: 8px 12px; border: 1px solid var(--wsc-green); border-radius: 6px; background: #fff; color: var(--wsc-green-dark); font: inherit; font-weight: 700; cursor: pointer; }
.wsc-preview-modal :is(button,input,select,textarea):focus-visible { outline: 3px solid var(--wsc-green-dark); outline-offset: 3px; }
.wsc-preview-modal button:hover { background: var(--wsc-green-soft); }
.wsc-preview-backdrop { position: absolute; inset: 0; background: #edf2ef; }
.wsc-preview-modal.is-site-context .wsc-preview-backdrop { background: rgba(9,28,22,.72); }
.wsc-preview-dialog { position: relative; display: flex; flex-direction: column; width: min(1120px,96vw); max-height: 94vh; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.wsc-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--wsc-line); }
.wsc-preview-head h3 { margin: 2px 0 0; }
.wsc-preview-head small { color: var(--wsc-muted); }
.wsc-preview-modal .wsc-preview-close { width: 42px; height: 42px; padding: 0; border: 0; font-size: 30px; line-height: 1; }
.wsc-preview-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 22px 0; padding: 10px 13px; border-left: 4px solid #c58a13; background: #fff8e7; }
.wsc-preview-context-toggle { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; font-weight: 700; }
.wsc-preview-context-toggle input { width: auto; min-height: 0; margin: 0; }
.wsc-preview-tabs { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 14px 22px; border-bottom: 1px solid var(--wsc-line); background: #fff; }
.wsc-preview-tabs > strong { flex: 0 0 auto; margin-right: 3px; }
.wsc-preview-modal.is-form-preview .wsc-preview-tabs { display: none; }
.wsc-preview-modal.is-mail-preview [data-wsc-preview-tab="form"] { display: none; }
.wsc-mail-editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.wsc-mail-editor-head h4 { margin: 0; }
.wsc-portal .wsc-preview-heading > :first-child { min-width: 0; }
.wsc-portal .wsc-preview-heading > .wsc-preview-open { flex: 0 0 auto; margin-inline-start: auto; min-height: 41px; }
.wsc-preview-modal .wsc-preview-tabs button { flex: 0 0 auto; padding: 8px 11px; }
.wsc-preview-modal .wsc-preview-tabs button.is-active { background: var(--wsc-green); color: #fff; }
.wsc-preview-canvas { flex: 1 1 auto; overflow: auto; padding: 24px; background: #edf2ef; }
.wsc-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--wsc-line); background: #fff; }
.wsc-preview-footer span { color: var(--wsc-muted); font-size: 13px; }
.wsc-preview-open-body { overflow: hidden; }
.wsc-preview-form { max-width: 820px; margin: 0 auto; padding: 28px; border: 1px solid #c9d8d0; border-radius: 10px; background: #fff; color: #10261f; }
.wsc-preview-form h2 { margin-bottom: 8px; font-size: 28px; }
.wsc-preview-intro { margin: 15px 0; }
.wsc-preview-countdown { margin: 14px 0; padding: 11px 14px; border-radius: 7px; background: #eef6f1; color: #084c3a; font-weight: 700; }
.wsc-preview-form fieldset { margin: 18px 0; padding: 17px; border: 1px solid #c9d8d0; border-radius: 8px; }
.wsc-preview-form legend { padding: 0 8px; font-weight: 750; }
.wsc-preview-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.wsc-preview-field { margin: 0 !important; }
.wsc-preview-field > span { display: block; margin-bottom: 5px; }
.wsc-preview-form input, .wsc-preview-form textarea, .wsc-preview-form select { opacity: 1 !important; color: #263c34 !important; background: #fff !important; }
.wsc-preview-check { display: flex !important; gap: 7px; align-items: flex-start; grid-column: 1 / -1; margin: 0 !important; font-weight: 400 !important; }
.wsc-preview-check input { width: auto !important; min-height: 0 !important; margin-top: 4px !important; }
.wsc-preview-consents .wsc-preview-check + .wsc-preview-check { margin-top: 12px !important; }
.wsc-preview-consents .wsc-preview-check span { min-width: 0; overflow-wrap: anywhere; }
.wsc-preview-file { padding: 10px; border: 1px solid #a9bdb4; border-radius: 6px; background: #f8faf9; font-weight: 600; }
.wsc-preview-file span { margin-left: 8px; color: var(--wsc-muted); font-weight: 400; }
.wsc-preview-required { color: var(--wsc-muted); }
.wsc-preview-form-messages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #d6e2dc; }
.wsc-preview-form-messages div { display: grid; gap: 4px; padding: 12px; border-radius: 7px; background: #eef6f1; }
.wsc-preview-form-messages span { color: var(--wsc-muted); }
.wsc-preview-logo { margin: 0 0 18px; text-align: center; }
.wsc-preview-logo img { display: inline-block; max-width: 320px; max-height: 170px; width: auto; height: auto; }
.wsc-preview-email { max-width: 840px; margin: 0 auto; border: 1px solid #c9d8d0; background: #fff; box-shadow: 0 5px 18px rgba(18,68,52,.08); }
.wsc-preview-mail-meta { display: grid; gap: 5px; padding: 16px 20px; border-bottom: 1px solid #dfe6e2; background: #f7faf8; }
.wsc-preview-mail-body { padding: 24px; color: #17232d; font-family: Arial,sans-serif; line-height: 1.45; }
.wsc-preview-message { margin-bottom: 18px; }
.wsc-preview-mail-table { width: 100%; margin: 16px 0; border-collapse: collapse; border: 1px solid #cbd8df; font-size: 14px; }
.wsc-preview-mail-table th, .wsc-preview-mail-table td { padding: 8px 12px; border-bottom: 1px solid #dfe6ea; text-align: left; vertical-align: top; }
.wsc-preview-mail-table th:not(.wsc-preview-table-section) { width: 34%; background: #f5f7f8; }
.wsc-preview-mail-table .wsc-preview-table-section { padding: 10px 12px; background: #084c3a; color: #fff; font-size: 15px; }
.wsc-preview-retention { margin-top: 18px; padding: 12px; border-left: 4px solid var(--wsc-green); background: var(--wsc-green-soft); }
.wsc-preview-participation-timing { margin-top: 18px; padding: 12px; border-left: 4px solid var(--wsc-green-dark); background: #eef7f3; }
.wsc-preview-attachment { display: inline-block; margin: 18px 0; padding: 9px 12px; border: 1px solid #c9d8d0; border-radius: 6px; background: #f7faf8; font-weight: 700; }
.wsc-portal-table { overflow-x: auto; }
.wsc-portal-table table { width: 100%; min-width: 800px; border-collapse: collapse; }
.wsc-portal-table th, .wsc-portal-table td { padding: 10px; border: 1px solid var(--wsc-line); text-align: left; vertical-align: top; }
.wsc-portal-table thead th { background: var(--wsc-green-dark); color: #fff; }
.wsc-portal-detail-row > td { background: #f8fbf9; }
.wsc-portal-detail-row summary { cursor: pointer; color: var(--wsc-green-dark); font-weight: 700; }
.wsc-portal-registration-details { max-width: 800px; padding: 12px 0; }
.wsc-portal-registration-details table { min-width: 0; }
.wsc-login-shell { max-width: 560px; border: 0; background: transparent; box-shadow: none; }
.wsc-login-card { padding: 28px; border: 1px solid var(--wsc-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 34px rgba(18,68,52,.1); }
.wsc-login-remember { display: flex !important; align-items: center; }
.wsc-password-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.wsc-portal .wsc-password-field input { margin-top: 5px; }
.wsc-portal .wsc-password-field .wsc-password-toggle { min-height: 43px; white-space: nowrap; }
.wsc-narrow-card { max-width: 680px; }
.wsc-empty-state { padding: 28px; border: 1px dashed #a9bdb4; border-radius: 10px; text-align: center; }
.wsc-registration-capacity { margin: 0 0 18px; padding: 17px 19px; border: 1px solid #a9cdb7; border-radius: 10px; background: #f0f8f2; }
.wsc-registration-capacity-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.wsc-capacity-label { display: block; color: var(--wsc-green-dark); font-size: 14px; font-weight: 700; }
.wsc-capacity-amount { display: block; margin-top: 3px; color: var(--wsc-green-dark); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.wsc-capacity-amount span { font-size: 16px; font-weight: 600; }
.wsc-capacity-waiting { display: grid; gap: 1px; min-width: 132px; padding: 8px 12px; border: 1px solid #96baa6; border-radius: 8px; background: #fff; text-align: center; }
.wsc-capacity-waiting strong { color: var(--wsc-green-dark); font-size: 24px; line-height: 1.2; }
.wsc-capacity-waiting span { font-size: 13px; }
.wsc-capacity-track { height: 10px; margin-top: 13px; border-radius: 999px; background: #d4e6d8; overflow: hidden; }
.wsc-capacity-track > span { display: block; height: 100%; border-radius: inherit; background: var(--wsc-green); }
.wsc-registration-capacity p { margin: 12px 0 0; color: #365b4d; font-size: 13px; }
.wsc-confirmation-overview { display: grid; gap: 5px; margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--wsc-green-dark); background: var(--wsc-green-soft); }
.wsc-confirmation-overview.is-manual { border-left-color: #126a50; background: #eef6f1; }
/* Farben für Ergebnisse und Zustände; Bezeichnung bleibt unabhängig davon sichtbar. */
.wsc-portal .wsc-status { display: inline-block; padding: 3px 9px; border: 1px solid #4b5f55; border-radius: 999px; background: #eef1ef; color: #344b40; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.wsc-portal .wsc-status-bestaetigt { border-color: #126a50; background: #e4f2e8; color: #084c3a; }
.wsc-portal :is(.wsc-status-neu, .wsc-status-geprueft, .wsc-status-warteliste) { border-color: #855b0f; background: #fff3d6; color: #674810; }
.wsc-portal .wsc-status-abgelehnt { border-color: #992727; background: #fceaea; color: #751b1b; }
.wsc-portal .wsc-portal-table td.wsc-participation-state--confirmed { box-shadow: inset 4px 0 #126a50; background: #e4f2e8; }
.wsc-portal .wsc-portal-table td.wsc-participation-state--pending,
.wsc-portal .wsc-portal-table td.wsc-participation-state--waitlist { box-shadow: inset 4px 0 #855b0f; background: #fff3d6; }
.wsc-portal .wsc-portal-table td.wsc-participation-state--rejected { box-shadow: inset 4px 0 #992727; background: #fceaea; }
.wsc-portal .wsc-portal-table td.wsc-participation-state--inactive { box-shadow: inset 4px 0 #4b5f55; background: #eef1ef; }
.wsc-portal .wsc-capacity-waiting { border-color: #855b0f; background: #fff3d6; }
.wsc-portal .wsc-capacity-waiting strong { color: #674810; }
.wsc-portal .wsc-portal-waitlist-notice { border-left-color: #855b0f; background: #fff3d6; }
.wsc-portal .wsc-event-status, .wsc-portal .wsc-user-tile-status { border: 1px solid #126a50; }
.wsc-portal .wsc-event-card.is-past .wsc-event-status,
.wsc-portal .wsc-user-entry.is-inactive .wsc-user-tile-status { border-color: #4b5f55; }
.wsc-portal .wsc-user-entry.is-invited .wsc-user-tile-status { border-color: #855b0f; }
.wsc-registration-filter-panel { margin: 18px 0; padding: 16px; border: 1px solid var(--wsc-line); border-radius: 10px; background: #f8fbf9; }
.wsc-registration-export { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.wsc-registration-filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wsc-registration-filter-heading strong, .wsc-registration-filter-heading span { display: block; }
.wsc-registration-filter-heading span { margin-top: 2px; color: var(--wsc-muted); font-size: 13px; }
.wsc-registration-filter-heading a { white-space: nowrap; font-weight: 650; }
.wsc-registration-filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(190px,1fr) auto; gap: 12px; align-items: end; margin: 0; }
.wsc-registration-filters label { display: grid; gap: 5px; margin: 0; font-weight: 700; }
.wsc-portal .wsc-registration-filters input[type="search"],
.wsc-portal .wsc-registration-filters select,
.wsc-portal .wsc-registration-filters .wsc-filter-submit { height: 48px; min-height: 48px; margin: 0; }
.wsc-registration-filters .wsc-filter-submit { background: var(--wsc-green); color: #fff; }
.wsc-filter-result { display: flex; align-items: center; gap: 8px 18px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--wsc-line); }
.wsc-filter-result span { color: var(--wsc-muted); }
.wsc-bulk-confirmation-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; background: #eef7f3; }
.wsc-bulk-confirmation-bar button:disabled { cursor: not-allowed; opacity: .55; }
.wsc-select-column { width: 44px; text-align: center !important; }
.wsc-select-column input { width: 18px !important; min-height: 18px !important; margin: 0 !important; }
.wsc-registration-pagination { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 18px; }
.wsc-bulk-confirmation-bar[hidden] { display: none !important; }
.wsc-portal .wsc-portal-card.has-floating-selection {
    padding-bottom: calc(var(--wsc-selection-bar-height, 80px) + max(14px, env(safe-area-inset-bottom)) + 18px);
}
.wsc-bulk-confirmation-bar.is-floating {
    position: fixed; inset: auto auto max(14px,env(safe-area-inset-bottom)) 50%;
    z-index: 100000; width: min(670px,calc(100vw - 28px)); margin: 0; transform: translateX(-50%);
    border: 1px solid #8fb7a5; box-shadow: 0 -4px 14px rgba(8,54,38,.16), 0 10px 32px rgba(8,54,38,.22);
    color: #10261f; font: 600 15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.wsc-bulk-confirmation-bar.is-floating button {
    min-height: 43px; padding: 9px 15px; border: 1px solid #084c3a; border-radius: 6px;
    background: #126a50; color: #fff; font: inherit; cursor: pointer;
}
.wsc-bulk-confirmation-bar.is-floating button:focus-visible,
.wsc-row-detail-link:focus-visible { outline: 3px solid #084c3a; outline-offset: 3px; }
.wsc-portal-table td small { font-size: 14px; line-height: 1.45; color: #344b40; }
.wsc-portal .wsc-portal-table .wsc-row-detail-link {
    display: inline-grid; place-items: center; min-width: 42px; min-height: 42px;
    border: 0; border-radius: 6px; background: transparent; color: #084c3a;
    font-size: 24px; font-weight: 700; text-decoration: none;
}
.wsc-portal .wsc-portal-table .wsc-row-detail-link:hover { background: #eaf4ef; }

.wsc-iframe-origin-list { display: grid; gap: 12px; margin: 12px 0 0; }
.wsc-iframe-origin-item { padding: 13px 14px; border: 1px solid var(--wsc-line); border-radius: 8px; background: #f8fbf9; }
.wsc-iframe-origin-item > strong { display: block; margin-bottom: 4px; color: var(--wsc-green-dark); }
.wsc-iframe-origin-item > small { display: block; margin-top: 6px; color: var(--wsc-muted); }

.wsc-copy-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; margin-top: 6px; }
.wsc-copy-field textarea { min-height: 78px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.wsc-copy-field button { min-height: 43px; }
.wsc-action-dialog { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 18px; font: 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif; }
.wsc-action-dialog-backdrop { position: absolute; inset: 0; background: rgba(10,31,24,.62); }
.wsc-action-dialog > section { position: relative; width: min(520px,100%); padding: 24px; border: 1px solid #c9d9d1; border-radius: 12px; background: #fff; color: #10261f; box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.wsc-action-dialog h3 { margin: 0 0 10px; font-size: 21px; color: #10261f; }
.wsc-action-dialog p { margin: 0 0 20px; color: #435b52; }
.wsc-action-dialog-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.wsc-action-dialog button { min-height: 42px; padding: 9px 14px; border: 1px solid #126a50; border-radius: 7px; background: #fff; color: #084c3a; cursor: pointer; font: inherit; font-weight: 700; }
.wsc-action-dialog .wsc-action-dialog-confirm { background: #126a50; color: #fff; }
@media (max-width: 720px) {
    .wsc-brand-logo { width: 74px; height: 50px; }
    .wsc-login-brand .wsc-brand-logo { width: 96px; height: 64px; }
    .wsc-portal { margin: 14px 8px; border-radius: 10px; }
    .wsc-portal-head, .wsc-portal-title-row, .wsc-portal-inline { align-items: stretch; flex-direction: column; }
    .wsc-portal-identity { flex-wrap: wrap; }
    .wsc-portal .wsc-event-nav { grid-template-columns: 1fr; margin: 0 14px 14px; }
    .wsc-portal .wsc-main-nav-tile { min-height: 58px; }
    .wsc-portal .wsc-event-context { margin: 14px 14px 10px; padding: 12px; }
    .wsc-portal .wsc-event-context-main { align-items: flex-start; }
    .wsc-portal .wsc-event-context-logo { flex-basis: 64px; width: 64px; min-height: 56px; height: auto; padding: 5px; }
    .wsc-portal > .wsc-portal-overview, .wsc-portal > .wsc-portal-card, .wsc-portal > .wsc-portal-settings,
    .wsc-portal > .wsc-user-management, .wsc-portal > .wsc-security-page,
    .wsc-portal > .wsc-registration-detail { margin: 14px; }
    .wsc-portal-card { padding: 16px; }
    .wsc-settings-tabs { position: static; grid-template-columns: 1fr 1fr; }
    .wsc-portal .wsc-capacity-grid { grid-template-columns: minmax(0,1fr); }
    .wsc-preview-note { align-items: stretch; flex-direction: column; }
    .wsc-preview-context-toggle { flex: 1 1 auto; }
    .wsc-sticky-save { align-items: stretch; flex-direction: column; }
    .wsc-sticky-actions, .wsc-preview-footer { align-items: stretch; flex-direction: column; }
    .wsc-sticky-actions button { width: 100%; }
    .wsc-preview-modal { padding: 6px; }
    .wsc-preview-dialog { width: 100%; max-height: 98vh; border-radius: 9px; }
    .wsc-preview-head, .wsc-preview-canvas { padding: 16px; }
    .wsc-preview-note { margin: 10px 16px 0; }
    .wsc-preview-tabs { padding: 10px 16px; }
    .wsc-preview-form { padding: 18px; }
    .wsc-preview-form-grid { grid-template-columns: 1fr; }
    .wsc-preview-form-messages { grid-template-columns: 1fr; }
    .wsc-password-field { grid-template-columns: 1fr; }
    .wsc-periodic-export { align-items: flex-start; flex-direction: column; }
    .wsc-export-interval { margin-left: 26px !important; }
    .wsc-confirmation-modes { grid-template-columns: 1fr; }
    .wsc-mail-editor-head { align-items: stretch; flex-direction: column; }
    .wsc-portal .wsc-preview-heading > .wsc-preview-open { width: 100%; margin-inline-start: 0; }
    .wsc-registration-filter-heading, .wsc-filter-result { align-items: stretch; flex-direction: column; gap: 5px; }
    .wsc-registration-filter-heading a { white-space: normal; }
    .wsc-registration-filters { grid-template-columns: 1fr; }
    .wsc-bulk-confirmation-bar { align-items: stretch; flex-direction: column; }
    .wsc-copy-field { grid-template-columns: 1fr; }
    .wsc-portal-actions { grid-template-columns: 1fr; }
    .wsc-portal .wsc-user-core-grid { grid-template-columns: 1fr; }
    .wsc-backup-list > div { align-items: stretch; flex-direction: column; }
    .wsc-backup-actions { align-items: stretch; flex-direction: column; }
    .wsc-action-dialog-buttons { align-items: stretch; flex-direction: column-reverse; }
}

/* Container-based reflow also covers narrow columns on a wide screen. */
@container (max-width: 620px) {
    .wsc-portal .wsc-portal-head { flex-direction: column; align-items: stretch; padding: 18px; }
    .wsc-portal .wsc-portal-identity { flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
    .wsc-portal .wsc-portal-global-nav { padding: 10px 18px; }
    .wsc-portal > .wsc-portal-overview, .wsc-portal > .wsc-portal-card, .wsc-portal > .wsc-portal-settings,
    .wsc-portal > .wsc-user-management, .wsc-portal > .wsc-security-page,
    .wsc-portal > .wsc-registration-detail { margin: 14px; }
    .wsc-portal .wsc-portal-events, .wsc-portal .wsc-event-nav { grid-template-columns: minmax(0,1fr); }
    .wsc-portal .wsc-event-nav { margin: 0 14px 14px; }
    .wsc-portal .wsc-event-card { min-height: 190px; padding: 20px; }
    .wsc-portal .wsc-event-context { margin: 14px 14px 10px; padding: 12px; flex-direction: column; align-items: flex-start; }
    .wsc-portal .wsc-event-context-main { flex: 0 1 auto; width: 100%; align-items: flex-start; }
    .wsc-portal .wsc-event-context-logo { flex-basis: 64px; width: 64px; min-height: 56px; height: auto; padding: 5px; }
    .wsc-portal .wsc-event-context-copy { flex: 1 1 auto; width: auto; }
    .wsc-portal .wsc-main-nav-tile { min-height: 70px; }
    .wsc-portal .wsc-user-core-grid { grid-template-columns: 1fr; }
    .wsc-registration-filters { grid-template-columns: 1fr; }

    /* The narrow portal needs one complete navigation tile per row. */
    .wsc-portal .wsc-settings-tabs { grid-template-columns: minmax(0, 1fr); }
    .wsc-portal .wsc-settings-tabs button { min-width: 0; overflow-wrap: anywhere; }
    .wsc-portal .wsc-portal-grid { grid-template-columns: minmax(0, 1fr); }
    .wsc-portal .wsc-mail-editor-head { min-width: 0; }
    .wsc-portal .wsc-mail-editor-head h4 { min-width: 0; max-width: 100%; overflow-wrap: anywhere; line-height: 1.3; }

    /* Keep both distinct save scopes reachable without obscuring the editor. */
    .wsc-portal .wsc-sticky-save { display: grid; gap: 6px; bottom: max(6px, env(safe-area-inset-bottom)); padding: 8px; }
    .wsc-portal .wsc-sticky-save [data-wsc-save-label] { font-size: 12px; }
    .wsc-portal .wsc-sticky-save [data-wsc-save-location] { font-size: 14px; line-height: 1.2; }
    .wsc-portal .wsc-sticky-save .wsc-save-long-help { display: none; }
    .wsc-portal .wsc-sticky-save .wsc-save-mobile-help { display: block; color: #4b5f55; font-size: 12px; line-height: 1.25; }
    .wsc-portal .wsc-sticky-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 6px; }
    .wsc-portal .wsc-portal-settings[data-wsc-settings-scope="export"] .wsc-sticky-actions { grid-template-columns: minmax(0, 1fr); }
    .wsc-portal .wsc-sticky-actions button { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 6px 4px; font-size: 13px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }

    /* The registrations stay a single accessible table; rows reflow to cards. */
    .wsc-portal .wsc-portal-table { min-width: 0; overflow: visible; }
    .wsc-portal .wsc-portal-table table { display: block; width: 100%; min-width: 0; }
    .wsc-portal .wsc-portal-table thead,
    .wsc-portal .wsc-portal-table tbody,
    .wsc-portal .wsc-portal-table thead tr { display: block; }
    .wsc-portal .wsc-portal-table thead th:not(.wsc-select-column) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .wsc-portal .wsc-portal-table thead th.wsc-select-column { display: block; width: 100%; margin-bottom: 10px; border-radius: 7px; text-align: left !important; }
    .wsc-portal .wsc-mobile-select-all { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
    .wsc-portal .wsc-mobile-select-all > span { display: inline; }
    .wsc-portal .wsc-portal-table tbody tr { display: block; min-width: 0; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--wsc-line); border-radius: 9px; background: #fff; }
    .wsc-portal .wsc-portal-table tbody td { display: block; width: 100%; min-width: 0; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--wsc-line); overflow-wrap: anywhere; }
    .wsc-portal .wsc-portal-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: #344b40; font-size: 12px; font-weight: 700; }
    .wsc-portal .wsc-portal-table tbody td:last-child { border-bottom: 0; padding-bottom: 0; }
    .wsc-portal .wsc-portal-table tbody td.wsc-select-column { display: flex; align-items: center; gap: 10px; }
    .wsc-portal .wsc-portal-table tbody td.wsc-select-column::before { margin: 0; }
    .wsc-portal .wsc-portal-table tbody td.wsc-select-column.is-unavailable { display: none; }
    .wsc-portal .wsc-portal-table tbody td.wsc-registration-open::before,
    .wsc-portal .wsc-portal-table tbody tr.wsc-registration-empty td::before { display: none; }
    .wsc-portal .wsc-portal-table .wsc-row-detail-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--wsc-green); font-size: 15px; }
    .wsc-portal .wsc-mobile-detail-text { display: inline; }
}

@media (max-width: 680px) {
    .wsc-bulk-confirmation-bar.is-floating { flex-direction: column; align-items: stretch; }
}

.wsc-portal .wsc-copy-feedback { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--wsc-green-dark); overflow-wrap: anywhere; }

/* Registration detail is a portal workspace, not an administration frame. */
.wsc-portal .wsc-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.wsc-portal .wsc-detail-grid > *, .wsc-portal .wsc-registration-detail { min-width: 0; }
.wsc-portal .wsc-detail-section h4, .wsc-portal .wsc-detail-actions h4 { font-size: 1.1rem; line-height: 1.4; }
.wsc-portal .wsc-detail-fields { margin: 0; }
.wsc-portal .wsc-detail-fields > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wsc-line); }
.wsc-portal .wsc-detail-fields > div:last-child { border-bottom: 0; }
.wsc-portal .wsc-detail-fields dt { font-weight: 650; overflow-wrap: anywhere; }
.wsc-portal .wsc-detail-fields dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.wsc-portal .wsc-detail-actions p, .wsc-portal .wsc-registration-detail h3 { overflow-wrap: anywhere; }
.wsc-portal .wsc-logo-figure { margin: 0 0 16px; }
.wsc-portal .wsc-logo-figure img { max-width: 100%; height: auto; max-height: 240px; display: block; object-fit: contain; }
.wsc-portal .wsc-logo-figure figcaption { margin-top: 10px; font-size: .9em; overflow-wrap: anywhere; }
.wsc-portal .wsc-detail-send { border: 1px solid var(--wsc-line); border-radius: 8px; margin: 14px 0 0; background: #fff; }
.wsc-portal .wsc-detail-send summary { padding: 12px; min-height: 44px; cursor: pointer; color: var(--wsc-green-dark); font-weight: 650; }
.wsc-portal .wsc-detail-send form { padding: 0 12px 14px; }
.wsc-portal .wsc-detail-send button { white-space: normal; width: 100%; }
.wsc-portal .wsc-reject-card { border-color: #dbc6c6; }
.wsc-portal .wsc-reject-card form { display: grid; gap: 12px; }
.wsc-portal .wsc-reject-card label { display: flex; align-items: flex-start; gap: 8px; }
.wsc-portal .wsc-reject-card label input { flex: 0 0 auto; margin-top: 5px; }
.wsc-portal .wsc-reject-button { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #ad5055; border-radius: 6px; background: #fff5f5; color: #872930; font: inherit; font-weight: 700; cursor: pointer; }
.wsc-portal .wsc-reject-button:hover { background: #fbe9ea; }
.wsc-portal .wsc-send-confirm { font-size: .95em; }
.wsc-portal .wsc-logout-form { margin: 0; }
.wsc-portal .wsc-portal-logout { min-height: 44px; border: 1px solid var(--wsc-line); padding: 8px 12px; border-radius: 6px; background: #fff; color: var(--wsc-green-dark); font: inherit; cursor: pointer; }
.wsc-portal summary:focus-visible, .wsc-portal button:focus-visible, .wsc-portal a:focus-visible { outline: 3px solid var(--wsc-green-dark); outline-offset: 3px; }
.wsc-preview-plain { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 monospace; }
@container (max-width: 740px) { .wsc-portal .wsc-detail-grid { grid-template-columns: minmax(0,1fr); } }
@container (max-width: 450px) { .wsc-portal .wsc-detail-fields > div { grid-template-columns: minmax(0,1fr); gap: 3px; } .wsc-portal .wsc-detail-actions .wsc-portal-card { padding: 16px; } }
