/* Copyright (c) 2026 Donnie V. Savage, dSavage Networks */
/* Licensed for use by No Rules Riders. All Rights Reserved. */
.chapter-email-modal-backdrop,
.chapter-picker-modal-backdrop,
.chapter-pending-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--nrr-alpha-true-black-55);
    z-index: 1100;
}

.chapter-pending-modal-backdrop {
    padding: 18px;
}

.chapter-email-modal-backdrop.open,
.chapter-picker-modal-backdrop.open,
.chapter-pending-modal-backdrop.open {
    display: flex;
}

.chapter-email-modal-card,
.chapter-picker-modal-card {
    width: min(980px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--nrr-color-white);
    border-radius: 18px;
    box-shadow: 0 16px 40px var(--nrr-alpha-true-black-28);
}

.chapter-pending-modal-card {
    width: min(640px, 100%);
    background: var(--nrr-color-white);
    border-radius: 18px;
    box-shadow: 0 12px 36px var(--nrr-alpha-true-black-28);
    overflow: hidden;
}

.chapter-email-modal-head,
.chapter-picker-modal-head,
.chapter-pending-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--nrr-color-line);
}

.chapter-email-modal-body,
.chapter-picker-modal-body,
.chapter-pending-modal-body {
    padding: 20px;
}

.chapter-picker-modal-head > div {
    min-width: 0;
}

.chapter-modal-close,
.chapter-modal-close:link,
.chapter-modal-close:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--nrr-color-dark-soft);
    border-radius: 999px;
    background: var(--nrr-color-black);
    color: var(--nrr-color-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.chapter-modal-close:hover,
.chapter-modal-close:focus-visible {
    background: var(--nrr-color-true-black);
    color: var(--nrr-color-white);
    text-decoration: none;
}

.chapter-modal-close:focus-visible {
    outline: 3px solid var(--nrr-alpha-link-green-44);
    outline-offset: 2px;
}

.chapter-member-add-close,
.chapter-member-add-close:link,
.chapter-member-add-close:visited,
.chapter-member-add-actions .alt,
.chapter-member-add-actions .alt:link,
.chapter-member-add-actions .alt:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--nrr-action-cud-bg);
    border-radius: 999px;
    background: var(--nrr-color-white);
    color: var(--nrr-action-cud-bg);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.chapter-member-add-close:hover,
.chapter-member-add-close:focus-visible,
.chapter-member-add-actions .alt:hover,
.chapter-member-add-actions .alt:focus-visible {
    background: var(--nrr-color-white);
    color: var(--nrr-action-cud-bg-hover);
    text-decoration: none;
}

.chapter-email-modal-copy {
    margin: 0 0 14px;
}

.chapter-email-modal-actions,
.chapter-pending-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.chapter-pending-modal-actions {
    margin-top: 18px;
}

.chapter-pending-modal-actions button,
.chapter-pending-modal-actions a {
    min-height: 40px;
}

.chapter-pending-modal-title {
    margin: 0;
    font-size: 24px;
    color: var(--nrr-color-red);
}

.chapter-pending-modal-name {
    margin: 8px 0 0;
}

.chapter-pending-modal-copy,
.chapter-pending-intro-copy {
    margin: 0;
    line-height: 1.75;
    color: var(--nrr-color-dark-mid);
}

.chapter-empty-cell {
    color: var(--nrr-alpha-white-55);
    font-style: italic;
}

.chapter-status-note {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--nrr-alpha-white-64);
}

.chapter-helper-copy {
    margin: 0 0 10px;
    color: var(--nrr-alpha-white-74);
    font-size: 0.92rem;
}

.chapter-helper-copy--top,
.chapter-readonly-copy {
    margin-top: 6px;
}

.chapter-editor-section .chapter-readonly-copy,
.chapter-editor-section .chapter-helper-copy,
.chapter-editor-section .small.muted,
.chapter-editor-section .chapter-empty-cell,
.chapter-legacy-toggle-row .small.muted {
    color: var(--nrr-color-dark-soft);
}

