:root {
    color-scheme: light;
    --font-body: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
    --font-heading: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    --page-bg: #eef4fb;
    --page-bg-accent: rgba(0, 76, 153, 0.12);
    --page-bg-accent-soft: rgba(255, 255, 255, 0.92);
    --surface: #ffffff;
    --surface-muted: #f6f9fd;
    --surface-alt: #eaf2fb;
    --surface-strong: #dbe8f6;
    --text-color: #17324d;
    --text-muted: #4b6380;
    --heading-color: #0c2942;
    --line-color: rgba(0, 51, 102, 0.14);
    --shadow-soft: 0 12px 28px rgba(0, 42, 84, 0.08);
    --shadow-panel: 0 18px 38px rgba(0, 42, 84, 0.12);
    --primary: #004c99;
    --primary-strong: #003366;
    --primary-soft: #e5f0fb;
    --primary-contrast: #ffffff;
    --secondary: #0c6aa6;
    --success: #238a52;
    --success-soft: #e8f7ee;
    --error: #c53a35;
    --error-soft: #fff0ee;
    --warning: #c4821f;
    --warning-soft: #fff6e6;
    --info: #0f5c9a;
    --info-soft: #e8f2fc;
    --focus-ring: 0 0 0 3px rgba(0, 102, 204, 0.2);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --content-width: 1180px;
    --content-narrow: 760px;
    --content-form: 560px;
    --tap-size: 48px;
    --body-size: 16px;
    --body-line: 1.65;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #1d1d1d;
    --page-bg-accent: rgba(122, 164, 255, 0.1);
    --page-bg-accent-soft: rgba(38, 38, 38, 0.94);
    --surface: #262626;
    --surface-muted: #2f2f2f;
    --surface-alt: #343434;
    --surface-strong: #3c3c3c;
    --text-color: #edf3fa;
    --text-muted: #b6c6d8;
    --heading-color: #ffffff;
    --line-color: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
    --shadow-panel: 0 20px 42px rgba(0, 0, 0, 0.36);
    --primary: #5aa9ff;
    --primary-strong: #7ab4ff;
    --primary-soft: rgba(90, 169, 255, 0.12);
    --primary-contrast: #08131f;
    --secondary: #8ec7ff;
    --success: #4ac879;
    --success-soft: rgba(74, 200, 121, 0.12);
    --error: #ff7f79;
    --error-soft: rgba(255, 127, 121, 0.12);
    --warning: #ffbf66;
    --warning-soft: rgba(255, 191, 102, 0.12);
    --info: #80c4ff;
    --info-soft: rgba(128, 196, 255, 0.12);
    --focus-ring: 0 0 0 3px rgba(122, 180, 255, 0.24);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--body-line);
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, var(--page-bg-accent) 0, transparent 34%),
        radial-gradient(circle at top right, rgba(0, 51, 102, 0.08) 0, transparent 28%),
        linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-accent-soft) 100%);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-strong);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"],
input[type="button"] {
    min-height: var(--tap-size);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: min(calc(100% - 24px), var(--content-width));
    margin: 20px auto 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .topbar {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

#logo {
    width: clamp(80px, 10vw, 116px);
    height: clamp(96px, 12vw, 132px);
    flex: 0 0 auto;
    border-radius: 0;
    background: transparent url("../img/logo.svg") center / contain no-repeat;
    box-shadow: none;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    margin: 0;
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
}

.brand-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.topbar-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border: 1px solid var(--line-color);
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--heading-color);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
    background: var(--surface-alt);
    transform: translateY(-1px);
}

.theme-toggle-icon-stack {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: inline-flex;
}

.theme-user-name {
    display: block;
    margin: 0;
    max-width: 180px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    width: 100%;
}

.menu {
    margin-top: 16px;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-strong) 96%, transparent) 0%, color-mix(in srgb, var(--primary) 96%, transparent) 100%);
    box-shadow: var(--shadow-soft);
    overflow: visible;
}

.menu-toggle {
    display: none;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.menu-items {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-items li {
    position: relative;
}

.menu-items li.menu-logout {
    margin-left: auto;
}

.menu-items li a,
.menu-items li button.submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}

.menu-items li a:hover,
.menu-items li button.submenu-toggle:hover,
.menu-items li a:focus-visible,
.menu-items li button.submenu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    z-index: 20;
}

.menu-items li.has-submenu.open .submenu {
    display: block;
}

.submenu li a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-color);
}

.submenu li a:hover,
.submenu li a:focus-visible {
    background: var(--surface-alt);
    color: var(--heading-color);
}

.site-main {
    width: min(calc(100% - 24px), var(--content-width));
    margin: 24px auto 40px;
    flex: 1 0 auto;
}

.content-panel,
.auth-card,
.form-card,
.telegram-join-card,
.accordion-item,
#mail-box-view-event_vol,
.table-wrapper,
.status-copy,
#optie1 {
    border: 1px solid var(--line-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

h1,
h2,
h3 {
    margin: 0 0 18px;
    text-align: center;
    color: var(--heading-color);
    font-family: var(--font-heading);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p,
ul,
ol {
    color: var(--text-color);
}

p {
    margin: 0 0 16px;
}

.status-copy,
.flash-message,
.flash-message2 {
    width: min(100%, var(--content-narrow));
    margin: 0 auto 18px;
    padding: 18px 20px;
    text-align: left;
}

.status-copy {
    background: var(--surface);
}

.status-copy.status-copy-form-width {
    width: min(100%, var(--content-form));
}

.flash-message,
.flash-message2 {
    font-weight: 700;
    border: 1px solid var(--success);
    border-left: 6px solid var(--success);
    background: var(--success-soft);
    color: var(--heading-color);
    box-shadow: var(--shadow-soft);
}

.flash-message.success {
    border-color: var(--success);
    border-left-color: var(--success);
    background: var(--success-soft);
}

.flash-message.error,
.flash-message2 {
    border-color: var(--error);
    border-left-color: var(--error);
    background: var(--error-soft);
}

.flash-message.info {
    border-color: var(--info);
    border-left-color: var(--info);
    background: var(--info-soft);
}

.flash-message.warning {
    border-color: var(--warning);
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.container,
.auth-card,
.form-card {
    width: min(100%, var(--content-form));
    margin: 0 auto 24px;
    padding: 28px;
}

.table-wrapper,
.event-accordion,
.telegram-join-card,
#optie1 {
    width: min(100%, var(--content-width));
    margin: 0 auto 24px;
}

.table-wrapper,
#optie1 {
    padding: 24px;
}

form {
    width: 100%;
    margin: 0;
}

form:not(.inline-action-form) {
    width: min(100%, var(--content-form));
    margin: 0 auto 24px;
    padding: 24px;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

.auth-card form,
.form-card form,
.accordion-panel .form-card,
.accordion-panel form,
.table-wrapper form,
#optie1 form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.status-copy.mutation-panel-wide,
.form-card.mutation-panel-wide {
    width: min(100%, var(--content-width));
}

.form-card.mutation-panel-wide form {
    width: 100%;
    max-width: none;
}

.stack-form label,
form label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 700;
}

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form input[type="password"],
.stack-form input[type="number"],
.stack-form input[type="date"],
.stack-form input[type="time"],
.stack-form textarea,
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line-color);
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--text-color);
}

