@font-face {
    font-family: Vereinsserif;
    src: url('/vereinsschrift/TypographytimesRegular.ttf') format('truetype');
    font-display: swap;
}
:root {
    --red: #b31023;
    --red-deep: #8f0c1b;
    --red-pale: #f8e9ec;
    --green: #008013;
    --ink: #222326;
    --muted: #5a5d65;
    --ground: #f5f5f7;
    --paper: #fff;
    --line: #d9d9df;
    --gutter: clamp(18px, 3.2vw, 52px);
    --sidebar-width: 256px;
    --page-heading-gap: clamp(24px, 2.4vw, 36px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 16px/1.55 system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; }
a { color: var(--red-deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.topbar :focus-visible { outline-color: white; }
:root.pointer-focus :focus { outline: none; }
:is(input, select, textarea, [contenteditable]):focus { outline: none; box-shadow: none; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 9; top: 8px; left: 8px; width: auto; height: auto; padding: 8px 12px; clip-path: none; background: white; }
h1, h2, h3 { font-family: Vereinsserif, Georgia, serif; font-weight: normal; line-height: 1.08; margin: 0 0 .36em; }
h1 { font-size: clamp(37px, 4.2vw, 60px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3vw, 37px); letter-spacing: -.025em; }
h3 { font-size: 24px; }
p { margin: 0 0 .9em; }
small { font-size: .84em; color: var(--muted); }
.lead { max-width: 61ch; color: var(--muted); font-size: 17px; }

.topbar { color: #fff; background: var(--red); }
.top-inner { min-height: 83px; max-width: 1540px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 49px; height: 49px; padding: 3px; object-fit: contain; background: white; border-radius: 5px; }
.brand strong { display: block; line-height: 1.25; }
.brand span span { display: block; font-size: 13px; color: #ffe2e6; }

body:has(> .portal) { display: flex; flex-direction: column; min-height: 100dvh; }
.portal { flex: 1; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-areas: "navigation content"; }
.navigation { grid-area: navigation; position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto; padding: 20px 15px 15px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.navigation .brand { gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.navigation .brand img { flex: none; width: 40px; height: 40px; }
.navigation .brand span span { font-size: 12px; color: var(--muted); }
.sidebar-account { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.sidebar-account > div { min-width: 0; overflow-wrap: anywhere; }
.sidebar-account strong, .sidebar-account span { display: block; line-height: 1.3; }
.sidebar-account strong { font-size: 14px; }
.sidebar-account span { font-size: 12px; color: var(--muted); }
.logout-button.button { min-width: 44px; padding: 0; font-size: 17px; }
.navigation nav { display: grid; gap: 18px; }
.nav-group { display: grid; gap: 4px; min-width: 0; }
.nav-group-label { margin: 0; padding: 0 12px 2px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.4; }
.navigation nav a, .member-navigation > summary { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 44px; color: var(--ink); text-decoration: none; border-radius: 5px; font-size: 15px; font-weight: 600; }
.navigation nav a:hover { background: var(--ground); }
.navigation nav a[aria-current] { background: var(--red-pale); color: var(--red-deep); }
.fa-icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.nav-icon { width: 21px; font-size: 15px; }
.back-site { padding: 0 12px; font-size: 14px; color: var(--muted); }
.content { grid-area: content; padding: 28px var(--gutter) 12px; min-width: 0; }
.content:not(.content-service) { width: 100%; max-width: 1200px; justify-self: center; }
.content.content-service { display: flex; flex-direction: column; min-width: 0; height: 100dvh; padding: 0; overflow: hidden; }
.content > h1 { margin-bottom: var(--page-heading-gap); }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: var(--page-heading-gap); }
.page-heading h1 { margin: 0; }
.page-heading > .button, .section-bar > .button { margin-left: auto; gap: 7px; }
.workspace-heading { margin-bottom: var(--page-heading-gap); }
.workspace-heading h1 { margin: 9px 0 0; }
.workspace-back { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; font-weight: 650; text-decoration: none; }
.workspace-back:hover { text-decoration: underline; }
.workspace { padding: clamp(16px, 2.4vw, 32px); background: var(--paper); }
.form.mail-compose, .form.account-form, .form.provider-form { gap: 20px; }
.form-section { display: grid; gap: 14px; min-width: 0; }
.form-section h2, .form-section .notice { margin: 0; }
.membership-self { display: grid; gap: 14px; padding: 0; border: 0; }
.membership-self legend { padding: 0; margin-bottom: 10px; }
.selected-account { display: grid; gap: 4px; margin: 16px 0; }
.selected-account span { color: var(--muted); overflow-wrap: anywhere; }
.account-picker { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: clamp(18px, 3vw, 32px); border: 0; border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 16px 64px rgb(34 35 38 / .2); }
.account-picker::backdrop { background: rgb(34 35 38 / .45); }
.account-picker-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.account-picker-heading h2 { font-size: clamp(25px, 3vw, 32px); }
.account-picker-list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.account-picker-list li { min-width: 0; max-width: 100%; }
.account-option { display: flex; align-items: center; gap: 14px; max-width: 100%; height: 100%; min-height: 60px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); text-align: left; overflow-wrap: anywhere; }
.account-option:hover:not(:disabled) { background: var(--red-pale); border-color: var(--red); }
.account-option:disabled { cursor: not-allowed; opacity: .6; }
.account-option-name { font-weight: 650; }
.membership-overview { display: grid; gap: 20px; }
.profile-summary { min-width: 0; }
.profile-summary h2 { margin: 0; font-size: clamp(25px, 2.5vw, 32px); line-height: 1.2; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 28px 0 0; }
.profile-facts > div { min-width: 0; }
.profile-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.profile-facts dd { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.profile-facts a { color: inherit; text-decoration-color: var(--line); }
.profile-facts a:hover { color: var(--red-deep); text-decoration-color: currentColor; }
.profile-fact-wide { grid-column: 1 / -1; }
.profile-missing { color: var(--muted); font-size: 15px; font-weight: 400; }
.membership-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 20px; }
.membership-heading h3 { margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.membership-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.membership-count { align-self: center; color: var(--muted); font-size: 14px; }
.membership-list { display: grid; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.membership-list > li { min-width: 0; }
.membership-list > li + li { padding-top: 28px; border-top: 1px solid var(--line); }
.membership-entry .profile-facts { margin-top: 20px; }
.membership-number { font-variant-numeric: tabular-nums; }
.membership-address { white-space: pre-line; }
.profile-facts .group-members { margin: 0; font-weight: 500; }
.membership-empty { margin: 20px 0 0; max-width: 60ch; color: var(--muted); font-size: 15px; }
.attachment-picker { display: grid; gap: 8px; min-width: 0; }
.file-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 86px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 8px; background: var(--ground); }
.file-drop.is-dragging { border-color: var(--red); background: var(--red-pale); }
.file-drop-icon { color: var(--red-deep); font-size: 24px; }
.file-drop .button { margin-left: auto; }
.attachment-files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.attachment-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; }
.attachment-files li > span { min-width: 0; overflow-wrap: anywhere; }
.attachment-files button { flex: none; }
@media (pointer: coarse) { .file-drop-instruction { display: none; } }
.group-badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin: 0; padding: 0; list-style: none; }
.group-badge { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; max-width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.group-badge strong { min-width: 0; overflow-wrap: anywhere; }
.group-count { min-width: 32px; padding: 3px 8px; border-radius: 999px; background: var(--red-pale); color: var(--red-deep); text-align: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.list-row.group-row { align-items: flex-start; }
.group-summary { flex: 1 1 15rem; }
.group-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.group-members li { min-width: 0; max-width: 100%; padding: 3px 9px; border-radius: 5px; background: var(--ground); font-size: 13px; overflow-wrap: anywhere; }
.group-name { max-width: 470px; }
.form.group-form { gap: 24px; }
.member-picker .section-bar { align-items: end; }
.member-picker .field-help { margin-top: 4px; }
.member-letter { padding-top: 15px; }
.member-letter + .member-letter { margin-top: 10px; }
.member-letter h3 { padding-bottom: 6px; margin: 0 0 6px; border-bottom: 1px solid var(--line); color: var(--red-deep); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.member-grid > li { min-width: 0; }
.form .member-choice { display: flex; align-items: center; min-width: 0; min-height: 38px; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.member-choice:hover { background: var(--ground); }
.member-choice:has(input:checked) { background: var(--red-pale); }
.member-choice input[type="checkbox"] { margin: 0; width: 17px; height: 17px; flex: none; accent-color: var(--red); scroll-margin-bottom: 110px; }
.member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 11px 0; border-top: 1px solid var(--line); background: var(--paper); z-index: 1; }
.workspace-actions output { margin-right: auto; color: var(--muted); font-size: 14px; }
.mail-nav { display: flex; gap: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mail-nav a { padding: 5px 2px 10px; color: var(--muted); border-bottom: 3px solid transparent; text-decoration: none; font-size: 15px; font-weight: 650; }
.mail-nav a[aria-current="page"] { border-color: var(--red); color: var(--red-deep); }
.demo-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.notice { padding: 11px 15px; margin: 0 0 16px; background: #e9f3e9; color: #174b20; border-radius: 5px; }
.notice.danger { background: var(--red-pale); color: var(--red-deep); }
.toast-region { position: fixed; left: var(--sidebar-width); right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(100%, 520px); padding: 12px 12px 12px 16px; color: var(--ink); background: var(--paper); border-radius: 12px; box-shadow: 0 8px 32px rgb(34 35 38 / .16); pointer-events: auto; opacity: 1; transform: translateY(0) scale(1); transition: transform 280ms cubic-bezier(.23, 1, .32, 1), opacity 200ms ease-out; }
.toast[data-state="entering"] { opacity: 0; transform: translateY(calc(100% + 24px)) scale(.97); }
.toast[data-state="leaving"] { opacity: 0; transform: translateY(16px) scale(.98); transition-duration: 180ms; pointer-events: none; }
.toast-check { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e9f3e9; color: #174b20; }
.toast-check svg { width: 19px; height: 19px; }
.toast-message { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.5; }
.toast-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: 4px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.toast-close svg { width: 18px; height: 18px; }
.toast-close:hover { color: var(--ink); background: var(--ground); }
.toast-close:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) {
    .toast, .toast[data-state="entering"], .toast[data-state="leaving"] { transform: none; transition: opacity 120ms ease-out; }
    .toast-close:active { transform: none; }
}

.welcome { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); min-height: 340px; background: var(--paper); overflow: hidden; isolation: isolate; }
.welcome-copy { position: relative; z-index: 1; padding: 44px clamp(24px,3.5vw,48px); align-self: center; }
.welcome-copy h1 { color: var(--ink); margin-bottom: 22px; overflow-wrap: anywhere; }
.welcome-copy .lead { max-width: 34ch; color: var(--muted); margin-bottom: 24px; }
.welcome-copy .actions { gap: 12px; }
.welcome-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (prefers-reduced-motion: no-preference) { .welcome-photo { animation: welcome-reveal 350ms ease-out; } }
@keyframes welcome-reveal { from { opacity: 0; } to { opacity: 1; } }
.section { margin-top: 32px; }
.section-bar, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
.section-bar { justify-content: space-between; margin-bottom: 12px; }
.section-bar h2 { margin: 0; }
.actions form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.stats > div { padding: clamp(10px, 2vw, 22px); background: var(--paper); }
.stats dd { font: clamp(30px, 4vw, 42px)/1 Vereinsserif, Georgia, serif; color: var(--red-deep); margin: 4px 0 0; }
.stats dt { color: var(--muted); font-size: 14px; font-weight: 650; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; max-width: 1060px; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: start; gap: 12px; min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper); color: var(--ink); }
.service-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 6px; background: var(--red-pale); color: var(--red-deep); font-size: 18px; }
.service-copy { grid-column: 1 / -1; }
.service strong, .service-description { display: block; }
.service-description { color: var(--muted); font-size: 14px; }
.service .arrow { color: var(--red-deep); }
.service:hover { border-color: var(--red); background: var(--red-pale); }
.service-toolbar { display: flex; justify-content: flex-end; flex: none; padding: 12px 16px; gap: 12px; }
.service-toolbar a { gap: 7px; }
.service-frame { display: block; flex: 1; min-height: 0; width: 100%; border: 0; background: var(--paper); }
.activity { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; background: white; margin-bottom: 4px; text-decoration: none; }
.activity span { color: var(--muted); }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 650; font-size: 14px; text-align: center; }
.button.primary { background: var(--red); color: white; }
.button.primary:hover { background: var(--red-deep); }
.button:disabled { cursor: wait; opacity: .7; }
.button.secondary { color: var(--red-deep); background: var(--paper); border-color: #e4c4ca; }
.button.secondary:hover, .button.danger:hover { background: var(--red-pale); }
.button.danger { color: var(--red-deep); background: white; border-color: #e4c4ca; }
.text-button { color: var(--red-deep); padding: 0; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.panel { background: white; padding: 16px 20px; margin-bottom: 11px; }
.panel > summary { font-weight: 650; cursor: pointer; }
.panel[open] > summary { margin-bottom: 15px; }
.detail { padding: 20px; }
.form { display: grid; gap: 14px; margin: 0; }
.form p { margin-bottom: 0; }
.form > .button { justify-self: start; }
.form label, .search-label { display: block; font-size: 14px; font-weight: 620; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.provider-section header { display: grid; gap: 6px; }
.provider-connection { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.account-permissions .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.form input:not([type=checkbox]), .form textarea, select, .search-label input { display: block; width: 100%; min-height: 43px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 5px; padding: 8px 10px; }
.form label > input, .form label > textarea, .form label > select { margin-top: 4px; }
.form textarea { resize: vertical; }
.form input[type=file] { min-width: 0; }
.form small { font-weight: 400; }
.field-help { font-size: 14px; color: var(--muted); }
.subform { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); }
legend { padding: 0 5px; font-weight: 650; font-size: 14px; }
.checks { display: grid; gap: 4px; max-height: 258px; overflow: auto; margin-top: 7px; }
.form .check, .check { display: flex; align-items: flex-start; gap: 8px; min-height: 30px; padding: 4px 0; font-size: 14px; }
.check input[type=checkbox] { accent-color: var(--red); width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.small-details { margin-top: 10px; }
.small-details summary { cursor: pointer; font-size: 14px; }
.empty { padding: 15px 17px; background: white; color: var(--muted); }
.search-label { width: min(285px, 100%); }
.search-label input { margin-top: 3px; }
.table-wrap { width: 100%; overflow-x: auto; background: white; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #eaeaec; text-align: left; }
th, td { padding: 11px 13px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
tbody tr:nth-child(even) { background: #fafafa; }
td a { white-space: nowrap; }
.row-note { display: block; font-weight: 400; }
.state { display: inline-block; padding: 3px 7px; border-radius: 4px; color: #424550; background: #ececf0; font-size: 13px; font-weight: 600; }
.state.positive { background: #eaf4ea; color: #16521d; }
.list { display: grid; gap: 5px; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 13px 16px; background: white; }
.list-row p { margin: 1px 0 0; color: var(--muted); font-size: 14px; }
.list-row a, .list-row button { font-size: 14px; }
.managed-list { margin: 0; padding: 0; list-style: none; }
.managed-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.managed-row > .actions { margin-left: auto; justify-content: flex-end; gap: 8px; }
.managed-row .button { gap: 7px; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-content { margin: 12px 0; max-width: 74ch; overflow-wrap: anywhere; }
.mail-content h2, .mail-content h3 { font-size: 24px; }
.mail-content blockquote { margin: 0 0 12px; padding-left: 13px; border-left: 3px solid var(--line); }
.small-details:has(.mail-content), .small-details:has(.message-body) { margin-bottom: 12px; }

.editor-label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 620; }
[data-editor-toolbar].ql-toolbar.ql-snow { background: var(--ground); border-color: var(--line); border-radius: 5px 5px 0 0; }
[data-editor-toolbar].ql-toolbar.ql-snow button .fa-icon { float: none; width: 14px; height: 14px; vertical-align: middle; }
[data-editor-toolbar].ql-toolbar.ql-snow button:hover, [data-editor-toolbar].ql-toolbar.ql-snow button.ql-active { color: var(--red-deep); }
[data-editor-surface].ql-container.ql-snow { border-color: var(--line); border-radius: 0 0 5px 5px; font: inherit; }
.ql-editor { min-height: 165px; max-height: 340px; overflow-wrap: anywhere; }
.ql-snow .ql-tooltip { z-index: 1; max-width: min(305px, 90%); }
.editor-error { margin-top: 7px; color: var(--red-deep); }

.login-page { max-width: 1070px; margin: clamp(22px, 7vw, 88px) auto; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.login-picture { min-height: 405px; background: #dedee2 url('/vereinsbanner/login-banner.avif') center/cover no-repeat; }
.login-panel, .simple-page { padding: clamp(24px, 4vw, 50px); }
.login-panel h1, .simple-page h1 { color: var(--red-deep); }
.login-panel > * + *, .login-panel form { margin-top: 12px; }
.demo-users { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; }
.demo-users form { margin: 0; }
.simple-page { max-width: 660px; margin: 45px auto; background: white; }

@media (max-width: 960px) {
    :root { --sidebar-width: 220px; }
    .welcome { display: flex; flex-direction: column; min-height: 0; }
    .welcome-copy { align-self: stretch; padding: 30px 28px 12px; }
    .welcome-photo { position: static; height: 200px; object-position: right center; }
    .login-page { margin-inline: var(--gutter); }
}
@media (max-width: 700px) {
    html { scrollbar-gutter: auto; }
    .top-inner { min-height: 69px; gap: 10px; }
    .brand { gap: 8px; font-size: 14px; }
    .brand img { width: 38px; height: 38px; }
    :root { --sidebar-width: 0px; }
    .portal { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "navigation" "content"; }
    .navigation { position: static; height: auto; overflow: visible; padding: 10px var(--gutter); gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
    .navigation .brand { padding-bottom: 8px; }
    .sidebar-account { padding-top: 8px; }
    .navigation nav { display: grid; gap: 12px; }
    .nav-group { display: flex; flex-wrap: wrap; gap: 2px; }
    .nav-group-label { flex-basis: 100%; padding: 0 7px 2px; }
    .navigation nav a, .member-navigation > summary { padding: 4px 7px; min-height: 36px; font-size: 13px; gap: 3px; }
    .nav-icon { width: 17px; font-size: 13px; }
    .back-site { display: none; }
    .content { padding-top: 18px; }
    .content.content-service { position: sticky; top: 0; }
    .page-heading h1 { font-size: clamp(29px, 8.1vw, 37px); }
    .page-heading > .button { padding-inline: 9px; }
    .login-page { grid-template-columns: 1fr; }
    .login-picture { min-height: 145px; }
    .simple-page { margin: 18px var(--gutter); }
    .fields { grid-template-columns: 1fr; }
    .profile-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
    .panel { padding: 12px; }
    th, td { padding: 8px; }
}
@media (max-width: 460px) {
    .group-form .workspace-actions { justify-content: flex-end; }
    .group-form .workspace-actions output { flex-basis: 100%; }
    .group-form .workspace-actions .button { padding-inline: 10px; }
}

.account-selection { margin-top: 18px; }
.account-option[aria-pressed="true"] { background: var(--red-pale); border-color: var(--red); }
.account-selection .account-picker-list { max-height: 440px; overflow-y: auto; padding: 3px; }

.account-option-details { display: grid; gap: 2px; min-width: 0; }
.account-option-email { font-size: 13px; color: var(--muted); }
.account-option-check { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: var(--red); color: white; visibility: hidden; }
.account-option-check svg { width: 14px; height: 14px; }
.account-option[aria-pressed="true"] .account-option-check { visibility: visible; }