.chapter-section-help {
    max-width: 920px;
    margin: 6px 0 12px;
    color: var(--nrr-color-dark-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.chapter-mini-action,
.chapter-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid var(--nrr-alpha-white-18);
    border-radius: 8px;
    background: var(--nrr-alpha-white-04);
    color: var(--nrr-color-surface);
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

button.chapter-mini-action,
button.chapter-inline-action {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.chapter-mini-action svg,
.chapter-inline-action svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.chapter-inline-action-text {
    min-width: auto;
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.chapter-mini-action:hover,
.chapter-inline-action:hover {
    background: var(--nrr-alpha-white-08);
}

.chapter-mini-action.chapter-action--read,
.chapter-inline-action.chapter-action--read,
.chapter-mini-action.nrr-action-read,
.chapter-inline-action.nrr-action-read {
    border-color: var(--nrr-action-read-border);
    background: var(--nrr-action-read-bg);
    color: var(--nrr-action-text);
}

.chapter-mini-action.chapter-action--read:hover,
.chapter-mini-action.chapter-action--read:focus-visible,
.chapter-inline-action.chapter-action--read:hover,
.chapter-inline-action.chapter-action--read:focus-visible,
.chapter-mini-action.nrr-action-read:hover,
.chapter-mini-action.nrr-action-read:focus-visible,
.chapter-inline-action.nrr-action-read:hover,
.chapter-inline-action.nrr-action-read:focus-visible {
    border-color: var(--nrr-action-read-border);
    background: var(--nrr-action-read-bg-hover);
    color: var(--nrr-action-text);
}

.chapter-mini-action.chapter-action--hd-orange,
.chapter-inline-action.chapter-action--hd-orange,
.chapter-mini-action.chapter-action--cud,
.chapter-inline-action.chapter-action--cud,
.chapter-mini-action.nrr-action-cud,
.chapter-inline-action.nrr-action-cud {
    border-color: var(--nrr-action-cud-border);
    background: var(--nrr-action-cud-bg);
    color: var(--nrr-action-text);
}

.chapter-mini-action.chapter-action--hd-orange:hover,
.chapter-mini-action.chapter-action--hd-orange:focus-visible,
.chapter-inline-action.chapter-action--hd-orange:hover,
.chapter-inline-action.chapter-action--hd-orange:focus-visible,
.chapter-mini-action.chapter-action--cud:hover,
.chapter-mini-action.chapter-action--cud:focus-visible,
.chapter-inline-action.chapter-action--cud:hover,
.chapter-inline-action.chapter-action--cud:focus-visible,
.chapter-mini-action.nrr-action-cud:hover,
.chapter-mini-action.nrr-action-cud:focus-visible,
.chapter-inline-action.nrr-action-cud:hover,
.chapter-inline-action.nrr-action-cud:focus-visible {
    border-color: var(--nrr-action-cud-border);
    background: var(--nrr-action-cud-bg-hover);
    color: var(--nrr-action-text);
}

.chapter-picker-tab {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--nrr-alpha-white-18);
    text-decoration: none;
    color: inherit;
}

.chapter-picker-tab.is-active {
    background: var(--nrr-alpha-white-08);
}

.chapter-picker-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.chapter-picker-search input {
    flex: 1 1 220px;
}

.chapter-picker-search select {
    flex: 0 1 220px;
}

.chapter-picker-modal-card .chapter-helper-copy,
.chapter-picker-modal-card .chapter-modal-copy-top,
.chapter-picker-modal-card .small.muted {
    color: var(--nrr-color-dark-soft);
}

.chapter-officer-role-picker {
    position: relative;
    display: inline-block;
}

.chapter-officer-role-picker > summary {
    list-style: none;
    cursor: pointer;
}

.chapter-officer-role-picker > summary::-webkit-details-marker {
    display: none;
}

.chapter-officer-role-form {
    display: grid;
    gap: 10px;
    min-width: 260px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--nrr-color-line);
    border-radius: 12px;
    background: var(--nrr-color-white);
    color: var(--nrr-text-dark);
    box-shadow: 0 10px 26px var(--nrr-alpha-true-black-18);
}

.chapter-officer-role-label {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.chapter-officer-role-label select {
    min-height: 40px;
    border: 1px solid var(--nrr-color-disabled);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--nrr-color-white);
    color: var(--nrr-color-black);
}

.chapter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--nrr-alpha-white-08);
    border: 1px solid var(--nrr-alpha-white-12);
}

.chapter-editor-actions {
    margin-top: 18px;
}

.chapter-hidden-input {
    display: none;
}