.stack-form textarea,
form textarea {
    min-height: 132px;
    resize: vertical;
}

.stack-form input[disabled],
form input[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

.helper-text,
.field-help {
    margin: 8px 0 14px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.helper-text {
    text-align: center;
}

.login-meta-links {
    margin: 10px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.login-meta-links a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.login-meta-links a:hover {
    color: var(--primary);
}

.login-meta-links span {
    display: inline;
}

.helper-text a,
.action-links a,
a.button,
a.button2,
.button,
button.button,
input.button,
.stack-form input[type="submit"],
.stack-form button[type="submit"],
form input[type="submit"],
form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 76, 153, 0.2);
}

.helper-text a:hover,
.action-links a:not(.icon-link-button):hover,
a.button:hover,
a.button2:hover,
.button:hover,
button.button:hover,
input.button:hover,
.stack-form input[type="submit"]:hover,
.stack-form button[type="submit"]:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    color: #fff;
    transform: translateY(-1px);
}

a.button2 {
    background: var(--surface-muted);
    border-color: color-mix(in srgb, var(--primary) 36%, var(--line-color));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

a.button2:hover {
    color: var(--primary-strong);
    background: var(--surface-alt);
    border-color: color-mix(in srgb, var(--primary-strong) 48%, var(--line-color));
}

.button-danger,
button.button-danger,
form button.button-danger,
.stack-form button.button-danger {
    background: linear-gradient(180deg, #d92d20 0%, #b42318 100%);
    border-color: #b42318;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.22);
    color: #fff;
}

.button-danger:hover,
button.button-danger:hover,
form button.button-danger:hover,
.stack-form button.button-danger:hover {
    color: #fff;
    background: linear-gradient(180deg, #c61f14 0%, #981b12 100%);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.form-actions > * {
    margin: 0;
}

.rate-limit-actions {
    justify-content: flex-start;
    gap: 14px;
}

.rate-limit-actions .stack-form {
    width: auto;
}

.danger-zone-card {
    width: min(100%, var(--content-form));
}

.danger-zone-card h3 {
    margin-bottom: 14px;
}

.danger-copy {
    width: 100%;
    margin-bottom: 18px;
}

.danger-zone-form {
    margin-bottom: 0;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.action-links span {
    display: none;
}

.inline-action-form {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.inline-checkbox-field {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.inline-checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.inline-checkbox-field span {
    color: var(--heading-color);
    font-weight: 700;
}

.form-help {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-help-error,
.status-error {
    color: var(--error);
}

.action-links button.as-link {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 36%, var(--line-color));
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
    cursor: pointer;
}

.action-links button.as-link:hover,
.action-links a[href="#"]:hover {
    background: var(--surface-alt);
    color: var(--primary-strong);
    border-color: color-mix(in srgb, var(--primary-strong) 48%, var(--line-color));
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-color);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-alt);
    color: var(--heading-color);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:nth-child(even) td {
    background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface));
}

tr:nth-child(odd) td {
    background: transparent;
}

td.actions {
    min-width: 240px;
}

td[data-label="Vrijwilligers Aantal"].volunteer-needed {
    color: var(--error);
    font-weight: 800;
}

td[data-label="Vrijwilligers Aantal"].volunteer-ok {
    color: var(--success);
    font-weight: 800;
}

.telegram-join-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border-color: rgba(0, 136, 204, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.42) 0, transparent 34%),
        linear-gradient(180deg, rgba(171, 226, 255, 0.5) 0%, rgba(111, 199, 255, 0.22) 100%);
}

html[data-theme="dark"] .telegram-join-card {
    border-color: rgba(92, 196, 255, 0.3);
    background:
        radial-gradient(circle at top right, rgba(106, 212, 255, 0.16) 0, transparent 34%),
        linear-gradient(180deg, rgba(8, 72, 102, 0.82) 0%, rgba(7, 52, 76, 0.92) 100%);
}

.telegram-join-copy {
    flex: 1 1 460px;
}

.telegram-join-title,
.telegram-join-text,
.telegram-join-help {
    text-align: left;
}

.telegram-join-title {
    margin: 0 0 10px;
    color: #03395d;
    font-size: 1.3rem;
    font-weight: 800;
}

html[data-theme="dark"] .telegram-join-title {
    color: #dff5ff;
}

html[data-theme="dark"] .telegram-join-text,
html[data-theme="dark"] .telegram-join-help {
    color: #d0e8f5;
}

.telegram-join-qr {
    flex: 0 0 132px;
    display: flex;
    justify-content: center;
}

.telegram-join-qr img {
    width: 132px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line-color);
}

.clinic-list {
    width: min(100%, var(--content-width));
    margin: 0 auto 24px;
    display: grid;
    gap: 14px;
}

.clinic-card {
    border: 1px solid var(--line-color);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.clinic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line-color);
    background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface));
}

