/*
 * ChoirSuite CSS module: choirsuite-forms.css
 * Reusable form controls, enhanced selects and radio controls.
 *
 * Responsive/mobile rules live with the component they affect whenever possible.
 * This file was split from the historical monolithic choirsuite.css in 0.7.43.
 */

/* 0.6.15 — shared form controls */
.cs-select {
    color: inherit;
    font: inherit;
}

.cs-country-select {
    cursor: pointer;
}

/* 0.6.17 — shared searchable select enhancer */
.cs-select-original {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cs-enhanced-select {
    --cs-enhanced-select-surface: #fff;
    --cs-enhanced-select-text: var(--cs-text-strong, #172033);
    --cs-enhanced-select-muted: var(--cs-text-muted, var(--cs-intranet-muted, #687084));
    --cs-enhanced-select-accent: var(--cs-intranet-accent, #c6007b);
    position: relative;
    width: 100%;
    min-width: 0;
}

.cs-enhanced-select-control {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: var(--cs-enhanced-select-surface, #fff);
    border: 1px solid rgba(21, 26, 38, .18);
    box-shadow: 0 1px 2px rgba(21, 26, 38, .04);
    color: var(--cs-enhanced-select-text, #172033);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 8px;
    justify-content: space-between;
    line-height: 1.25;
    min-height: 34px;
    padding: 5px 8px;
    text-align: left;
    transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
    width: 100%;
}

.cs-enhanced-select-control:hover {
    border-color: rgba(21, 26, 38, .34);
}

.cs-enhanced-select.is-open .cs-enhanced-select-control,
.cs-enhanced-select-control:focus-visible {
    border-color: var(--cs-enhanced-select-accent, var(--cs-intranet-accent, #c6007b));
    box-shadow: 0 0 0 3px rgba(198, 0, 123, .12);
    outline: 0;
}

.cs-enhanced-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-enhanced-select-arrow {
    color: var(--cs-enhanced-select-muted, var(--cs-intranet-muted, #687084));
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.cs-enhanced-select-panel {
    background: var(--cs-enhanced-select-surface, #fff);
    border: 1px solid rgba(21, 26, 38, .2);
    box-shadow: 0 12px 30px rgba(21, 26, 38, .16);
    color: var(--cs-enhanced-select-text, #172033);
    left: 0;
    margin-top: 4px;
    max-height: min(280px, 58vh);
    min-width: 100%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
}

.cs-enhanced-select-search {
    background: rgba(21, 26, 38, .035);
    border: 0;
    border-bottom: 1px solid rgba(21, 26, 38, .12);
    box-sizing: border-box;
    color: var(--cs-enhanced-select-text, #172033);
    font: inherit;
    min-height: 34px;
    outline: 0;
    padding: 6px 8px;
    width: 100%;
}

.cs-enhanced-select-search:focus {
    background: var(--cs-enhanced-select-surface, #fff);
    box-shadow: inset 0 -2px 0 var(--cs-enhanced-select-accent, var(--cs-intranet-accent, #c6007b));
}

.cs-enhanced-select-search::placeholder {
    color: var(--cs-enhanced-select-muted, var(--cs-intranet-muted, #687084));
}

.cs-enhanced-select-list {
    max-height: 228px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
}

.cs-enhanced-select-group {
    color: var(--cs-enhanced-select-muted, var(--cs-intranet-muted, #687084));
    font-size: .78rem;
    line-height: 1.2;
    padding: 7px 7px 3px;
    text-transform: none;
}

.cs-enhanced-select-option {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    color: var(--cs-enhanced-select-text, #172033);
    cursor: pointer;
    display: block;
    font: inherit;
    line-height: 1.25;
    min-height: 30px;
    padding: 6px 7px;
    text-align: left;
    width: 100%;
}

.cs-enhanced-select-option:hover,
.cs-enhanced-select-option:focus-visible {
    background: rgba(21, 26, 38, .06);
    outline: 0;
}

.cs-enhanced-select-option.is-selected {
    background: rgba(198, 0, 123, .1);
    color: var(--cs-enhanced-select-accent, var(--cs-intranet-accent, #c6007b));
    font-weight: 700;
}

.cs-enhanced-select-empty {
    color: var(--cs-enhanced-select-muted, var(--cs-intranet-muted, #687084));
    font-size: .86rem;
    padding: 8px;
}

@media (max-width: 700px) {
    .cs-enhanced-select-control,
    .cs-enhanced-select-search {
        min-height: 32px;
        padding-block: 5px;
    }

    .cs-enhanced-select-panel {
        max-height: min(250px, 52vh);
    }

    .cs-enhanced-select-list {
        max-height: 196px;
    }
}

/* 0.7.56 — shared select threshold and neutral radio-label rules */
.cs-profile-radio-group {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.cs-profile-radio-options label,
.cs-profile-radio-pill {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 10px 2px 0 !important;
    color: inherit !important;
    font-weight: 400 !important;
}

.cs-profile-radio-options label:has(input:checked),
.cs-profile-radio-pill:has(input:checked) {
    border-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    font-weight: 400 !important;
}

.cs-profile-radio-options input[type="radio"],
.cs-profile-radio-pill input[type="radio"] {
    accent-color: var(--cs-intranet-accent, var(--cs-accent, #c6007b));
}

.cs-enhanced-select.has-no-search .cs-enhanced-select-list {
    max-height: 214px;
}

.cs-enhanced-select.has-no-search .cs-enhanced-select-panel {
    max-height: min(236px, 52vh);
}

/* 0.7.57 — global form-label rhythm and mobile one-line radio groups */
.cs-profile-legacy-row,
.cs-form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    align-items: start !important;
}

.cs-profile-legacy-label,
.cs-form-label,
.cs-profile-input > span,
.cs-profile-inline-field > span,
.cs-profile-radio-group legend {
    display: block;
    color: var(--cs-editor-small-text-color, var(--cs-intranet-muted, #687084)) !important;
    font-size: .78rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 3px !important;
}

.cs-profile-legacy-field,
.cs-form-field {
    min-width: 0;
    width: 100%;
}

.cs-profile-legacy-field input[type="text"],
.cs-profile-legacy-field input[type="email"],
.cs-profile-legacy-field input[type="tel"],
.cs-profile-legacy-field input[type="date"],
.cs-profile-legacy-field input[type="time"],
.cs-profile-legacy-field input[type="number"],
.cs-profile-legacy-field input[type="password"],
.cs-profile-legacy-field textarea,
.cs-profile-legacy-field select,
.cs-form-field input[type="text"],
.cs-form-field input[type="email"],
.cs-form-field input[type="tel"],
.cs-form-field input[type="date"],
.cs-form-field input[type="time"],
.cs-form-field input[type="number"],
.cs-form-field input[type="password"],
.cs-form-field textarea,
.cs-form-field select {
    width: 100%;
    max-width: 100%;
}

.cs-profile-radio-options,
.cs-form-radio-options {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 12px !important;
}

.cs-profile-radio-options label,
.cs-profile-radio-options span,
.cs-profile-radio-pill,
.cs-profile-radio-pill span,
.cs-form-radio-options label,
.cs-form-radio-options span,
.cs-form-radio-pill,
.cs-form-radio-pill span {
    color: inherit !important;
    font-weight: 400 !important;
}

.cs-profile-radio-options label:has(input:checked),
.cs-profile-radio-options label:has(input:checked) span,
.cs-profile-radio-pill:has(input:checked),
.cs-profile-radio-pill:has(input:checked) span,
.cs-form-radio-options label:has(input:checked),
.cs-form-radio-options label:has(input:checked) span,
.cs-form-radio-pill:has(input:checked),
.cs-form-radio-pill:has(input:checked) span {
    color: inherit !important;
    font-weight: 400 !important;
}

@media (max-width: 700px) {
    .cs-profile-radio-options,
    .cs-form-radio-options {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 8px !important;
        margin-inline: -2px;
        padding: 1px 2px 6px !important;
        white-space: nowrap;
    }

    .cs-profile-radio-options label,
    .cs-profile-radio-pill,
    .cs-form-radio-options label,
    .cs-form-radio-pill {
        flex: 0 0 auto !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}


/* 0.7.58 — radio option label stays to the right of the control.
   This deliberately outranks the generic `.cs-profile-form label { display: grid; }`
   rule from the theme module, so profile radio labels never stack under the input. */
.cs-profile-form .cs-profile-radio-options > label,
.cs-profile-form label.cs-profile-radio-pill,
.cs-profile-radio-options > label.cs-profile-radio-pill,
.cs-form-radio-options > label,
.cs-form-radio-options > label.cs-form-radio-pill,
.cs-form-radio-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

.cs-profile-form .cs-profile-radio-options > label > input[type="radio"],
.cs-profile-form label.cs-profile-radio-pill > input[type="radio"],
.cs-form-radio-options > label > input[type="radio"],
.cs-form-radio-pill > input[type="radio"] {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.cs-profile-form .cs-profile-radio-options > label > span,
.cs-profile-form label.cs-profile-radio-pill > span,
.cs-form-radio-options > label > span,
.cs-form-radio-pill > span {
    display: inline !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    color: inherit !important;
    font-weight: 400 !important;
}

.cs-profile-form .cs-profile-radio-options > label:has(input:checked) > span,
.cs-profile-form label.cs-profile-radio-pill:has(input:checked) > span,
.cs-form-radio-options > label:has(input:checked) > span,
.cs-form-radio-pill:has(input:checked) > span {
    color: inherit !important;
    font-weight: 400 !important;
}

@media (max-width: 700px) {
    .cs-profile-form .cs-profile-radio-options > label,
    .cs-profile-form label.cs-profile-radio-pill,
    .cs-form-radio-options > label,
    .cs-form-radio-pill {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .cs-profile-form .cs-profile-radio-options > label > span,
    .cs-profile-form label.cs-profile-radio-pill > span,
    .cs-form-radio-options > label > span,
    .cs-form-radio-pill > span {
        display: inline !important;
        white-space: nowrap !important;
    }
}


/* 0.7.59 — dependency-free native time and textarea editor controls. */
.cs-profile-legacy-field input.cs-time-input,
.cs-form-field input.cs-time-input,
.cs-time-input {
    inline-size: min(100%, 10rem) !important;
    font-variant-numeric: tabular-nums;
}

.cs-textarea-editor {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.cs-textarea-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cs-textarea-toolbar-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 28px;
    border: 1px solid var(--cs-intranet-border, rgba(21, 26, 38, .14));
    background: var(--cs-intranet-soft, rgba(21, 26, 38, .04));
    color: var(--cs-intranet-text, inherit);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    padding: 3px 7px;
}

.cs-textarea-toolbar-button:hover,
.cs-textarea-toolbar-button:focus-visible {
    border-color: rgba(var(--cs-main-rgb, 38, 54, 80), .32);
    background: rgba(var(--cs-main-rgb, 38, 54, 80), .08);
    outline: 0;
}

.cs-textarea-toolbar-button strong,
.cs-textarea-toolbar-button em,
.cs-textarea-toolbar-button .cs-toolbar-underline {
    line-height: 1;
}

.cs-textarea-toolbar-button .cs-toolbar-underline {
    text-decoration: underline;
    text-underline-offset: .12em;
}

.cs-profile-legacy-field textarea.cs-textarea,
.cs-form-field textarea.cs-textarea,
textarea.cs-textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.42;
}

@media (max-width: 700px) {
    .cs-textarea-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 3px;
    }

    .cs-textarea-toolbar-button {
        flex: 0 0 auto;
    }
}


/* Native multilingual translation forms ---------------------------------- */
.com-choirsuite .cs-translation-form {
    display: grid;
    gap: 1rem;
}

.com-choirsuite .cs-translation-language-field {
    display: grid;
    gap: 0.45rem;
}

.com-choirsuite .cs-translation-language-label {
    font-size: 0.82rem;
    line-height: 1.2;
    color: var(--cs-muted-color, rgba(0, 0, 0, 0.62));
}

.com-choirsuite .cs-profile-translation-test-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.com-choirsuite .cs-profile-translation-test-status[data-cs-translation-status="loading"] {
    opacity: 0.75;
}

.com-choirsuite .cs-profile-translation-test-status[data-cs-translation-status="success"] {
    color: var(--cs-current-dominant, var(--cs-dominant, currentColor));
}

.com-choirsuite .cs-profile-translation-test-status[data-cs-translation-status="error"] {
    color: #9f2f2f;
}


/* 0.7.66 — current-language-first translated text input prototype. */
.com-choirsuite .cs-translated-text-input-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.com-choirsuite .cs-translation-toggle-button,
.com-choirsuite .cs-translation-delete-button {
    flex: 0 0 auto;
}

.com-choirsuite .cs-translated-text-input-form {
    margin-top: 0.9rem;
}

.com-choirsuite .cs-translated-text-input-current,
.com-choirsuite .cs-translated-text-input-language {
    width: 100%;
    min-width: 0;
}

.com-choirsuite .cs-translated-text-input-label-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
}

.com-choirsuite .cs-translated-text-input-label-row .cs-form-label {
    display: flex !important;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    margin: 0 !important;
}

.com-choirsuite .cs-translated-text-input-label-row .cs-translation-toggle-button {
    justify-self: end;
}

.com-choirsuite .cs-translated-text-input-toggle-box {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.9rem;
    border: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.14);
    border-radius: 18px;
    background: rgba(var(--cs-main-rgb, 38, 54, 80), 0.045);
}

.com-choirsuite .cs-translated-text-input-toggle-box[hidden] {
    display: none !important;
}

.com-choirsuite .cs-translated-text-input-warning {
    display: block !important;
    margin: 0 !important;
}

.com-choirsuite .cs-translation-toggle-button.is-active,
.com-choirsuite .cs-translation-toggle-button[aria-pressed="true"],
.com-choirsuite .cs-translation-toggle-button[aria-expanded="true"] {
    border-color: var(--cs-main, #263650);
    background: var(--cs-main, #263650);
    color: var(--cs-dominant-text, #fff);
    box-shadow: none;
}

.com-choirsuite .cs-translation-toggle-button.is-active:hover,
.com-choirsuite .cs-translation-toggle-button.is-active:focus-visible,
.com-choirsuite .cs-translation-toggle-button[aria-pressed="true"]:hover,
.com-choirsuite .cs-translation-toggle-button[aria-pressed="true"]:focus-visible,
.com-choirsuite .cs-translation-toggle-button[aria-expanded="true"]:hover,
.com-choirsuite .cs-translation-toggle-button[aria-expanded="true"]:focus-visible {
    border-color: var(--cs-main, #263650);
    background: var(--cs-main, #263650);
    color: var(--cs-dominant-text, #fff);
}

.com-choirsuite .cs-translated-text-input-fields {
    display: grid;
    gap: 0.7rem;
}

.com-choirsuite .cs-translated-text-input-language[hidden] {
    display: none !important;
}

.com-choirsuite .cs-translation-language-label-inline {
    color: var(--cs-intranet-muted, #687084);
    font-size: 0.78rem;
    font-weight: 400;
}

.com-choirsuite .cs-translated-text-input-label-separator {
    color: var(--cs-intranet-muted, #687084);
    font-size: 0.78rem;
    font-weight: 400;
}

.com-choirsuite .cs-translated-text-input-actions {
    justify-content: flex-start;
}

.com-choirsuite .cs-translated-text-input-actions .cs-icon-only-button {
    min-height: 34px;
}

@media (max-width: 700px) {
    .com-choirsuite .cs-translated-text-input-head {
        align-items: center;
    }

    .com-choirsuite .cs-translated-text-input-actions {
        gap: 0.55rem;
    }
}

/* 0.7.70 — compact translated input label row. Keep this unscoped as well
   because the intranet shell is not always wrapped in .com-choirsuite while
   older profile CSS selectors are. */
.cs-translated-text-input-label-row,
.com-choirsuite .cs-translated-text-input-label-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.7rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

.cs-profile-form .cs-translated-text-input-label-row > label.cs-form-label,
.cs-translated-text-input-label-row > label.cs-form-label,
.com-choirsuite .cs-profile-form .cs-translated-text-input-label-row > label.cs-form-label,
.com-choirsuite .cs-translated-text-input-label-row > label.cs-form-label {
    display: inline-flex !important;
    align-items: baseline !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

.cs-translated-text-input-label-row > .cs-translation-toggle-button,
.com-choirsuite .cs-translated-text-input-label-row > .cs-translation-toggle-button {
    flex: 0 0 auto !important;
    margin-inline-start: auto !important;
    justify-self: end !important;
}

.cs-translated-text-input-variable-label,
.com-choirsuite .cs-translated-text-input-variable-label {
    min-width: 0 !important;
}

.cs-translated-text-input-label-separator,
.com-choirsuite .cs-translated-text-input-label-separator,
.cs-translation-language-label-inline,
.com-choirsuite .cs-translation-language-label-inline {
    display: inline !important;
    margin: 0 !important;
    color: var(--cs-editor-small-text-color, var(--cs-intranet-muted, #687084)) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.cs-translated-text-input-warning,
.com-choirsuite .cs-translated-text-input-warning {
    display: block !important;
    color: var(--cs-intranet-muted, #687084) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* 0.7.71 — rendered native rich-text editor and translated textarea prototype.
   0.7.72 — polish the visual model toward a traditional editor: toolbar above,
   white editable document area below, hidden storage textarea only for controlled HTML. */
.cs-rich-text-editor,
.com-choirsuite .cs-rich-text-editor {
    display: block !important;
    min-width: 0 !important;
    border: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.18) !important;
    border-radius: 14px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(var(--cs-main-rgb, 38, 54, 80), 0.045) !important;
}

.cs-rich-text-editor:focus-within,
.com-choirsuite .cs-rich-text-editor:focus-within {
    border-color: rgba(var(--cs-main-rgb, 38, 54, 80), 0.34) !important;
    box-shadow: 0 0 0 3px rgba(var(--cs-main-rgb, 38, 54, 80), 0.08) !important;
}

.cs-rich-editor-toolbar,
.com-choirsuite .cs-rich-editor-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.2rem !important;
    min-height: 42px !important;
    padding: 0.38rem 0.48rem !important;
    border-bottom: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.12) !important;
    background: linear-gradient(180deg, rgba(var(--cs-main-rgb, 38, 54, 80), 0.055), rgba(var(--cs-main-rgb, 38, 54, 80), 0.025)) !important;
}

.cs-rich-text-editor .cs-textarea-toolbar-button,
.com-choirsuite .cs-rich-text-editor .cs-textarea-toolbar-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 32px !important;
    padding: 0 0.48rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.12) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--cs-editor-body-color, var(--cs-intranet-text, #263650)) !important;
    font-family: var(--cs-editor-body-font, var(--cs-font-body, inherit)) !important;
    font-size: var(--cs-editor-body-size, 1rem) !important;
    font-size: 0.88rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.cs-rich-text-editor .cs-textarea-toolbar-button:hover,
.cs-rich-text-editor .cs-textarea-toolbar-button:focus-visible,
.com-choirsuite .cs-rich-text-editor .cs-textarea-toolbar-button:hover,
.com-choirsuite .cs-rich-text-editor .cs-textarea-toolbar-button:focus-visible {
    border-color: rgba(var(--cs-main-rgb, 38, 54, 80), 0.32) !important;
    background: rgba(var(--cs-main-rgb, 38, 54, 80), 0.07) !important;
    outline: none !important;
}


.cs-rich-text-editor .cs-toolbar-small-text,
.com-choirsuite .cs-rich-text-editor .cs-toolbar-small-text {
    font-size: 0.82em !important;
    color: var(--cs-intranet-muted, #687084) !important;
}

.cs-rich-editor-body,
.com-choirsuite .cs-rich-editor-body {
    background: #fff !important;
}

.cs-rich-editor-surface,
.com-choirsuite .cs-rich-editor-surface {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 182px !important;
    padding: 1rem 1.05rem !important;
    outline: none !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--cs-editor-body-color, var(--cs-intranet-text, #263650)) !important;
    font-family: var(--cs-editor-body-font, var(--cs-font-body, inherit)) !important;
    font-size: var(--cs-editor-body-size, 1rem) !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

.cs-rich-editor-surface:focus,
.com-choirsuite .cs-rich-editor-surface:focus {
    box-shadow: none !important;
}

.cs-rich-editor-surface[data-cs-rich-editor-empty="true"]::before,
.com-choirsuite .cs-rich-editor-surface[data-cs-rich-editor-empty="true"]::before {
    content: attr(data-placeholder);
    color: var(--cs-intranet-muted, #687084) !important;
    opacity: 0.78 !important;
    pointer-events: none !important;
}

.cs-rich-editor-surface p,
.com-choirsuite .cs-rich-editor-surface p {
    margin: 0 0 0.75rem !important;
}

.cs-rich-editor-surface p:last-child,
.com-choirsuite .cs-rich-editor-surface p:last-child {
    margin-bottom: 0 !important;
}

.cs-rich-editor-surface .cs-editor-heading,
.com-choirsuite .cs-rich-editor-surface .cs-editor-heading {
    margin: 0.2rem 0 0.75rem !important;
    font-family: var(--cs-editor-heading-font, var(--cs-font-title, inherit)) !important;
    font-weight: 400 !important;
    line-height: 1.16 !important;
    color: var(--cs-editor-heading-color, var(--cs-intranet-text, #263650)) !important;
}

.cs-rich-editor-surface .cs-editor-heading-1,
.com-choirsuite .cs-rich-editor-surface .cs-editor-heading-1 {
    font-size: var(--cs-editor-heading-1-size, 2.65rem) !important;
}

.cs-rich-editor-surface .cs-editor-heading-2,
.com-choirsuite .cs-rich-editor-surface .cs-editor-heading-2 {
    font-size: var(--cs-editor-heading-2-size, 2rem) !important;
}

.cs-rich-editor-surface .cs-editor-heading-3,
.com-choirsuite .cs-rich-editor-surface .cs-editor-heading-3 {
    font-size: var(--cs-editor-heading-3-size, 1.5rem) !important;
}


.cs-rich-editor-surface .cs-editor-text-large,
.com-choirsuite .cs-rich-editor-surface .cs-editor-text-large {
    font-family: var(--cs-editor-body-font, var(--cs-font-body, inherit)) !important;
    font-size: var(--cs-editor-text-large-size, 1.12rem) !important;
    line-height: 1.45 !important;
}

.cs-rich-editor-surface .cs-editor-text-small,
.com-choirsuite .cs-rich-editor-surface .cs-editor-text-small {
    font-family: var(--cs-editor-body-font, var(--cs-font-body, inherit)) !important;
    font-size: var(--cs-editor-text-small-size, 0.9rem) !important;
    line-height: 1.5 !important;
    color: var(--cs-editor-small-text-color, var(--cs-intranet-muted, #687084)) !important;
}

.cs-rich-editor-surface .cs-editor-underline,
.com-choirsuite .cs-rich-editor-surface .cs-editor-underline {
    text-decoration-line: underline !important;
    text-decoration-thickness: 0.08em !important;
    text-underline-offset: 0.16em !important;
}

.cs-rich-editor-surface .cs-editor-list,
.com-choirsuite .cs-rich-editor-surface .cs-editor-list {
    margin: 0.3rem 0 0.8rem 1.25rem !important;
    padding: 0 !important;
}

.cs-rich-editor-surface .cs-editor-list li,
.com-choirsuite .cs-rich-editor-surface .cs-editor-list li {
    margin: 0.2rem 0 !important;
}

.cs-rich-editor-storage,
.com-choirsuite .cs-rich-editor-storage {
    display: none !important;
}

.cs-translated-textarea-card .cs-rich-editor-surface,
.com-choirsuite .cs-translated-textarea-card .cs-rich-editor-surface {
    min-height: 190px !important;
}

.cs-translated-textarea-card .cs-translated-text-input-toggle-box,
.com-choirsuite .cs-translated-textarea-card .cs-translated-text-input-toggle-box {
    background: rgba(var(--cs-main-rgb, 38, 54, 80), 0.035) !important;
}

@media (max-width: 700px) {
    .cs-rich-editor-toolbar,
    .com-choirsuite .cs-rich-editor-toolbar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .cs-rich-editor-surface,
    .com-choirsuite .cs-rich-editor-surface {
        min-height: 156px !important;
        padding: 0.9rem !important;
    }
}


/* 0.7.76 — translated field action alignment.
   Keep the translation toggle as a label-sized icon in the field-label row,
   while destructive delete actions stay on the right according to the global
   action-button style guide. */
.cs-translated-text-input-label-row > .cs-translation-toggle-button,
.com-choirsuite .cs-translated-text-input-label-row > .cs-translation-toggle-button {
    width: 1.35rem !important;
    min-width: 1.35rem !important;
    height: 1.35rem !important;
    min-height: 1.35rem !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
}

.cs-translated-text-input-label-row > .cs-translation-toggle-button i,
.com-choirsuite .cs-translated-text-input-label-row > .cs-translation-toggle-button i {
    font-size: 0.95em !important;
    line-height: 1 !important;
}

.cs-translated-text-input-actions,
.com-choirsuite .cs-translated-text-input-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

.cs-translated-text-input-actions .cs-button-secondary,
.com-choirsuite .cs-translated-text-input-actions .cs-button-secondary {
    flex: 0 0 auto !important;
}

.cs-translated-text-input-actions [data-cs-translation-form-status],
.com-choirsuite .cs-translated-text-input-actions [data-cs-translation-form-status] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.cs-translated-text-input-actions .cs-translation-delete-button,
.com-choirsuite .cs-translated-text-input-actions .cs-translation-delete-button {
    margin-inline-start: auto !important;
    flex: 0 0 auto !important;
}


/* 0.7.77 — translated-field compact labels inside toggle boxes and spacing polish. */
.cs-translated-text-input-card,
.com-choirsuite .cs-translated-text-input-card,
.cs-translated-textarea-card,
.com-choirsuite .cs-translated-textarea-card {
    padding: 1.05rem 1.15rem !important;
}

.cs-translated-text-input-card .cs-translated-text-input-head,
.com-choirsuite .cs-translated-text-input-card .cs-translated-text-input-head {
    margin-bottom: 0.72rem !important;
}

.cs-translated-text-input-card .cs-profile-card-headline,
.com-choirsuite .cs-translated-text-input-card .cs-profile-card-headline {
    margin-bottom: 0.38rem !important;
}

.cs-translated-text-input-card .cs-muted,
.com-choirsuite .cs-translated-text-input-card .cs-muted {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 70ch !important;
}

.cs-translated-text-input-form,
.com-choirsuite .cs-translated-text-input-form {
    display: grid !important;
    gap: 0.62rem !important;
    margin-top: 0.65rem !important;
}

.cs-translated-text-input-toggle-box,
.com-choirsuite .cs-translated-text-input-toggle-box {
    gap: 0.72rem !important;
    margin-top: 0.62rem !important;
    padding: 0.78rem 0.9rem 0.85rem !important;
    border-radius: 14px !important;
}

.cs-translated-text-input-fields,
.com-choirsuite .cs-translated-text-input-fields {
    gap: 0.62rem !important;
}

.cs-translated-text-input-language,
.com-choirsuite .cs-translated-text-input-language {
    display: grid !important;
    gap: 0.3rem !important;
}

.cs-translated-text-input-language > label.cs-form-label,
.cs-translated-text-input-language > .cs-form-label,
.com-choirsuite .cs-translated-text-input-language > label.cs-form-label,
.com-choirsuite .cs-translated-text-input-language > .cs-form-label {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 0.32rem !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.cs-translated-text-input-language.is-secondary > label.cs-form-label,
.cs-translated-text-input-language.is-secondary > .cs-form-label,
.com-choirsuite .cs-translated-text-input-language.is-secondary > label.cs-form-label,
.com-choirsuite .cs-translated-text-input-language.is-secondary > .cs-form-label {
    margin-bottom: 0 !important;
}

.cs-translated-text-input-label-row,
.com-choirsuite .cs-translated-text-input-label-row {
    margin-bottom: 0.3rem !important;
}

.cs-translated-text-input-label-row > label.cs-form-label,
.com-choirsuite .cs-translated-text-input-label-row > label.cs-form-label {
    gap: 0.32rem !important;
}

.cs-translated-text-input-variable-label,
.com-choirsuite .cs-translated-text-input-variable-label {
    display: inline !important;
    white-space: normal !important;
}

.cs-translated-text-input-label-separator,
.cs-translation-language-label-inline,
.com-choirsuite .cs-translated-text-input-label-separator,
.com-choirsuite .cs-translation-language-label-inline {
    display: inline !important;
    white-space: nowrap !important;
}

.cs-translated-text-input-language .cs-translated-text-input,
.com-choirsuite .cs-translated-text-input-language .cs-translated-text-input {
    margin-top: 0 !important;
}

.cs-translated-text-input-actions,
.com-choirsuite .cs-translated-text-input-actions {
    margin-top: 0.1rem !important;
    padding-top: 0.05rem !important;
}

.cs-translated-text-input-warning,
.com-choirsuite .cs-translated-text-input-warning {
    margin-bottom: 0.05rem !important;
}

.cs-translated-textarea-card .cs-rich-text-editor,
.com-choirsuite .cs-translated-textarea-card .cs-rich-text-editor {
    margin-top: 0 !important;
}

.cs-translated-textarea-card .cs-rich-editor-toolbar,
.com-choirsuite .cs-translated-textarea-card .cs-rich-editor-toolbar {
    padding: 0.34rem 0.44rem !important;
}

.cs-translated-textarea-card .cs-rich-editor-surface,
.com-choirsuite .cs-translated-textarea-card .cs-rich-editor-surface {
    min-height: 176px !important;
    padding: 0.92rem 1rem !important;
}

@media (max-width: 700px) {
    .cs-translated-text-input-card,
    .com-choirsuite .cs-translated-text-input-card,
    .cs-translated-textarea-card,
    .com-choirsuite .cs-translated-textarea-card {
        padding: 0.92rem !important;
    }

    .cs-translated-text-input-toggle-box,
    .com-choirsuite .cs-translated-text-input-toggle-box {
        padding: 0.75rem !important;
    }
}

/* 0.7.78 — shared form facade and translated-field vertical rhythm. */
.cs-form-field,
.com-choirsuite .cs-form-field {
    display: grid !important;
    gap: 0.38rem !important;
    min-width: 0 !important;
}

/* 1.4.413 — generic registered conditional fields must defeat shared display rules. */
.cs-form-field[hidden],
.com-choirsuite .cs-form-field[hidden] {
    display: none !important;
}

.cs-form-control,
.com-choirsuite .cs-form-control {
    min-width: 0 !important;
}

.cs-form-hint,
.com-choirsuite .cs-form-hint {
    margin: 0 !important;
    color: var(--cs-intranet-muted, #687084) !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}

.cs-radio-group,
.com-choirsuite .cs-radio-group {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.7rem 1rem !important;
    min-width: 0 !important;
}

.cs-radio-option,
.com-choirsuite .cs-radio-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.42rem !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cs-text-color, inherit) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

.cs-radio-option input[type="radio"],
.com-choirsuite .cs-radio-option input[type="radio"] {
    accent-color: var(--cs-current-dominant, var(--cs-main, #263650));
    flex: 0 0 auto !important;
}


.cs-radio-option.has-sublabel,
.com-choirsuite .cs-radio-option.has-sublabel {
    align-items: flex-start !important;
    white-space: normal !important;
}

.cs-radio-option.has-sublabel input[type="radio"],
.com-choirsuite .cs-radio-option.has-sublabel input[type="radio"] {
    margin-top: 0.08rem !important;
}

.cs-radio-option-text,
.com-choirsuite .cs-radio-option-text {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    min-width: 0 !important;
}

.cs-radio-option-label,
.com-choirsuite .cs-radio-option-label {
    display: block !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

.cs-radio-option-sublabel,
.com-choirsuite .cs-radio-option-sublabel {
    display: block !important;
    width: 100% !important;
    margin-top: 0.12rem !important;
    color: var(--cs-intranet-muted, #687084) !important;
    font-size: 0.76rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    max-width: min(18rem, 70vw) !important;
    white-space: normal !important;
}

.cs-title,
.com-choirsuite .cs-title {
    margin: 0 !important;
    color: var(--cs-text-color, inherit) !important;
    font-family: var(--cs-title-font-family, inherit) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
}

.cs-title-page,
.com-choirsuite .cs-title-page {
    font-size: clamp(1.9rem, 4vw, 3.35rem) !important;
}

.cs-title-section,
.com-choirsuite .cs-title-section {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem) !important;
}

.cs-title-subsection,
.com-choirsuite .cs-title-subsection {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem) !important;
}

.cs-title-card,
.com-choirsuite .cs-title-card {
    font-size: 1rem !important;
}

.cs-title-label,
.com-choirsuite .cs-title-label {
    font-family: var(--cs-text-font-family, inherit) !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
}

.cs-translated-text-input-fields,
.com-choirsuite .cs-translated-text-input-fields {
    gap: 0.78rem !important;
}

.cs-translated-text-input-language,
.com-choirsuite .cs-translated-text-input-language {
    gap: 0.36rem !important;
}

@media (max-width: 700px) {
    .cs-radio-group,
    .com-choirsuite .cs-radio-group {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 0.15rem !important;
    }
}

/* 0.7.79 — first real profile save form */
.cs-profile-personal-save-form .cs-profile-card {
    display: grid;
    gap: 10px;
}

.cs-profile-personal-save-form .cs-form-field {
    display: grid;
    gap: 4px;
    padding: 5px 0;
}

.cs-profile-personal-save-form .cs-form-control {
    min-width: 0;
}

.cs-profile-personal-save-form .cs-profile-inline-row {
    padding: 2px 0 5px;
}



/* 0.8.144 — registered profile form inline row layout.
   Layout is presentation-only: these rules keep paired fields visually together
   without changing field names, form keys, autosave behavior or persistence. */
.cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields,
.com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields {
    display: grid !important;
    align-items: end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields > .cs-profile-inline-field,
.com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields > .cs-profile-inline-field {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-halves,
.com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-halves {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address,
.com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 118px) !important;
}

.cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city,
.com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city {
    grid-template-columns: minmax(72px, 112px) minmax(0, 1fr) !important;
}

@media (max-width: 700px) {
    .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields,
    .com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-fields {
        gap: 6px !important;
    }

    .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address,
    .com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address {
        grid-template-columns: minmax(0, 1fr) minmax(58px, 86px) !important;
    }

    .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city,
    .com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city {
        grid-template-columns: minmax(62px, 86px) minmax(0, 1fr) !important;
    }
}

@media (max-width: 340px) {
    .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address,
    .com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-address,
    .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city,
    .com-choirsuite .cs-profile-personal-save-form .cs-form-control > .cs-profile-inline-city {
        grid-template-columns: 1fr !important;
    }
}

.cs-profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.cs-profile-save-status {
    min-height: 1.2em;
    font-size: .78rem;
}

.cs-profile-save-status.is-saving,
.cs-profile-save-status.is-dirty {
    color: var(--cs-intranet-muted);
}

.cs-profile-save-status.is-saved {
    color: var(--cs-current-dominant, var(--cs-intranet-accent));
}

.cs-profile-save-status.is-error {
    color: #9f1239;
}

@media (max-width: 700px) {
    .cs-profile-form-actions {
        justify-content: stretch;
    }

    .cs-profile-form-actions .cs-button-primary {
        flex: 1 1 auto;
    }
}

/* 0.7.81 — autosave form status */
.cs-profile-autosave-actions,
.com-choirsuite .cs-profile-autosave-actions {
    justify-content: flex-end;
    min-height: 1.8rem;
}

.cs-profile-autosave-actions .cs-profile-save-status,
.com-choirsuite .cs-profile-autosave-actions .cs-profile-save-status {
    text-align: right;
}

/* 0.7.82 — autosave feedback: transient form hint plus field-level visual state. */
.cs-profile-save-status,
.com-choirsuite .cs-profile-save-status {
    transition: color .16s ease, opacity .18s ease;
}

.cs-profile-personal-save-form .cs-input,
.cs-profile-personal-save-form .cs-select,
.cs-profile-personal-save-form .cs-time-input,
.cs-profile-personal-save-form .cs-textarea,
.com-choirsuite .cs-profile-personal-save-form .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-select,
.com-choirsuite .cs-profile-personal-save-form .cs-time-input,
.com-choirsuite .cs-profile-personal-save-form .cs-textarea {
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.cs-profile-personal-save-form .cs-form-field.is-dirty .cs-input,
.cs-profile-personal-save-form .cs-form-field.is-dirty .cs-select,
.cs-profile-personal-save-form .cs-form-field.is-dirty .cs-time-input,
.cs-profile-personal-save-form .cs-form-field.is-dirty .cs-textarea,
.cs-profile-personal-save-form .cs-profile-inline-field.is-dirty .cs-input,
.cs-profile-personal-save-form .cs-radio-group.is-dirty,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-dirty .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-dirty .cs-select,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-dirty .cs-time-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-dirty .cs-textarea,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field.is-dirty .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-radio-group.is-dirty {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .26) !important;
    background-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .025) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-saving .cs-input,
.cs-profile-personal-save-form .cs-form-field.is-saving .cs-select,
.cs-profile-personal-save-form .cs-form-field.is-saving .cs-time-input,
.cs-profile-personal-save-form .cs-form-field.is-saving .cs-textarea,
.cs-profile-personal-save-form .cs-profile-inline-field.is-saving .cs-input,
.cs-profile-personal-save-form .cs-radio-group.is-saving,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saving .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saving .cs-select,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saving .cs-time-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saving .cs-textarea,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field.is-saving .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-radio-group.is-saving {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .36) !important;
    box-shadow: 0 0 0 2px rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .07) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-saved .cs-input,
.cs-profile-personal-save-form .cs-form-field.is-saved .cs-select,
.cs-profile-personal-save-form .cs-form-field.is-saved .cs-time-input,
.cs-profile-personal-save-form .cs-form-field.is-saved .cs-textarea,
.cs-profile-personal-save-form .cs-profile-inline-field.is-saved .cs-input,
.cs-profile-personal-save-form .cs-radio-group.is-saved,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saved .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saved .cs-select,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saved .cs-time-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saved .cs-textarea,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field.is-saved .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-radio-group.is-saved {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .55) !important;
    box-shadow: 0 0 0 2px rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .13) !important;
    background-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .035) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-error .cs-input,
.cs-profile-personal-save-form .cs-form-field.is-error .cs-select,
.cs-profile-personal-save-form .cs-form-field.is-error .cs-time-input,
.cs-profile-personal-save-form .cs-form-field.is-error .cs-textarea,
.cs-profile-personal-save-form .cs-profile-inline-field.is-error .cs-input,
.cs-profile-personal-save-form .cs-radio-group.is-error,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-error .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-error .cs-select,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-error .cs-time-input,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-error .cs-textarea,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field.is-error .cs-input,
.com-choirsuite .cs-profile-personal-save-form .cs-radio-group.is-error {
    border-color: #9f1239 !important;
    box-shadow: 0 0 0 2px rgba(159, 18, 57, .1) !important;
}

/* 0.7.84 — autosave feedback shows only saving/saved text beside the affected field label. */
.cs-field-save-status,
.com-choirsuite .cs-field-save-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: .45rem;
    vertical-align: baseline;
    color: var(--cs-intranet-muted, #687084);
    font-size: .72rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0;
    transform: translateY(-1px);
    transition: opacity .16s ease, color .16s ease;
    white-space: nowrap;
}

.cs-field-save-status:not(:empty),
.com-choirsuite .cs-field-save-status:not(:empty) {
    opacity: .9;
}

.cs-field-save-status.is-dirty,
.com-choirsuite .cs-field-save-status.is-dirty {
    color: transparent;
}

.cs-field-save-status.is-saving,
.com-choirsuite .cs-field-save-status.is-saving,
.cs-field-save-status.is-saved,
.com-choirsuite .cs-field-save-status.is-saved {
    color: var(--cs-save-success-color, #15803d);
}

.cs-field-save-status.is-error,
.com-choirsuite .cs-field-save-status.is-error {
    color: #9f1239;
}

.cs-profile-personal-save-form .cs-form-field.is-dirty .cs-radio-group,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-dirty .cs-radio-group {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .26) !important;
    background-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .025) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-saving .cs-radio-group,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saving .cs-radio-group {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .36) !important;
    box-shadow: 0 0 0 2px rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .07) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-saved .cs-radio-group,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-saved .cs-radio-group {
    border-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .55) !important;
    box-shadow: 0 0 0 2px rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .13) !important;
    background-color: rgba(var(--cs-intranet-accent-rgb, var(--cs-main-rgb, 38, 54, 80)), .035) !important;
}

.cs-profile-personal-save-form .cs-form-field.is-error .cs-radio-group,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field.is-error .cs-radio-group {
    border-color: #9f1239 !important;
    box-shadow: 0 0 0 2px rgba(159, 18, 57, .1) !important;
}

/* 0.7.85 — keep autosave feedback on the same label line. */
.cs-profile-personal-save-form .cs-form-field > .cs-form-label,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field > .cs-form-label,
.cs-profile-personal-save-form .cs-profile-inline-field > span,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field > span {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: .45rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

.cs-profile-personal-save-form .cs-form-field > .cs-form-label .cs-field-save-status,
.com-choirsuite .cs-profile-personal-save-form .cs-form-field > .cs-form-label .cs-field-save-status,
.cs-profile-personal-save-form .cs-profile-inline-field > span .cs-field-save-status,
.com-choirsuite .cs-profile-personal-save-form .cs-profile-inline-field > span .cs-field-save-status {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
}

.cs-field-save-status.is-saving,
.com-choirsuite .cs-field-save-status.is-saving {
    color: var(--cs-intranet-muted, #687084) !important;
}

.cs-field-save-status.is-saved,
.com-choirsuite .cs-field-save-status.is-saved {
    color: var(--cs-save-success-color, #15803d) !important;
}



/* 0.8.61 — agreed translated textarea/editor control refinement.
   The globe remains on the label row. DeepL/delete actions live at the bottom
   of the opened translation toggle area, and secondary language sections breathe. */
.cs-translated-text-input-toggle-box .cs-translated-text-input-fields,
.com-choirsuite .cs-translated-text-input-toggle-box .cs-translated-text-input-fields {
    display: grid !important;
    gap: 1.15rem !important;
}

.cs-translated-text-input-toggle-box .cs-translated-text-input-language,
.com-choirsuite .cs-translated-text-input-toggle-box .cs-translated-text-input-language {
    padding-top: 0.12rem !important;
}

.cs-translated-text-input-toggle-box .cs-translated-text-input-language + .cs-translated-text-input-language,
.com-choirsuite .cs-translated-text-input-toggle-box .cs-translated-text-input-language + .cs-translated-text-input-language {
    margin-top: 0.25rem !important;
}

.cs-translated-text-input-toggle-actions,
.com-choirsuite .cs-translated-text-input-toggle-actions {
    margin-top: 1.05rem !important;
    padding-top: 0.8rem !important;
    border-top: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.12) !important;
    align-items: center !important;
}

/* 0.8.152 — shared read-only translated-field toggle behavior. */
.com-choirsuite .cs-translated-field-readonly {
    display: grid;
    gap: 0.85rem;
}

.com-choirsuite .cs-translated-field-readonly-head {
    margin-bottom: 0;
}

.com-choirsuite .cs-translated-field-readonly-label {
    display: flex !important;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    margin: 0 !important;
}

.com-choirsuite .cs-translated-field-readonly-language {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.com-choirsuite .cs-translated-field-readonly-language[hidden] {
    display: none !important;
}

.com-choirsuite .cs-translated-field-readonly-body {
    min-width: 0;
}

.com-choirsuite .cs-translated-field-readonly-toggle-box {
    margin-top: 0;
}

.com-choirsuite .cs-translated-field-readonly-fields {
    display: grid;
    gap: 1rem;
}

.com-choirsuite .cs-translated-field-readonly-empty-language {
    margin: 0;
}


/* 0.8.184 — self-service Teilnahme fields need a calmer vertical rhythm.
   This is presentation-only: field names, registered form keys and autosave
   behaviour stay owned by the form pipeline. */
.cs-profile-participation-form .cs-profile-card,
.com-choirsuite .cs-profile-participation-form .cs-profile-card {
    display: grid;
    gap: 16px;
}

.cs-profile-participation-form .cs-profile-inline-row,
.com-choirsuite .cs-profile-participation-form .cs-profile-inline-row {
    padding: 6px 0 8px;
}

/* 0.8.242 — reusable nullable boolean decision switch.
   NULL renders as a direct first decision; explicit 0/1 renders as a red/green active-label switch. */
.cs-tristate-decision-switch,
.com-choirsuite .cs-tristate-decision-switch {
    display: inline-grid;
    gap: 0.35rem;
    min-width: 0;
}

.cs-tristate-switch-mode[hidden],
.com-choirsuite .cs-tristate-switch-mode[hidden],
.cs-tristate-decision-mode[hidden],
.com-choirsuite .cs-tristate-decision-mode[hidden],
.cs-repertoire-title-mode-panel[hidden],
.com-choirsuite .cs-repertoire-title-mode-panel[hidden] {
    display: none !important;
}

.cs-switch-control,
.com-choirsuite .cs-switch-control {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}

.cs-switch-control input[type="checkbox"],
.com-choirsuite .cs-switch-control input[type="checkbox"] {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.cs-switch-slider,
.com-choirsuite .cs-switch-slider {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 25px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: var(--cs-switch-false, #b9403a);
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.cs-switch-slider::before,
.com-choirsuite .cs-switch-slider::before {
    position: absolute;
    content: "";
    width: 17px;
    height: 17px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease;
}

.cs-switch-control input[type="checkbox"]:checked + .cs-switch-slider,
.com-choirsuite .cs-switch-control input[type="checkbox"]:checked + .cs-switch-slider {
    background: var(--cs-switch-true, #31633d);
}

.cs-switch-control input[type="checkbox"]:focus-visible + .cs-switch-slider,
.com-choirsuite .cs-switch-control input[type="checkbox"]:focus-visible + .cs-switch-slider {
    box-shadow: 0 0 0 3px rgba(var(--cs-active-rgb, 49, 99, 61), 0.22);
}

.cs-switch-control input[type="checkbox"]:checked + .cs-switch-slider::before,
.com-choirsuite .cs-switch-control input[type="checkbox"]:checked + .cs-switch-slider::before {
    transform: translateX(17px);
}

.cs-switch-active-label,
.com-choirsuite .cs-switch-active-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--cs-muted-color, rgba(0, 0, 0, 0.68));
}

.cs-switch-control input[type="checkbox"]:checked ~ .cs-switch-active-label,
.com-choirsuite .cs-switch-control input[type="checkbox"]:checked ~ .cs-switch-active-label {
    color: var(--cs-muted-color, rgba(0, 0, 0, 0.68));
}

.cs-tristate-decision-mode,
.com-choirsuite .cs-tristate-decision-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cs-tristate-undecided-label,
.com-choirsuite .cs-tristate-undecided-label {
    color: var(--cs-muted-color, rgba(0, 0, 0, 0.62));
    font-size: 0.92rem;
}

.cs-tristate-decision-option,
.com-choirsuite .cs-tristate-decision-option {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 30px;
    padding: 0.25rem 0.58rem;
    border: 1px solid rgba(var(--cs-main-rgb, 38, 54, 80), 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.cs-tristate-decision-option input,
.com-choirsuite .cs-tristate-decision-option input {
    margin: 0;
}

.cs-tristate-decision-option:has(input:checked),
.com-choirsuite .cs-tristate-decision-option:has(input:checked) {
    border-color: rgba(var(--cs-main-rgb, 38, 54, 80), 0.28);
    color: var(--cs-main, #263650);
}

.cs-repertoire-title-shell,
.com-choirsuite .cs-repertoire-title-shell {
    display: grid;
    gap: 0.85rem;
}

.cs-repertoire-title-mode-form,
.com-choirsuite .cs-repertoire-title-mode-form {
    margin-bottom: 0.15rem;
}

.cs-repertoire-title-mode-field--inline-label,
.com-choirsuite .cs-repertoire-title-mode-field--inline-label {
    gap: 0.1rem !important;
}

.cs-repertoire-title-mode-field--inline-label > .cs-form-control,
.com-choirsuite .cs-repertoire-title-mode-field--inline-label > .cs-form-control {
    display: flex;
    align-items: center;
}


/* 0.8.580 — reusable registered settings-select form surface.
   Feature views provide data/copy only; the shared form owns header/status/body
   placement so compact settings panels do not invent local save UI. */
.cs-registered-settings-form {
    display: block;
    min-width: 0;
}

.cs-registered-settings-form-card {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.cs-registered-settings-form-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    min-width: 0;
}

.cs-registered-settings-form-copy {
    display: grid;
    gap: 0.24rem;
    min-width: 0;
}

.cs-registered-settings-form-title,
.cs-registered-settings-form-description {
    margin: 0;
}

.cs-registered-settings-form-body {
    min-width: 0;
}

.cs-registered-settings-form-field {
    margin: 0;
}

.cs-registered-settings-form-status {
    justify-self: end;
    align-self: start;
    min-width: 1.4rem;
    min-height: 1.4rem;
    font-size: 0.82rem;
    text-align: right;
}

@media (max-width: 700px) {
    .cs-registered-settings-form-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .cs-registered-settings-form-status {
        justify-self: start;
        text-align: left;
    }
}


/* Registered ordered child collections. Feature renderers own only the fields;
   the shared collection lifecycle owns add/remove/reorder structure. */
.cs-registered-collection > [data-cs-collection-rows] {
    display: grid;
    gap: 0.75rem;
}
.cs-registered-collection-row {
    min-width: 0;
}
.cs-registered-collection-add,
.cs-registered-collection-remove,
.cs-registered-collection-move {
    flex: 0 0 auto;
}

/* 1.4.213 — Finance account selectors share one compact, grouped presentation. */
.cs-enhanced-select--finance-account .cs-enhanced-select-control,
.cs-enhanced-select--finance-account .cs-enhanced-select-search,
.cs-enhanced-select--finance-account .cs-enhanced-select-option {
    font-size: .92rem;
}

.cs-enhanced-select--finance-account .cs-enhanced-select-panel {
    right: auto;
    width: max(100%, min(520px, calc(100vw - 32px)));
}

.cs-enhanced-select--finance-account .cs-enhanced-select-group {
    font-size: .8rem;
    font-weight: 600;
    padding-top: 9px;
}

@media (max-width: 700px) {
    .cs-enhanced-select--finance-account .cs-enhanced-select-panel {
        right: 0;
        width: 100%;
    }
}