.chapter-inline-form {
    display: inline;
    margin: 0;
}

.chapter-field-flush {
    margin-bottom: 0;
}

.chapter-actions-end {
    justify-content: flex-end;
}

.chapter-tools-between,
.chapter-pagination-between {
    justify-content: space-between;
}

.chapter-spacing-bottom {
    margin-bottom: 14px;
}

.chapter-spacing-top {
    margin-top: 16px;
}

.chapter-modal-copy-top {
    margin: 8px 0 0;
}

.chapter-modal-copy-tight {
    margin-bottom: 14px;
}

.chapter-modal-note {
    margin-top: 6px;
}

.chapter-request-list {
    display: grid;
    gap: 14px;
}

.chapter-request-card {
    border: 1px solid var(--nrr-color-line);
    border-radius: 16px;
    padding: 16px 18px;
    background: var(--nrr-color-white);
}

.chapter-request-card--pending {
    background: var(--nrr-color-surface);
}

.chapter-request-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.chapter-request-title {
    margin: 0 0 6px;
    font-size: 20px;
}

.chapter-request-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border: 1px solid var(--nrr-color-line-strong);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chapter-request-pill--approved {
    background: var(--nrr-color-surface);
    color: var(--nrr-action-read-bg);
    border-color: var(--nrr-color-line);
}

.chapter-request-pill--denied {
    background: var(--nrr-color-surface);
    color: var(--nrr-color-red);
    border-color: var(--nrr-color-line-strong);
}

.chapter-request-pill--deleted {
    background: var(--nrr-color-surface);
    color: var(--nrr-color-dark-soft);
    border-color: var(--nrr-color-line);
}

.chapter-request-pill--pending {
    background: var(--nrr-color-surface);
    color: var(--nrr-color-orange-dark);
    border-color: var(--nrr-color-line-strong);
}

.chapter-request-meta,
.chapter-account-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.chapter-account-summary {
    margin-top: 10px;
}

.chapter-request-meta {
    margin-top: 12px;
}

.chapter-request-motto,
.chapter-request-note {
    margin-top: 12px;
}

.chapter-request-motto {
    color: var(--nrr-color-dark-mid);
}


.chapter-browser-location-status {
    margin: -4px 0 10px;
}

.chapter-status-copy {
    margin-top: -4px;
    line-height: 1.7;
}

.chapter-error-card {
    border: 1px solid var(--nrr-color-disabled);
    background: var(--nrr-color-surface);
}

.chapter-error-flash {
    margin: 0;
}

@media (max-width: 720px) {
    .chapter-email-action-row,
    .chapter-email-modal-head,
    .chapter-email-modal-actions,
    .chapter-picker-modal-head,
    .chapter-picker-tabs,
    .chapter-picker-tools,
    .chapter-email-modal-actions button,
    .chapter-email-modal-actions .alt,
    .chapter-email-action-row button,
    .chapter-picker-search button,
    .chapter-picker-search input,
    .chapter-picker-search select,
    .chapter-pending-modal-actions button,
    .chapter-pending-modal-actions a {
        width: 100%;
    }

    .chapter-inline-action-text {
        width: 100%;
    }

    .chapter-officer-role-picker,
    .chapter-officer-role-form {
        width: 100%;
    }

    .chapter-officer-role-form {
        margin-top: 8px;
    }

}

@media (max-width: 640px) {
    .chapter-pending-modal-head,
    .chapter-pending-modal-actions {
        flex-direction: column;
    }
}

.chapter-home-member-toolbar,
.chapter-member-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 12px;
}

.chapter-member-add-actions {
    margin: 12px 0 0;
}

.chapter-member-add-actions--top {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nrr-color-line);
}

.chapter-member-add-actions--bottom {
    margin-top: 10px;
}

.chapter-member-add-table-wrap {
    max-height: min(42vh, 360px);
    overflow: auto;
    overscroll-behavior: contain;
}

.chapter-member-add-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.chapter-member-add-table .chapter-member-add-select-column {
    width: 1%;
    white-space: nowrap;
}

.chapter-member-add-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.chapter-member-add-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--nrr-action-cud-bg);
}