.clinic-card-kicker,
.clinic-card-label {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.clinic-card-title {
    margin: 0;
    text-align: left;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.clinic-card-badge {
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
    background: var(--surface-alt);
}

.clinic-card-badge.volunteer-ok {
    background: var(--success-soft);
    color: var(--success);
}

.clinic-card-badge.volunteer-needed {
    background: var(--error-soft);
    color: var(--error);
}

.clinic-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.agenda-sync-indicator {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.agenda-sync-indicator::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M358.33 87.37c.02 16.53 13.38 29.28 29.22 29.58 15.86.3 30.16-12.06 30.22-28.36l.11-28.39 25.73.06c18.36.04 33.92 16.21 33.92 35.02l-.02 351.39c0 20.1-17.14 35.13-36.63 35.13H60.05c-19.48 0-36.63-15.02-36.63-35.13V95.3c-.02-19.95 17.09-35.27 36.46-35.17l23.16.11.12 28.34c.07 16.33 14.39 28.67 30.22 28.37 16.11-.3 29.25-13.43 29.25-29.89V60.14h78.03l.06 27.46c.04 16.76 14.21 29.78 30.49 29.36 16.72-.43 29.14-14.47 29.1-31.41l-.05-25.4h78.03l.04 27.23ZM438.02 451.89c5.76-.48 9.28-4.37 9.7-9.74l-.04-285.05H53.26l-.04 284.54c.07 5.78 4.14 9.94 9.91 10.27h374.89Z'/><path d='M133.31 87.35c0 11.86-9.82 20.54-20.83 20.34-11.47-.21-20.24-9.49-20.22-21.15l.09-53.7c.02-11.48 9.48-20.25 20.55-20.22s20.41 8.78 20.41 20.23v54.5Z'/><path d='M408.7 86.33c.01 11.77-8.48 20.88-19.83 21.34-10.89.44-21.15-8.08-21.16-19.66l-.06-55.15c-.01-11.48 9.53-20.21 20.4-20.23 11.42-.02 20.6 9.06 20.61 20.74l.05 52.96Z'/><path d='M271.04 86.33c.03 11.81-8.6 20.95-19.92 21.35-10.8.38-21.05-8.09-21.05-19.62V32.37c-.01-11.19 9.57-19.6 20.14-19.73s20.63 8.38 20.67 19.72l.16 53.97Z'/><g><rect x='75.15' y='180.73' width='69.06' height='69.07'/><rect x='356.72' y='180.73' width='69.08' height='69.05' transform='translate(175.98 606.5) rotate(-90)'/><rect x='75.16' y='359.62' width='69.01' height='69.07' transform='translate(-284.49 503.8) rotate(-90)'/><rect x='356.72' y='359.63' width='69.06' height='69.02'/><rect x='169.02' y='180.71' width='69.03' height='69.1'/><rect x='262.87' y='180.72' width='69.04' height='69.08'/><rect x='169.04' y='359.64' width='69.04' height='69.02'/><rect x='262.89' y='359.66' width='69.08' height='69'/><rect x='75.14' y='270.22' width='69.07' height='68.98'/><rect x='356.73' y='270.23' width='69.06' height='69.02'/><rect x='169' y='270.24' width='69.05' height='68.97'/><rect x='262.89' y='270.24' width='69.02' height='68.97'/></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M358.33 87.37c.02 16.53 13.38 29.28 29.22 29.58 15.86.3 30.16-12.06 30.22-28.36l.11-28.39 25.73.06c18.36.04 33.92 16.21 33.92 35.02l-.02 351.39c0 20.1-17.14 35.13-36.63 35.13H60.05c-19.48 0-36.63-15.02-36.63-35.13V95.3c-.02-19.95 17.09-35.27 36.46-35.17l23.16.11.12 28.34c.07 16.33 14.39 28.67 30.22 28.37 16.11-.3 29.25-13.43 29.25-29.89V60.14h78.03l.06 27.46c.04 16.76 14.21 29.78 30.49 29.36 16.72-.43 29.14-14.47 29.1-31.41l-.05-25.4h78.03l.04 27.23ZM438.02 451.89c5.76-.48 9.28-4.37 9.7-9.74l-.04-285.05H53.26l-.04 284.54c.07 5.78 4.14 9.94 9.91 10.27h374.89Z'/><path d='M133.31 87.35c0 11.86-9.82 20.54-20.83 20.34-11.47-.21-20.24-9.49-20.22-21.15l.09-53.7c.02-11.48 9.48-20.25 20.55-20.22s20.41 8.78 20.41 20.23v54.5Z'/><path d='M408.7 86.33c.01 11.77-8.48 20.88-19.83 21.34-10.89.44-21.15-8.08-21.16-19.66l-.06-55.15c-.01-11.48 9.53-20.21 20.4-20.23 11.42-.02 20.6 9.06 20.61 20.74l.05 52.96Z'/><path d='M271.04 86.33c.03 11.81-8.6 20.95-19.92 21.35-10.8.38-21.05-8.09-21.05-19.62V32.37c-.01-11.19 9.57-19.6 20.14-19.73s20.63 8.38 20.67 19.72l.16 53.97Z'/><g><rect x='75.15' y='180.73' width='69.06' height='69.07'/><rect x='356.72' y='180.73' width='69.08' height='69.05' transform='translate(175.98 606.5) rotate(-90)'/><rect x='75.16' y='359.62' width='69.01' height='69.07' transform='translate(-284.49 503.8) rotate(-90)'/><rect x='356.72' y='359.63' width='69.06' height='69.02'/><rect x='169.02' y='180.71' width='69.03' height='69.1'/><rect x='262.87' y='180.72' width='69.04' height='69.08'/><rect x='169.04' y='359.64' width='69.04' height='69.02'/><rect x='262.89' y='359.66' width='69.08' height='69'/><rect x='75.14' y='270.22' width='69.07' height='68.98'/><rect x='356.73' y='270.23' width='69.06' height='69.02'/><rect x='169' y='270.24' width='69.05' height='68.97'/><rect x='262.89' y='270.24' width='69.02' height='68.97'/></g></svg>");
}

.agenda-sync-indicator.agenda-sync-ok {
    color: var(--success);
}

.agenda-sync-indicator.agenda-sync-error {
    color: var(--error);
}

.clinic-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
}

.clinic-card-field {
    padding: 12px 14px;
    border: 1px solid var(--line-color);
    border-radius: 14px;
    background: var(--surface-muted);
}

.clinic-card-field-wide {
    grid-column: 1 / -1;
}

.clinic-card-field p,
.clinic-card-actions p {
    margin: 0;
}

.clinic-card-actions {
    padding: 0 18px 18px;
}

.clinic-card-actions .action-links {
    gap: 10px;
}

.clinic-admin-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clinic-primary-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clinic-primary-actions .icon-link-button {
    min-height: 46px;
    padding: 0;
    gap: 0;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    background-image: none !important;
}

.icon-link-button,
.icon-action-button {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-muted);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
    text-decoration: none;
}

.icon-link-button {
    border: 1px solid color-mix(in srgb, var(--primary) 52%, var(--line-color));
    background: var(--primary-strong);
    color: #fff;
    transform: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.clinic-primary-actions .icon-link-button:hover,
.clinic-primary-actions .icon-link-button:focus-visible {
    background-color: #fff !important;
    background: #fff;
    border-color: var(--primary-strong) !important;
    color: var(--primary-strong) !important;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--primary-strong) 18%, transparent),
        0 10px 22px rgba(0, 51, 102, 0.24);
}

html:not([data-theme="dark"]) .clinic-primary-actions .icon-link-button {
    background-color: var(--primary-strong) !important;
    background-image: none !important;
    border-color: var(--primary-strong) !important;
    color: #fff !important;
}

