.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-login,
.account-profile {
    color: #d0d5dd;
}

.header-login:hover,
.account-profile:hover {
    color: #fff;
}

.site-header nav a {
    padding: 7px 9px;
    border-radius: 8px;
}

.site-header nav {
    overflow: visible;
}

.site-header nav a.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 750;
}

.nav-admin {
    position: relative;
    flex: 0 0 auto;
}

.nav-admin summary {
    padding: 7px 9px;
    border-radius: 8px;
    color: #d0d5dd;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    font-size: .92rem;
}

.nav-admin summary::-webkit-details-marker {
    display: none;
}

.nav-admin summary::after {
    content: " ▾";
}

.nav-admin summary.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid #344054;
    border-radius: 10px;
    background: #101828;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.nav-submenu a {
    padding: 9px 10px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(21, 94, 239, .35);
    outline-offset: 3px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.auth-logo {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    border-radius: 50%;
    object-fit: cover;
}

textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #c9d2e2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

textarea:focus {
    outline: 3px solid rgba(21, 94, 239, .14);
    border-color: var(--primary);
}

.directory-heading {
    padding-top: 10px;
}

.directory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(410px, 1fr);
    gap: 24px;
    align-items: start;
}

.directory-members-column {
    min-width: 0;
}

.directory-calendar-column {
    position: sticky;
    top: 88px;
    min-width: 0;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.directory-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.directory-photo {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: 0;
}

.directory-card-body {
    min-width: 0;
    padding: 15px;
}

.directory-card-body h2 {
    margin-bottom: 7px;
    font-size: 1.05rem;
}

.profile-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    white-space: pre-line;
    color: var(--muted);
    line-height: 1.4;
    font-size: .85rem;
}

.profile-activity {
    color: #164e63;
    font-weight: 700;
    margin: .2rem 0 .35rem;
    font-size: .86rem;
}

.profile-position {
    margin: .15rem 0 .4rem;
}

.association-position {
    background: #fff4e5;
    color: #8a4b08;
}

.profile-company {
    color: #5b1724;
    font-weight: 800;
    margin: .25rem 0 0;
    font-size: .88rem;
}