.chapter-member-add-form :is(.chapter-inline-action, .nrr-action-cud)[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .chapter-picker-modal-backdrop.open {
        align-items: stretch;
        padding: 8px;
    }

    .chapter-picker-modal-card {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 16px);
    }

    .chapter-picker-modal-head {
        padding: 12px;
    }

    .chapter-picker-modal-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 12px;
    }

    .chapter-member-add-form {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .chapter-member-add-table-wrap {
        max-height: 42vh;
    }

    .chapter-home-member-toolbar,
    .chapter-member-add-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .chapter-home-member-toolbar .chapter-home-tab-action,
    .chapter-member-add-actions a,
    .chapter-member-add-actions button {
        width: 100%;
    }

    .chapter-member-add-table,
    .chapter-member-add-table thead,
    .chapter-member-add-table tbody,
    .chapter-member-add-table th,
    .chapter-member-add-table td,
    .chapter-member-add-table tr {
        display: block;
    }

    .chapter-member-add-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .chapter-member-add-table tbody tr {
        margin-bottom: 10px;
        padding: 8px;
        border: 1px solid var(--nrr-color-line);
        border-radius: 12px;
        background: var(--nrr-color-white);
    }

    .chapter-member-add-table tbody td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 4px;
        border-bottom: 0;
        overflow-wrap: anywhere;
    }

    .chapter-member-add-table .chapter-member-add-select-column {
        width: auto;
        white-space: normal;
    }

    .chapter-member-add-table tbody td::before {
        content: attr(data-label);
        font-weight: 900;
    }

    .chapter-member-add-table tbody td[colspan] {
        display: block;
    }

    .chapter-member-add-table tbody td[colspan]::before {
        content: none;
    }
}

.chapter-picker-modal-card .chapter-helper-copy,
.chapter-picker-modal-card .muted,
.chapter-picker-modal-card .small.muted {
    color: var(--nrr-color-dark-soft);
}

/* shared chapter image upload */
.chapter-image-upload {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
    align-items: center;
    max-width: 680px;
}

.chapter-image-preview-wrap {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--nrr-color-surface);
    border: 1px solid var(--nrr-color-line);
}

.chapter-image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--nrr-alpha-true-black-18);
    background: var(--nrr-color-white);
}

.chapter-image-control-stack {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.chapter-image-upload-button,
.chapter-image-use-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
}

.chapter-image-selected-text {
    max-width: 420px;
}

.chapter-image-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--nrr-alpha-true-black-64);
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.chapter-image-modal-backdrop.open {
    display: flex;
}

.chapter-image-modal-card {
    width: min(560px, 100%);
    border-radius: 20px;
    background: var(--nrr-color-surface);
    color: var(--nrr-color-black);
    box-shadow: 0 18px 50px var(--nrr-alpha-true-black-35);
    padding: 18px;
}

.chapter-image-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.chapter-image-modal-head .chapter-helper-copy,
.chapter-image-modal-head .chapter-modal-copy-top {
    color: var(--nrr-color-dark-soft);
    margin: 4px 0 0;
}

.chapter-image-modal-close {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.chapter-image-modal-body {
    display: grid;
    gap: 16px;
}

.chapter-image-dropzone {
    display: grid;
    gap: 5px;
    padding: 18px;
    min-height: 116px;
    border-radius: 16px;
    border: 2px dashed var(--nrr-color-link-green);
    background: var(--nrr-color-surface);
    cursor: pointer;
}

.chapter-image-dropzone:focus,
.chapter-image-upload-button:focus,
.chapter-image-use-button:focus,
.chapter-image-modal-close:focus {
    outline: 3px solid var(--nrr-alpha-link-green-35);
    outline-offset: 2px;
}

.chapter-image-dropzone.is-dragging {
    background: var(--nrr-color-surface);
    border-color: var(--nrr-color-link-green);
}

.chapter-image-dropzone-title {
    color: var(--nrr-color-link-green);
    font-weight: 900;
}

.chapter-image-dropzone-copy {
    color: var(--nrr-color-dark-mid);
    font-size: 0.92rem;
    line-height: 1.35;
}

.chapter-image-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.chapter-image-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.chapter-section-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.chapter-section-save-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 640px) {
    .chapter-image-upload {
        grid-template-columns: 1fr;
    }

    .chapter-image-preview-wrap {
        justify-self: start;
    }

    .chapter-image-modal-head {
        flex-direction: column;
    }

    .chapter-image-modal-actions,
    .chapter-section-save-row {
        justify-content: stretch;
    }

    .chapter-image-modal-actions button,
    .chapter-section-save-row button,
    .chapter-image-upload-button {
        width: 100%;
    }
}
/* chapter helper text follows the panel background; do not force light chrome copy to white. */
.chapter-editor-section .small.muted,
.chapter-legacy-toggle-row .small.muted,
.chapter-picker-modal-card .small.muted,
.chapter-editor-section .muted,
.chapter-legacy-toggle-row .muted,
.chapter-picker-modal-card .muted {
    color: var(--nrr-text-muted-dark);
}