html:not([data-theme="dark"]) .clinic-primary-actions .icon-link-button:hover,
html:not([data-theme="dark"]) .clinic-primary-actions .icon-link-button:focus-visible {
    background-color: #fff !important;
    background-image: none !important;
    border-color: var(--primary-strong) !important;
    color: var(--primary-strong) !important;
}

html[data-theme="dark"] .icon-link-button {
    background: var(--surface-muted);
    border-color: color-mix(in srgb, var(--primary) 36%, var(--line-color));
    color: var(--primary);
}

html[data-theme="dark"] .clinic-primary-actions .icon-link-button:hover,
html[data-theme="dark"] .clinic-primary-actions .icon-link-button:focus-visible {
    background-color: var(--primary-strong) !important;
    background: var(--primary-strong);
    border-color: var(--primary-strong) !important;
    color: #08131f !important;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px rgba(8, 19, 31, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.28);
}

.icon-action-button {
    margin-left: auto;
    border: 1px solid color-mix(in srgb, var(--error) 42%, var(--line-color));
    color: var(--error);
    cursor: pointer;
}

.icon-action-button:hover {
    background: var(--error-soft);
    border-color: color-mix(in srgb, var(--error) 62%, var(--line-color));
    color: #9f231f;
}

.icon-link-button::before,
.icon-action-button::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.icon-link-button-edit::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M109.25 467.24c-.13 13.31-12.47 22.35-24.72 21.56-12.89-.83-22.1-11.55-22.09-24.77l.03-25.78c-28.15-10.04-46.48-36.62-46.46-66.02s18.56-55.8 46.51-65.85V46.66c0-13.19 10.36-23.12 22.75-23.53s24.11 9.43 24.11 22.83l.05 260.41c27.99 9.99 46.53 36.39 46.58 65.86.05 29.41-18.39 55.91-46.47 66.06l-.28 28.96ZM109.08 372.34c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/><g><path d='M435.28 465.16c-.02 13.31-10.32 23.27-22.73 23.68-12.76.42-24.07-9.51-24.13-22.68l-.14-27.87c-28.11-10.15-46.53-36.65-46.48-66.06.05-29.47 18.58-55.87 46.58-65.86l.05-260.4c0-12.91 10.75-22.54 22.84-22.84s23.88 9.1 23.89 22.22l.15 261.04c27.9 10.05 46.49 36.47 46.49 65.85 0 29.4-18.32 55.98-46.46 66.02l-.04 26.91ZM434.87 372.34c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/><path d='M272.29 465.67c0 13.39-10.87 22.96-23.1 23.17s-23.6-9.19-23.6-22.14l-.14-261.12c-28.11-10.06-46.49-36.57-46.54-65.83-.05-29.58 18.49-56.04 46.55-66.12l.07-27.82c.03-12.79 10.79-22.55 23.04-22.72s23.68 9.68 23.71 22.71l.07 27.83c28.05 10.08 46.59 36.53 46.55 66.08-.03 29.53-18.67 55.88-46.58 65.91l-.02 260.04ZM271.98 139.62c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M109.25 467.24c-.13 13.31-12.47 22.35-24.72 21.56-12.89-.83-22.1-11.55-22.09-24.77l.03-25.78c-28.15-10.04-46.48-36.62-46.46-66.02s18.56-55.8 46.51-65.85V46.66c0-13.19 10.36-23.12 22.75-23.53s24.11 9.43 24.11 22.83l.05 260.41c27.99 9.99 46.53 36.39 46.58 65.86.05 29.41-18.39 55.91-46.47 66.06l-.28 28.96ZM109.08 372.34c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/><g><path d='M435.28 465.16c-.02 13.31-10.32 23.27-22.73 23.68-12.76.42-24.07-9.51-24.13-22.68l-.14-27.87c-28.11-10.15-46.53-36.65-46.48-66.06.05-29.47 18.58-55.87 46.58-65.86l.05-260.4c0-12.91 10.75-22.54 22.84-22.84s23.88 9.1 23.89 22.22l.15 261.04c27.9 10.05 46.49 36.47 46.49 65.85 0 29.4-18.32 55.98-46.46 66.02l-.04 26.91ZM434.87 372.34c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/><path d='M272.29 465.67c0 13.39-10.87 22.96-23.1 23.17s-23.6-9.19-23.6-22.14l-.14-261.12c-28.11-10.06-46.49-36.57-46.54-65.83-.05-29.58 18.49-56.04 46.55-66.12l.07-27.82c.03-12.79 10.79-22.55 23.04-22.72s23.68 9.68 23.71 22.71l.07 27.83c28.05 10.08 46.59 36.53 46.55 66.08-.03 29.53-18.67 55.88-46.58 65.91l-.02 260.04ZM271.98 139.62c0-12.75-10.33-23.08-23.08-23.08s-23.08 10.33-23.08 23.08 10.33 23.08 23.08 23.08 23.08-10.33 23.08-23.08Z'/></g></svg>");
}