.profile-initials {
    background: linear-gradient(135deg, #155eef, #0e9384);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.profile-header {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    align-items: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}

.profile-identity h2 {
    margin-bottom: 8px;
}

.profile-editor {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.profile-remove-form {
    margin-top: 15px;
}

.profile-crop-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.profile-crop-preview {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
    background: #f2f4f7;
}

.profile-crop-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-crop-form input[type="range"] {
    min-height: 28px;
    padding: 0;
    cursor: ew-resize;
}

.public-registration-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
}

.public-registration-callout div {
    display: grid;
    gap: 4px;
}

.public-registration-callout span {
    color: #475467;
    font-size: .88rem;
}

.public-registration-card {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

.public-registration-event {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.public-registration-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.public-consent {
    align-items: flex-start;
    line-height: 1.45;
}

.member-actions {
    min-width: 165px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
}

.mail-status {
    line-height: 1.35;
}

.page-heading-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.guest-mail-status {
    display: grid;
    gap: 7px;
    min-width: 210px;
}

.mail-error-detail {
    max-width: 320px;
    color: #b42318;
    line-height: 1.35;
}

.guest-actions {
    min-width: 175px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    white-space: normal;
}

.table-wrap td {
    overflow-wrap: anywhere;
}

.panel-intro {
    padding: 0 24px;
}

.duplicate-warning {
    padding: 15px;
    border: 1px solid #fdb022;
    border-radius: 10px;
    background: #fffaeb;
    color: #7a2e0e;
}

.duplicate-warning p {
    margin: 6px 0 12px;
}

.forgot-password {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.forgot-password summary {
    font-weight: 750;
}

.forgot-password[open] summary {
    margin-bottom: 14px;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
}

.legal-content {
    max-width: 850px;
    line-height: 1.65;
}

.legal-content h2 {
    margin-top: 28px;
}

.legal-content li + li {
    margin-top: 7px;
}

.danger-zone {
    border-color: #fda29b;
}

.danger-button {
    background: var(--danger);
    color: #fff;
}

.request-actions {
    display: grid;
    gap: 9px;
    min-width: 190px;
}

.inline-status-form {
    display: grid;
    gap: 7px;
}

.inline-status-form select {
    min-height: 38px;
    padding: 7px 9px;
}

.public-calendar {
    padding: 0;
    overflow: visible;
}

.calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.calendar-heading .button {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
}

.calendar-heading h2 {
    font-size: 1.1rem;
}

.calendar-help {
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: #f9fafb;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}

.calendar-heading h2,
.calendar-heading .eyebrow {
    margin-bottom: 0;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    padding: 6px 2px;
    text-align: center;
    color: var(--muted);
    background: #f9fafb;
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 86px;
    padding: 6px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.outside-month {
    background: #f9fafb;
    color: #98a2b3;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day-number {
    display: block;
    margin-bottom: 3px;
    font-size: .78rem;
    font-weight: 800;
}

.mobile-day {
    display: none;
}

.calendar-event {
    position: relative;
    display: grid;
    width: 100%;
    gap: 3px;
    margin-top: 3px;
    padding: 5px;
    border: 0;
    border-radius: 7px;
    background: #ecfdf3;
    color: #067647;
    font: inherit;
    font-size: .66rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.calendar-event > strong,
.calendar-event > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event.special-event {
    background: #eff4ff;
    color: #3538cd;
}

.calendar-event small {
    color: inherit;
}

.event-hover-summary {
    position: absolute;
    top: -8px;
    right: calc(100% + 10px);
    z-index: 50;
    display: none;
    width: 290px;
    gap: 7px;
    padding: 14px;
    border: 1px solid #344054;
    border-radius: 11px;
    background: #101828;
    color: #fff;
    box-shadow: 0 16px 35px rgba(16, 24, 40, .28);
    font-size: .78rem;
    line-height: 1.35;
    text-align: left;
    pointer-events: none;
}

.event-hover-summary::after {
    content: "";
    position: absolute;
    top: 16px;
    right: -7px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border-top: 1px solid #344054;
    border-right: 1px solid #344054;
    background: #101828;
}

.event-hover-title {
    color: #fff;
    font-weight: 800;
}

.event-hover-metrics {
    padding: 8px 0;
    border-top: 1px solid #344054;
    border-bottom: 1px solid #344054;
}

.event-hover-summary i,
.event-type-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--type-color);
}

.event-hover-action {
    color: #84caff;
    font-weight: 750;
}

@media (hover: hover) and (pointer: fine) {
    .calendar-event:hover .event-hover-summary,
    .calendar-event:focus-visible .event-hover-summary {
        display: grid;
    }
}

.event-detail-dialog {
    width: min(850px, calc(100% - 32px));
    max-height: min(90vh, 920px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(16, 24, 40, .35);
}

.event-detail-dialog::backdrop {
    background: rgba(16, 24, 40, .66);
    backdrop-filter: blur(2px);
}

.event-dialog-shell {
    display: grid;
    max-height: min(90vh, 920px);
    grid-template-rows: auto minmax(0, 1fr);
}

.event-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.event-dialog-header h2,
.event-dialog-header .eyebrow {
    margin-bottom: 0;
}

.dialog-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.event-dialog-content {
    overflow: auto;
    padding: 22px 24px 28px;
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.event-facts div {
    padding: 12px;
    border-radius: 10px;
    background: #f9fafb;
}

.event-facts dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-facts dd {
    margin: 0;
    font-weight: 700;
}

.event-description {
    white-space: pre-line;
}

.meeting-summary-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.meeting-summary-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.meeting-summary-heading h3,
.meeting-summary-heading .eyebrow {
    margin-bottom: 0;
}

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

.event-summary-stats div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.event-summary-stats span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.event-summary-stats strong {
    font-size: 1.25rem;
}

.meeting-period-explanation {
    margin: 10px 0 0;
    padding: 11px 13px;
    border-left: 3px solid var(--primary);
    background: #eff8ff;
    color: #175cd3;
    font-size: .84rem;
    line-height: 1.45;
}

.event-summary-type-stats {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.event-type-stat {
    border-top: 3px solid var(--type-color) !important;
}

.event-type-stat span {
    display: flex;
    align-items: center;
}

.event-type-stat .event-type-dot {
    flex: 0 0 8px;
    background: var(--type-color);
}

.event-type-stat small {
    color: var(--muted);
}

.event-detail-table {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.event-detail-table th,
.event-detail-table td {
    padding: 11px 13px;
}

.event-breakdown {
    margin-top: 16px;
}

.event-breakdown summary {
    color: var(--primary);
    font-weight: 750;
    cursor: pointer;
}

.event-detail-list,
.guest-summary-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.event-detail-list article,
.guest-summary-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f9fafb;
}

.event-detail-list article > div,
.guest-summary-card {
    min-width: 0;
}

.event-detail-list article > div,
.guest-summary-card header > div {
    display: grid;
    gap: 3px;
}

.event-detail-list span,
.guest-summary-card span,
.event-detail-list small {
    color: var(--muted);
    font-size: .8rem;
}

.event-detail-list article > b {
    white-space: nowrap;
}

.guest-summary-card {
    display: grid;
    gap: 10px;
}

.guest-summary-card header strong {
    font-size: 1rem;
}

.guest-summary-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.guest-summary-card dl div {
    min-width: 0;
}

.guest-summary-card dt {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.guest-summary-card dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.guest-summary-card p {
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

.empty-inline {
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 9px;
    background: #f9fafb;
    color: var(--muted);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.admin-toolbar form {
    margin: 0;
}

.summary-table {
    max-height: 520px;
    overflow: auto;
}

.error-badge {
    background: #fef3f2;
    color: #b42318;
}

@media (max-width: 650px) {
    .page-heading-actions {
        width: 100%;
    }

    .page-heading-actions .button {
        flex: 1 1 150px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .js-enabled .site-header nav {
        display: none;
    }

    .js-enabled .site-header nav.menu-open {
        display: grid;
    }

    .site-header nav {
        grid-template-columns: 1fr;
        gap: 4px;
        overflow: visible;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .site-header nav > a,
    .nav-admin summary {
        display: block;
        padding: 10px 11px;
    }

    .nav-admin {
        position: static;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        margin-top: 4px;
        padding: 4px 0 4px 16px;
        border: 0;
        box-shadow: none;
    }

    .account {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .site-header nav {
        order: 3;
    }

    .calendar-weekdays {
        display: none;
    }

    .calendar-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

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

    .directory-calendar-column {
        position: static;
    }

    .calendar-help {
        display: none;
    }

    .calendar-day,
    .calendar-day:nth-child(7n) {
        display: none;
        min-height: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .calendar-day.has-events {
        display: block;
    }

    .calendar-day.outside-month {
        display: none;
    }

    .desktop-day {
        display: none;
    }

    .mobile-day {
        display: inline;
        text-transform: capitalize;
    }

    .calendar-event {
        padding: 8px;
        font-size: .75rem;
    }

    .calendar-event > small {
        display: block;
    }

    .admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-toolbar .button {
        width: 100%;
    }
}

.member-actions form {
    width: 100%;
}

.member-actions .link-button {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
}

.member-actions .link-button:disabled {
    color: var(--muted);
    cursor: wait;
    text-decoration: none;
}

.filters.compact.member-filters {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
}

@media (max-width: 650px) {
    .brand-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .brand span {
        font-size: .9rem;
    }

    .auth-logo {
        width: 126px;
        height: 126px;
        margin-bottom: 20px;
    }

    .directory-grid,
    .profile-editor {
        grid-template-columns: 1fr;
    }

    .directory-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .directory-photo {
        min-height: 138px;
    }

    .event-detail-dialog {
        width: calc(100% - 18px);
        max-height: 94vh;
    }

    .event-dialog-shell {
        max-height: 94vh;
    }

    .event-dialog-header,
    .event-dialog-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .event-facts,
    .event-summary-stats {
        grid-template-columns: 1fr;
    }

    .guest-summary-card dl {
        grid-template-columns: 1fr;
    }

    .event-detail-list article {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        margin: 0 auto;
    }

    .member-actions {
        min-width: 0;
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: start;
    }

    .member-actions > a,
    .member-actions > form,
    .member-actions > span {
        grid-column: 2;
    }

    .filters.compact.member-filters {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 651px) and (max-width: 900px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }

    .filters.compact.member-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 651px) and (max-width: 1050px) {
    .directory-layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
    }
}

@media (min-width: 651px) and (max-width: 800px) {
    .directory-layout {
        grid-template-columns: 1fr;
    }

    .directory-calendar-column {
        position: static;
    }

    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .public-registration-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .public-registration-callout .button {
        width: 100%;
    }
}