.chapter-editor-section--dark .small.muted,
.chapter-editor-section--dark .muted {
    color: var(--nrr-text-muted-light);
}


.chapter-result-modal-card {
    width: min(820px, 100%);
    max-height: 92vh;
    overflow: auto;
}

.chapter-result-title-fail {
    color: var(--nrr-color-red);
}

.chapter-result-contact-band {
    margin: 18px -20px 0;
    padding: 16px 20px;
    border-top: 1px solid var(--nrr-color-orange-light);
    border-bottom: 1px solid var(--nrr-color-orange-light);
    background: var(--nrr-color-orange);
    color: var(--nrr-color-white);
    box-shadow: inset 0 1px 0 var(--nrr-alpha-white-18);
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.chapter-result-advisor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.chapter-result-advisor-card {
    border: 1px solid var(--nrr-color-line);
    border-radius: 14px;
    background: var(--nrr-color-surface);
    padding: 14px;
}

.chapter-result-advisor-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.chapter-result-advisor-role {
    margin: 0 0 10px;
    color: var(--nrr-color-dark-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chapter-result-advisor-card a {
    color: var(--nrr-color-green);
    font-weight: 700;
}

.chapter-result-advisor-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: var(--nrr-color-dark-mid);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .chapter-result-advisor-list {
        grid-template-columns: 1fr;
    }
}

.chapter-result-advisor-empty {
    margin-top: 18px;
    border: 1px solid var(--nrr-color-line);
    border-radius: 14px;
    background: var(--nrr-color-surface);
    padding: 14px;
    color: var(--nrr-color-dark-mid);
    line-height: 1.5;
}

.chapter-officer-add-close,
.chapter-officer-add-close:link,
.chapter-officer-add-close:visited {
    border-color: var(--nrr-alpha-white-18);
    background: linear-gradient(180deg, var(--nrr-alpha-dark-soft-90) 0%, var(--nrr-alpha-dark-96) 100%);
    color: var(--nrr-text-light);
    box-shadow: inset 0 1px 0 var(--nrr-alpha-white-12), 0 1px 0 var(--nrr-alpha-true-black-18);
}

.chapter-officer-add-close:hover,
.chapter-officer-add-close:focus-visible {
    border-color: var(--nrr-alpha-white-28);
    background: linear-gradient(180deg, var(--nrr-alpha-dark-soft-90) 0%, var(--nrr-alpha-dark-96) 100%);
    color: var(--nrr-text-light);
}

.chapter-officer-add-modal-card {
    width: min(1180px, 100%);
}

.chapter-officer-add-modal-body {
    display: grid;
    gap: 12px;
}

.chapter-officer-add-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.chapter-officer-add-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--nrr-alpha-true-black-12);
    border-radius: 12px;
    background: var(--nrr-color-surface);
    color: var(--nrr-text-dark);
    font-weight: 800;
}

.chapter-officer-add-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--nrr-action-cud-bg);
    color: var(--nrr-color-white);
    font-size: 0.86rem;
    line-height: 1;
}

.chapter-officer-add-card-list {
    display: grid;
    gap: 0;
    padding: 4px;
    border: 1px solid var(--nrr-color-line);
    border-radius: 14px;
    background: var(--nrr-color-surface);
}

.chapter-officer-add-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(360px, 460px);
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 7px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.chapter-officer-add-card + .chapter-officer-add-card {
    border-top: 1px solid var(--nrr-alpha-true-black-08);
}

.chapter-officer-add-card .nrr-chapter-member-card-photo {
    width: 44px;
    height: 44px;
}

.chapter-officer-add-card .nrr-chapter-member-card-main {
    min-width: 0;
}

.chapter-officer-add-card .nrr-chapter-member-card-top {
    margin-bottom: 1px;
}