.icon-link-button-volunteers::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M229.27 482.93c-8.78-.45-19.52-5.88-19.53-15.77l-.25-291.78c0-2.68-2.95-4.37-4.46-4.24-2.26.19-3.63 1.98-3.64 4.74l-.41 128.12c-.03 9.18-10.39 14.68-17.76 13.73-8.19-1.05-15.51-7.21-15.49-16.27l.25-124.25c.04-18.89 18.26-40.21 39.37-40.42l62.65-.63c13.88-.14 25.64-8.85 34.89-18.8 9.61-10.33 15.76-22.79 19.17-36.55l11.73-47.28c2.6-10.5 11.57-16.33 22.29-13 6.95 2.16 13.84 8.8 12 16.79l-12.1 52.45c-4.4 19.1-13.57 36.02-27.41 49.75s-29.88 28.95-29.88 51.55v272.46c0 10.37-5.7 16.46-15.95 18.82-8.66 1.99-24.3-2.32-24.35-13.9l-.74-161.4c-.01-3.08-2.57-5.24-4.78-5.1-2.53.15-4.64 2.11-4.64 5.2l-.24 159.14c-.02 10.7-10.86 17.15-20.7 16.65Z'/><path d='M120.04 276.99l-.08 162.67c0 9.68-6.46 15.46-15.69 17.08-11.16 1.96-24.52-5.05-24.51-17.99l.1-144.92.25-146.46c0-2.22-2.32-4.16-3.63-4.48-1.62-.39-4.23 1.8-4.23 4.21l.09 72.92.22 52.22c.04 9.82-7.7 16.53-17.23 16.6-6.94.05-16.95-4.67-16.96-13.21l-.03-126.58c0-18.61 16.09-36.89 35.03-36.97l102.84-.44c9.76-.04 18.61 5.24 24.53 12.78-25.56 2.97-45.42 29.83-45.55 54.06l.25 121.89c.02 11.14 5.42 20.11 14.88 26.1l-.34 114.14c-.03 10.69-11.77 16.47-21.16 16.42-8.25-.04-18.9-4.81-18.92-14.27l-.39-164.09c0-2.97-1.46-4.85-3.34-5.51-1.66-.59-6.14.47-6.14 3.83Z'/><g><circle cx='256.34' cy='89.95' r='35.84'/><circle cx='124.27' cy='64.55' r='35.05'/><path d='M369.09 96.92l9.88-43.56c1.86-8.21 4.36-15.75 4.88-24.6 11.23-.05 20.93 5.82 26.61 13.73 6.97 9.71 8.45 20.41 5.31 31.42-5.66 19.84-26.23 31-46.68 23.01Z'/></g><g><path d='M411.34 456.91c-9.58.87-21.39-4.62-21.42-15.44l-.35-163.67c0-3.23-2.02-4.9-4.63-4.85-2.06.03-4.67 1.8-4.67 4.9l-.19 161.75c-.01 11.49-8.84 17.6-19.71 17.66-8.81.05-21-4.99-21.01-15.88l-.07-202.62.32-88.13c.64-2.63 2.22-4.26 3.9-6.09 8.97-9.71 16.13-19.95 20.56-32.91l71.92.36c19.55.1 34.05 19.22 34.03 38.26l-.14 125.09c0 6.72-6.37 11-12.28 12.66-8.59 2.41-20.62-2.87-20.66-13.06l-.45-127.96c0-2.2-2.41-3.96-3.74-3.96-2.25 0-3.83 1.67-3.83 4.49l.15 146.99.16 144.29c.01 10.48-7.22 17.16-17.88 18.13Z'/><path d='M312.81 296.24l.12-70.83-.23-36.37c1.38-12.57 8.09-23.45 18.86-31.66l.3 121.71c0 10.47-7.8 18.04-19.04 17.15Z'/></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M229.27 482.93c-8.78-.45-19.52-5.88-19.53-15.77l-.25-291.78c0-2.68-2.95-4.37-4.46-4.24-2.26.19-3.63 1.98-3.64 4.74l-.41 128.12c-.03 9.18-10.39 14.68-17.76 13.73-8.19-1.05-15.51-7.21-15.49-16.27l.25-124.25c.04-18.89 18.26-40.21 39.37-40.42l62.65-.63c13.88-.14 25.64-8.85 34.89-18.8 9.61-10.33 15.76-22.79 19.17-36.55l11.73-47.28c2.6-10.5 11.57-16.33 22.29-13 6.95 2.16 13.84 8.8 12 16.79l-12.1 52.45c-4.4 19.1-13.57 36.02-27.41 49.75s-29.88 28.95-29.88 51.55v272.46c0 10.37-5.7 16.46-15.95 18.82-8.66 1.99-24.3-2.32-24.35-13.9l-.74-161.4c-.01-3.08-2.57-5.24-4.78-5.1-2.53.15-4.64 2.11-4.64 5.2l-.24 159.14c-.02 10.7-10.86 17.15-20.7 16.65Z'/><path d='M120.04 276.99l-.08 162.67c0 9.68-6.46 15.46-15.69 17.08-11.16 1.96-24.52-5.05-24.51-17.99l.1-144.92.25-146.46c0-2.22-2.32-4.16-3.63-4.48-1.62-.39-4.23 1.8-4.23 4.21l.09 72.92.22 52.22c.04 9.82-7.7 16.53-17.23 16.6-6.94.05-16.95-4.67-16.96-13.21l-.03-126.58c0-18.61 16.09-36.89 35.03-36.97l102.84-.44c9.76-.04 18.61 5.24 24.53 12.78-25.56 2.97-45.42 29.83-45.55 54.06l.25 121.89c.02 11.14 5.42 20.11 14.88 26.1l-.34 114.14c-.03 10.69-11.77 16.47-21.16 16.42-8.25-.04-18.9-4.81-18.92-14.27l-.39-164.09c0-2.97-1.46-4.85-3.34-5.51-1.66-.59-6.14.47-6.14 3.83Z'/><g><circle cx='256.34' cy='89.95' r='35.84'/><circle cx='124.27' cy='64.55' r='35.05'/><path d='M369.09 96.92l9.88-43.56c1.86-8.21 4.36-15.75 4.88-24.6 11.23-.05 20.93 5.82 26.61 13.73 6.97 9.71 8.45 20.41 5.31 31.42-5.66 19.84-26.23 31-46.68 23.01Z'/></g><g><path d='M411.34 456.91c-9.58.87-21.39-4.62-21.42-15.44l-.35-163.67c0-3.23-2.02-4.9-4.63-4.85-2.06.03-4.67 1.8-4.67 4.9l-.19 161.75c-.01 11.49-8.84 17.6-19.71 17.66-8.81.05-21-4.99-21.01-15.88l-.07-202.62.32-88.13c.64-2.63 2.22-4.26 3.9-6.09 8.97-9.71 16.13-19.95 20.56-32.91l71.92.36c19.55.1 34.05 19.22 34.03 38.26l-.14 125.09c0 6.72-6.37 11-12.28 12.66-8.59 2.41-20.62-2.87-20.66-13.06l-.45-127.96c0-2.2-2.41-3.96-3.74-3.96-2.25 0-3.83 1.67-3.83 4.49l.15 146.99.16 144.29c.01 10.48-7.22 17.16-17.88 18.13Z'/><path d='M312.81 296.24l.12-70.83-.23-36.37c1.38-12.57 8.09-23.45 18.86-31.66l.3 121.71c0 10.47-7.8 18.04-19.04 17.15Z'/></g></svg>");
}

.icon-action-button::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M109.5 178.56c-6.61 1.81-12.96-2.32-14.96-7.7-2.61-7.06-4.49-13.73-5.45-21.27-3.15-24.58 11.12-48.82 35.06-55.53l46.86-13.14c1.05-.29 1.39-1.48 1.07-2.42-7.51-21.65 5.32-44.57 27.73-49.51l37.71-10.22c21.79-5.91 42.75 8.45 46.54 31.13l45.4-12.28c6.92-1.87 13.59-2.76 20.54-1.7 22.52 2.94 40.2 19.14 44.85 41.28.77 3.68 2.42 6.97 2.84 10.69.83 7.29-4.15 13-11.11 14.91L109.5 178.56ZM258.09 57.05c-.44-2.66-1.23-4.95-2.35-7.05-2.57-4.81-7.57-6.34-12.7-4.9l-39.18 10.98c-3.58 1-5.81 4.55-6.61 7.28-.99 3.41.2 7.01 2.05 9.83l58.79-16.15ZM116.52 148.66l251.07-68.74c-4.62-13.63-18.12-19.87-31.13-16.28l-62.34 17.2-142.4 39.24c-12.04 3.32-18.34 17.65-15.21 28.59Z'/><g><path d='M318.1 486.08l-127.32.05c-27.44.01-49.39-21.72-52.68-48.45l-24.81-201.42-3.85-33.27c-.87-7.54 5.41-14.09 13.41-14.09l262.82.02c8.62 0 14.64 7.23 13.62 15.57l-28.75 233.39c-3.26 26.46-25.02 48.19-52.43 48.2ZM190.06 459.05l127.97.33c15.37-1.52 25.7-13.69 26.16-28.94l26.36-214.13-232.44-.03 20.7 168.82 4.47 36.14 2.38 16.83c1.49 10.55 12.3 20.94 24.4 20.97Z'/><path d='M210.2 420.11c.52 6.24-3.02 10.93-8.51 11.72s-11.13-2.19-11.62-8.2l-2.63-31.85-4.54-57.29-5.87-72.82c-.22-2.71-.14-5.37-.65-7.85-1.33-6.47 2.13-12.46 8-13.46 7.36-1.25 11.86 3.78 12.41 10.85l3.68 46.8 2.68 33.92 4.59 58.52 2.46 29.66Z'/><path d='M321.77 385.66l-2.7 35.43c-.5 6.51-4.56 11.19-11.06 10.87-6.44-.32-10.07-5.75-9.53-12.48l13.68-170.43c.5-6.21 6.16-9.64 11.71-8.73 6.97 1.14 9.01 7.21 8.49 13.56l-6.17 75.39-4.43 56.4Z'/><path d='M264.25 423.81c0 5.6-6.28 8.22-10.28 8.11-4.55-.12-9.75-3.6-9.75-9.05l.04-174.1c0-5.42 5.39-8.37 9.71-8.57 4.02-.18 10.27 2.57 10.27 7.91l.02 175.69Z'/></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><path d='M109.5 178.56c-6.61 1.81-12.96-2.32-14.96-7.7-2.61-7.06-4.49-13.73-5.45-21.27-3.15-24.58 11.12-48.82 35.06-55.53l46.86-13.14c1.05-.29 1.39-1.48 1.07-2.42-7.51-21.65 5.32-44.57 27.73-49.51l37.71-10.22c21.79-5.91 42.75 8.45 46.54 31.13l45.4-12.28c6.92-1.87 13.59-2.76 20.54-1.7 22.52 2.94 40.2 19.14 44.85 41.28.77 3.68 2.42 6.97 2.84 10.69.83 7.29-4.15 13-11.11 14.91L109.5 178.56ZM258.09 57.05c-.44-2.66-1.23-4.95-2.35-7.05-2.57-4.81-7.57-6.34-12.7-4.9l-39.18 10.98c-3.58 1-5.81 4.55-6.61 7.28-.99 3.41.2 7.01 2.05 9.83l58.79-16.15ZM116.52 148.66l251.07-68.74c-4.62-13.63-18.12-19.87-31.13-16.28l-62.34 17.2-142.4 39.24c-12.04 3.32-18.34 17.65-15.21 28.59Z'/><g><path d='M318.1 486.08l-127.32.05c-27.44.01-49.39-21.72-52.68-48.45l-24.81-201.42-3.85-33.27c-.87-7.54 5.41-14.09 13.41-14.09l262.82.02c8.62 0 14.64 7.23 13.62 15.57l-28.75 233.39c-3.26 26.46-25.02 48.19-52.43 48.2ZM190.06 459.05l127.97.33c15.37-1.52 25.7-13.69 26.16-28.94l26.36-214.13-232.44-.03 20.7 168.82 4.47 36.14 2.38 16.83c1.49 10.55 12.3 20.94 24.4 20.97Z'/><path d='M210.2 420.11c.52 6.24-3.02 10.93-8.51 11.72s-11.13-2.19-11.62-8.2l-2.63-31.85-4.54-57.29-5.87-72.82c-.22-2.71-.14-5.37-.65-7.85-1.33-6.47 2.13-12.46 8-13.46 7.36-1.25 11.86 3.78 12.41 10.85l3.68 46.8 2.68 33.92 4.59 58.52 2.46 29.66Z'/><path d='M321.77 385.66l-2.7 35.43c-.5 6.51-4.56 11.19-11.06 10.87-6.44-.32-10.07-5.75-9.53-12.48l13.68-170.43c.5-6.21 6.16-9.64 11.71-8.73 6.97 1.14 9.01 7.21 8.49 13.56l-6.17 75.39-4.43 56.4Z'/><path d='M264.25 423.81c0 5.6-6.28 8.22-10.28 8.11-4.55-.12-9.75-3.6-9.75-9.05l.04-174.1c0-5.42 5.39-8.37 9.71-8.57 4.02-.18 10.27 2.57 10.27 7.91l.02 175.69Z'/></g></svg>");
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dialog-open {
    overflow: hidden;
}

.clinic-delete-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.clinic-delete-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 27, 46, 0.5);
    backdrop-filter: blur(3px);
}

.clinic-delete-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 28px), 460px);
    margin: 10vh auto 0;
    padding: 24px;
    border: 1px solid var(--line-color);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 26px 60px rgba(0, 24, 48, 0.24);
}

.clinic-delete-dialog__panel h4 {
    margin: 0 0 10px;
    color: var(--heading-color);
    font-size: 1.2rem;
}

.clinic-delete-dialog__panel p {
    margin: 0 0 16px;
    color: var(--text-color);
}

.clinic-delete-dialog__form {
    display: grid;
    gap: 14px;
}

.clinic-delete-dialog__checkbox {
    align-items: flex-start;
    margin: 0;
}

.clinic-delete-dialog__checkbox input {
    margin-top: 3px;
}

.clinic-delete-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.user-list {
    width: min(100%, var(--content-width));
    margin: 0 auto 24px;
    display: grid;
    gap: 14px;
}

.user-overview-panel {
    width: min(100%, var(--content-width));
    margin: 0 auto 18px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    border: 1px solid var(--line-color);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
    box-shadow: var(--shadow-soft);
}

.user-overview-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-color);
}

.user-overview-label {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.user-overview-item strong {
    color: var(--heading-color);
    font-size: 1rem;
}

.user-card {
    border: 1px solid var(--line-color);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line-color);
    background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface));
}