.chapter-officer-add-card .nrr-chapter-member-card-detail {
    gap: 5px;
    font-size: 0.86rem;
    line-height: 1.15;
}

.chapter-officer-add-card .nrr-chapter-member-card-name {
    max-width: 240px;
}

.chapter-officer-add-card .nrr-chapter-member-card-email {
    max-width: 300px;
}

.chapter-officer-add-card .nrr-chapter-member-role-chip {
    display: none;
}

.chapter-officer-add-card-action {
    min-width: 0;
}

.chapter-officer-add-inline-form {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.chapter-officer-add-inline-form .chapter-officer-role-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.chapter-officer-add-inline-form .chapter-officer-role-label span {
    color: var(--nrr-text-dark);
    font-size: 0.86rem;
    white-space: nowrap;
}

.chapter-officer-add-inline-form select {
    width: 100%;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.chapter-officer-add-inline-form .chapter-inline-action-text {
    min-height: 38px;
    padding: 7px 13px;
    white-space: nowrap;
}

.chapter-officer-add-done {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--nrr-color-white);
    color: var(--nrr-text-muted-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .chapter-officer-add-steps {
        grid-template-columns: 1fr;
    }

    .chapter-officer-add-card {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
        gap: 6px 9px;
        padding: 8px 4px;
    }

    .chapter-officer-add-card-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .chapter-officer-add-inline-form {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .chapter-officer-add-inline-form .chapter-officer-role-label {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .chapter-officer-add-inline-form .chapter-officer-role-label span {
        flex: 0 0 auto;
        font-size: 0.82rem;
    }

    .chapter-officer-add-inline-form select {
        flex: 1 1 8rem;
        min-width: 0;
        width: auto;
    }

    .chapter-officer-add-inline-form .chapter-inline-action-text {
        flex: 0 0 auto;
        width: auto;
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Keep chapter edit context and actions inside the edit panel. */
.chapter-editor-form,
.chapter-editor-shell,
.chapter-editor-section {
    max-width: 100%;
    min-width: 0;
}

.chapter-editor-top-actions {
    margin: 0 0 1rem;
}

.chapter-editor-section .chapter-editor-summary {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--nrr-alpha-dark-12);
}

.chapter-editor-section .chapter-editor-summary-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chapter-editor-section .chapter-editor-summary .section-subtitle,
.chapter-editor-section .chapter-editor-summary-title-row .section-subtitle {
    color: var(--nrr-text-dark);
}

.chapter-editor-section .chapter-editor-summary .chapter-readonly-copy {
    color: var(--nrr-text-muted-dark);
}

.chapter-editor-section .nrr-required-notice {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.chapter-editor-intro {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--nrr-alpha-dark-12);
}

.chapter-editor-intro h2 {
    margin: 0;
    color: var(--nrr-text-dark);
}

.chapter-editor-intro p {
    margin: 0;
    color: var(--nrr-text-muted-dark);
    font-size: 0.94rem;
    line-height: 1.45;
}

.chapter-editor-intro strong {
    color: var(--nrr-text-dark);
}

.chapter-home-tab-panel--editor {
    overflow: visible;
}

.chapter-home-hard-delete-notice {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--nrr-color-orange);
    border-radius: 0.75rem;
    background: var(--nrr-alpha-orange-08);
}

.chapter-home-hard-delete-notice strong {
    color: var(--nrr-color-orange);
}

.chapter-home-hard-delete-notice span {
    color: inherit;
}

.chapter-creator-picker-current {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chapter-creator-picker-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.chapter-creator-picker-search input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
}

.chapter-picker-results {
    display: grid;
    gap: 8px;
}

.chapter-picker-result {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--nrr-color-line);
    border-radius: 10px;
    background: var(--nrr-color-white);
    color: var(--nrr-color-dark);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.chapter-picker-result:hover,
.chapter-picker-result:focus-visible {
    border-color: var(--nrr-color-green);
    box-shadow: 0 0 0 2px var(--nrr-alpha-green-18);
}

@media (max-width: 600px) {
    .chapter-creator-picker-current {
        align-items: stretch;
        flex-direction: column;
    }

    .chapter-creator-picker-current .chapter-inline-action {
        min-height: 44px;
        justify-content: center;
    }
}

.links-selected-pagination {
    margin-top: 1rem;
}