.user-card-title {
    margin: 0;
    text-align: left;
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
}

.user-card-email {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.user-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.user-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    background: var(--surface-alt);
    color: var(--heading-color);
}

.user-card-badge.status-active,
.user-card-badge.status-ok {
    background: var(--success-soft);
    color: var(--success);
}

.user-card-badge.status-inactive,
.user-card-badge.status-warning {
    background: var(--error-soft);
    color: var(--error);
}

.user-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
}

.user-card-field {
    padding: 12px 14px;
    border: 1px solid var(--line-color);
    border-radius: 14px;
    background: var(--surface-muted);
}

.user-card-label {
    display: block;
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.user-card-field p {
    margin: 0;
}

.user-card-actions {
    padding: 0 18px 18px;
}

.event-accordion {
    display: flex;
    flex-direction: column;
    width: min(75%, 900px);
    margin: 0 auto 40px;
}

.accordion-group-heading {
    margin: 0 0 10px;
    text-align: left;
    color: var(--heading-color);
    font-size: 1.05rem;
    font-weight: 800;
}

.accordion-group-heading-primary {
    order: 1;
}

.accordion-group-heading-secondary {
    order: 4;
    margin-top: 18px;
}

.accordion-item-group-one.accordion-item-email {
    order: 2;
}

.accordion-item-group-one.accordion-item-telegram {
    order: 3;
}

.accordion-item-group-two.accordion-item-reminders {
    order: 5;
}

.accordion-item-group-two.accordion-item-mail-addresses {
    order: 6;
}

.accordion-item {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 36%, var(--line-color));
    border-radius: 18px;
    background: var(--surface-muted);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

.accordion-item summary {
    list-style: none;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item[open] summary,
.accordion-item summary:hover {
    background: var(--surface-alt);
    color: var(--primary-strong);
}

.accordion-item[open] summary {
    border-bottom: 1px solid color-mix(in srgb, var(--primary-strong) 48%, var(--line-color));
}

.accordion-panel {
    padding: 22px;
}

#mail-box-view-event_vol {
    max-width: 100%;
    margin: 0;
    padding: 22px;
}

.manual-email-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.manual-email-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-color);
}

.event-volunteers-title {
    margin-bottom: 6px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    text-align: center;
}

.event-volunteers-subtitle {
    margin: 0 auto 18px;
    text-align: center;
    color: var(--heading-color);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    font-weight: 700;
}

.inline-help-accordion {
    margin: 0 0 16px;
    border: 2px solid color-mix(in srgb, var(--success) 82%, var(--line-color));
    border-radius: 16px;
    background: var(--surface-muted);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 22%, transparent);
    overflow: hidden;
}

.inline-help-accordion summary {
    list-style: none;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    background: var(--surface-muted);
}

.inline-help-accordion summary::-webkit-details-marker {
    display: none;
}

.inline-help-accordion[open] summary {
    border-bottom: 1px solid color-mix(in srgb, var(--primary-strong) 48%, var(--line-color));
    background: var(--surface-alt);
    color: var(--primary-strong);
}

.inline-help-accordion summary:hover {
    background: var(--surface-alt);
    color: var(--primary-strong);
}

.inline-help-panel {
    padding: 16px;
}

.inline-help-panel p,
.inline-help-panel ul {
    margin-bottom: 14px;
}

.inline-help-panel ul {
    padding-left: 22px;
}

.inline-help-copy {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.compact-section-title {
    margin-bottom: 10px;
}

.compact-helper-text {
    margin: 0;
    text-align: left;
}

.manual-email-compact {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.manual-email-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.manual-email-entry input[type="email"] {
    margin-bottom: 0;
}

.manual-email-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    min-height: 48px;
    padding-top: 34px;
}

.manual-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line-color);
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.92rem;
}

.manual-email-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--error) 42%, var(--line-color));
    border-radius: 999px;
    background: var(--error-soft);
    color: var(--error);
    cursor: pointer;
}

.manual-email-feedback {
    min-height: 1.4em;
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.manual-email-feedback.is-success {
    color: var(--success);
}

.manual-email-feedback.is-error {
    color: var(--error);
}

.page-back-link {
    width: min(75%, 900px);
    margin: 36px auto 0;
}

.promo-compose-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.promo-hidden-form {
    display: none;
}

.promo-email-card {
    width: min(100%, 720px);
    margin: 0 auto;
}

.promo-subpanel {
    width: 100%;
    margin: 0 0 18px;
}

.promo-subpanel:last-child {
    margin-bottom: 0;
}

.recipient-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.recipient-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 86px;
    padding: 8px 12px;
    border: 1px solid var(--line-color);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
}

.recipient-option input[type="checkbox"] {
    margin: 0;
}

.recipient-option-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.recipient-option-name {
    color: var(--heading-color);
    font-weight: 700;
}

.recipient-option-email {
    color: var(--text-muted);
    font-size: 0.82rem;
    word-break: break-word;
}

.promo-message-section {
    padding-top: 0;
}

.promo-message-section h3 {
    margin-top: 2em;
}

.promo-message-section textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    resize: none;
    margin: 0 auto;
}

#optie1 > p,
#optie1 > ul {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

#optie1 > ul {
    padding-left: 20px;
}

.site-footer {
    width: min(calc(100% - 24px), var(--content-width));
    margin: 0 auto 20px;
    padding: 18px 22px;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-soft);
    text-align: center;
    color: var(--text-muted);
}

.miniapp-body {
    margin: 0;
    background: linear-gradient(180deg, #eef4fb 0%, #f9fbfd 100%);
    color: #16324d;
}

.miniapp-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.miniapp-hero {
    padding: 20px 8px 12px;
    text-align: center;
}

.miniapp-kicker {
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #54708f;
}

.miniapp-status {
    max-width: 560px;
    margin: 0 auto;
    color: #34506d;
}

.miniapp-card {
    max-width: 640px;
    margin: 0 auto 18px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #d5dfeb;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 51, 102, 0.08);
}

.miniapp-card h2,
.miniapp-card p {
    text-align: left;
}

.miniapp-card-success {
    background: #eef8f0;
    border-color: #b8dcbc;
}

.miniapp-card-error {
    background: #fff3f1;
    border-color: #efc6c0;
}

.miniapp-card-info {
    background: #eef4fb;
    border-color: #cbd8e8;
}

.miniapp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #476582;
}

.miniapp-description,
.miniapp-copy {
    line-height: 1.7;
    color: #35506a;
}

.miniapp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.miniapp-stat {
    padding: 14px;
    border-radius: 14px;
    background: #f5f8fc;
    border: 1px solid #d7e1ee;
}

.miniapp-stat-needed {
    background: #fff0f0;
    border-color: #edcaca;
}

.miniapp-stat-joined {
    background: #eef8f0;
    border-color: #c7e2cb;
}

.miniapp-stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #627b93;
}

.miniapp-stat strong {
    font-size: 1.35rem;
    color: #15314d;
}

.miniapp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.miniapp-card button,
.miniapp-card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background-color: #004c99;
    color: #fff;
    cursor: pointer;
}

.miniapp-card button:hover,
.miniapp-card input[type="submit"]:hover {
    background-color: #0066cc;
}

.miniapp-actions button {
    flex: 1 1 220px;
}

.miniapp-actions #miniapp-signup-button {
    background: #1f8f45 !important;
}

.miniapp-actions #miniapp-unsubscribe-button {
    background: #c0392b !important;
}

@media (max-width: 960px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
    }

    .brand-lockup {
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    #logo {
        width: 144px;
        height: 180px;
    }

    .telegram-join-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
        gap: 14px;
    }

    .telegram-join-copy {
        flex: none;
        width: 100%;
    }

    .telegram-join-qr {
        width: 100%;
        justify-content: center;
    }

    .clinic-card-header {
        flex-direction: column;
    }

    .clinic-card-badge {
        white-space: normal;
    }

    .user-card-header {
        flex-direction: column;
    }

    .user-card-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    :root {
        --body-size: 18px;
        --body-line: 1.72;
        --tap-size: 54px;
    }

    .site-header,
    .site-main,
    .site-footer {
        width: min(calc(100% - 16px), var(--content-width));
    }

    .topbar,
    .site-footer,
    .table-wrapper,
    #optie1,
    .auth-card,
    .form-card {
        padding: 18px;
    }

    .brand-lockup {
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    #logo {
        width: 144px;
        height: 180px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .clinic-card-grid {
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }

    .user-card-grid {
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }

    .event-accordion {
        width: 100%;
    }

    .telegram-join-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .telegram-join-copy {
        flex: none;
        width: 100%;
    }

    .telegram-join-qr {
        width: 100%;
        justify-content: center;
    }

    .user-overview-panel {
        padding: 14px 16px;
        gap: 10px 16px;
    }

    .user-overview-item {
        width: 100%;
        justify-content: space-between;
    }

    .clinic-card-header,
    .clinic-card-actions,
    .user-card-header,
    .user-card-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .menu-items {
        display: none;
        flex-direction: column;
    }

    .menu.open .menu-items {
        display: flex;
    }

    .menu-items li.menu-logout {
        margin-left: 0;
    }

    .menu-items li a,
    .menu-items li button.submenu-toggle {
        justify-content: flex-start;
        min-height: 58px;
        padding-inline: 18px;
    }

    .submenu {
        position: static;
        min-width: 0;
        margin: 0 12px 12px;
        box-shadow: none;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }

    thead,
    tr:first-child th {
        display: none;
    }

    table {
        border: 0;
    }

    tr {
        margin-bottom: 14px;
        border: 1px solid var(--line-color);
        border-radius: 16px;
        overflow: hidden;
        background: var(--surface-muted);
        box-shadow: var(--shadow-soft);
    }

    tr:last-child {
        margin-bottom: 0;
    }

    td {
        position: relative;
        padding: 14px 16px 14px 44%;
        border-bottom: 1px solid var(--line-color);
        background: transparent !important;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        top: 14px;
        left: 16px;
        width: calc(44% - 20px);
        color: var(--heading-color);
        font-weight: 800;
    }

    td[data-label="EventNr"],
    td[data-label="VrijwilligerNR"],
    td[data-label="Aangemaakt"] {
        display: none;
    }

    td.actions {
        padding-left: 16px;
    }

    td.actions::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 10px;
    }

    .action-links {
        gap: 8px;
    }

    .action-links a,
    .action-links button.as-link {
        width: 100%;
        justify-content: center;
    }

    .clinic-card-actions .action-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .clinic-admin-actions {
        flex-wrap: wrap;
    }

    .clinic-primary-actions {
        width: 100%;
    }

    .clinic-primary-actions a {
        flex: 1 1 0;
    }

    .icon-link-button,
    .icon-action-button {
        margin-left: 0;
    }

    .user-card-actions .action-links {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions > * {
        width: 100%;
    }

    .manual-email-compact {
        grid-template-columns: 1fr;
    }

    .promo-compose-layout {
        grid-template-columns: 1fr;
    }

    .recipient-option-list {
        grid-template-columns: 1fr;
    }

    .manual-email-entry {
        flex-direction: column;
        align-items: stretch;
    }

    .manual-email-inline-list {
        padding-top: 0;
    }

    .manual-email-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-meta-links {
        font-size: 0.92rem;
    }

    .miniapp-stats {
        grid-template-columns: 1fr;
    }

    .miniapp-actions {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-lockup {
        flex-direction: column;
        align-items: center;
    }

    #logo {
        width: 180px;
        height: 210px;
    }

    .brand-copy,
    .brand-title {
        display: none;
    }

    .theme-toggle {
        width: 62px;
        height: 62px;
        min-height: 62px;
    }

    td {
        padding: 54px 14px 14px;
    }

    td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 8px;
    }
}

/* Accessible status contrast, keyboard dialogs and compact public forms. */
:root { --success: #176038; }
html[data-theme="dark"] { --success: #87dfae; }
.skip-link { position: fixed; left: 8px; top: -100px; z-index: 2000; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #d58b13; outline-offset: 4px; }
.clinic-delete-dialog:not([open]) { display: none; }
.clinic-delete-dialog[open] { display: block; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; margin: 0; border: 0; background: transparent; }
.clinic-delete-dialog__panel { max-height: 85vh; overflow-y: auto; }
.clinic-delete-dialog::backdrop { background: rgba(12, 27, 46, .5); }
.table-scroll { overflow-x: auto; }
.list-navigation { display: flex; justify-content: center; gap: 20px; margin: 16px 0; flex-wrap: wrap; }
.clinic-period-navigation { display: block; text-align: center; }
.clinic-period-navigation a { display: inline-block; white-space: nowrap; }
.clinic-period-navigation span { margin: 0 8px; }
.clinic-period-navigation a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
    .auth-page #logo { width: 64px; height: 80px; }
    .auth-page .topbar { display: flex; flex-direction: row; gap: 12px; padding: 12px 18px; }
    .auth-page .brand-lockup { justify-content: flex-start; width: auto; }
    .auth-page .topbar-actions { width: auto; margin-left: auto; }
}

.auth-page .stack-form > br { display: none; }
