.justify-center {
    justify-content: center;
}
.dashboard-page {
    --color-bg: #f7f2e0;
    --color-text-main: #80864f;
    --color-text-muted: #6e664c;
    /* Ensure background updates */
    background-color: var(--color-bg);
    color: var(--color-text-main);
}
.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.min-w-200 {
    min-width: 200px;
}

.flex-grow {
    flex-grow: 1;
}

.w-auto {
    width: auto !important;
}

.grid-2-col-gap-15 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flex-gap-5 {
    display: flex;
    gap: 5px;
}

.color-preview-box {
    width: 50px;
    height: 35px;
    padding: 0;
    border: none;
}

.color-hex-input {
    width: 80px;
    text-transform: uppercase;
}

.admin-grid-2-col-gap-40 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.text-center-primary {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.scrollable-list-500 {
    max-height: 500px;
    overflow-y: auto;
}

#admin-members-list.scrollable-list-500 {
    display: flex;
    flex-direction: column;
    height: min(500px, 72vh);
    max-height: 500px;
    min-height: 360px;
    overflow: hidden;
}

.grid-2-col-gap-20 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-span-full {
    grid-column: 1 / -1;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.back-link {
    display: block;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-form {
    margin: 5px 0px 20px;
}

.auth-footer {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-primary-dark);
    font-weight: 500;
}
.section-padding {
    padding-top: 120px;
    /* Space for fixed navbar */
    padding-bottom: 80px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 32, 0.4);
    /* Softer overlay */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #e1d7ce !important;
    font-size: 1rem;
    color: #5c5540 !important;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.auth-form select:focus {
    border-color: #6e664c;
    background-color: #e1d7ce;
    outline: none;
}
@media (max-width: 768px) {

    .carousel-loader-content {
        width: 100%;
        text-align: center;
        padding: 40px;
    }

    .carousel-loader-content i {
        width: 32px;
        height: 32px;
        margin: 0 auto;
    }
}
@media (max-height: 600px) and (orientation: landscape) {
    .section-padding {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }
}

.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background-color: #6e664c;
    /* Green Card */
    color: #e1d7ce;
    /* Beige Text (Titles/Labels) */
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.auth-card h2 {
    color: #e1d7ce;
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: #e1d7ce;
    font-size: 0.9rem;
}
.auth-form input,
.auth-form textarea {
    background-color: #e1d7ce !important;
    color: #5c5540 !important;
    /* Brown Text inside inputs */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-family: var(--font-sans);
}

.auth-form input::placeholder {
    color: rgba(92, 85, 64, 0.6);
}
.testimonial-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icons */
    flex-shrink: 0;
    /* Prevent shrinking */
    margin-left: auto;
    /* Push to right */
    white-space: nowrap;
}
.testimonial-card-actions .checkbox-wrapper input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
    margin: 0;
    position: static;
    /* Override absolute positioning */
    transform: none;
    /* Override scale transform */
}
.btn-icon-only {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    /* Flex to center icon */
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s, transform 0.1s;
    min-width: 24px;
    height: 24px;
}

.btn-icon-only:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 5px;
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #e1d7ce;
}

.auth-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.back-link {
    color: #fff;
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: 500;
}

.admin-panel-container {
    display: none;
    max-width: 900px;
    margin: 0 auto 60px;
}

.member-profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.member-profile-heading h2 {
    margin: 6px 0 0;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.6vw, 2.55rem);
    font-weight: 500;
}

.member-profile-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.member-profile-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.member-profile-close-button {
    min-height: 36px;
    padding: 0 16px !important;
}

.member-profile-close-button svg {
    width: 16px;
    height: 16px;
}

.member-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.member-profile-card {
    background: #fff;
    border: 1px solid rgba(139, 88, 76, 0.14);
    border-radius: 12px;
    padding: 22px;
}

.profile-photo-zone {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 88, 76, 0.12);
}

.profile-photo-preview {
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(126, 137, 79, 0.18), rgba(195, 139, 125, 0.2));
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    border: 4px solid #fff;
    box-shadow: 0 10px 26px rgba(59, 49, 36, 0.14);
    cursor: grab;
    touch-action: none;
    user-select: none;
    position: relative;
}

.profile-photo-preview img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--profile-photo-width, 100%);
    height: var(--profile-photo-height, 100%);
    object-fit: cover;
    transform: translate(calc(-50% + var(--profile-photo-offset-x, 0px)), calc(-50% + var(--profile-photo-offset-y, 0px)));
    pointer-events: none;
    max-width: none;
}

.profile-photo-preview.is-dragging {
    cursor: grabbing;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-photo-actions small {
    flex-basis: 100%;
    color: var(--color-text-light);
    font-size: 0.78rem;
}

.profile-photo-controls {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(139, 88, 76, 0.12);
}

.profile-photo-controls label {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-photo-controls input[type="range"] {
    accent-color: var(--color-primary);
}

.member-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-status-message {
    min-height: 22px;
    margin: 16px 0 12px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-status-message.is-error {
    color: #b04132;
}

.profile-status-message.is-success {
    color: #667342;
}

.profile-save-button {
    min-width: 180px;
}

.profile-password-card h3 {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.profile-password-input {
    position: relative;
}

.profile-password-input .admin-input {
    padding-right: 44px;
    width: 100%;
}

.profile-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.78;
}

.profile-password-toggle:hover {
    opacity: 1;
}

@media (max-width: 820px) {

    .member-profile-heading,
    .member-profile-layout,
    .profile-photo-zone,
    .member-profile-fields {
        grid-template-columns: 1fr;
    }

    .member-profile-heading {
        align-items: flex-start;
    }

    .member-profile-heading-actions {
        align-items: flex-start;
    }

    .profile-photo-zone {
        justify-items: center;
        text-align: center;
    }

    .profile-photo-actions {
        justify-content: center;
    }
}

.admin-panel-title {
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.admin-grid-layout > * {
    min-width: 0;
}

.admin-section-title {
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.form-group-row {
    display: flex;
    gap: 10px;
}

.form-group-half {
    flex: 1;
}

.admin-toggle-btn {
    display: none;
    margin: 20px auto 0;
    background-color: #333;
    color: white;
}
.password-wrapper {
    position: relative;
}

.password-input {
    padding-right: 40px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.auth-small-text {
    font-size: 0.6rem;
    opacity: 0.5;
    display: block;
    margin-top: 15px;
    letter-spacing: 1px;
}
.admin-icon {
    margin-right: 10px;
    width: 18px;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.members-header-flex {
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.members-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.members-management-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.members-view-toolbar {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.members-view-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid #e2d8cf;
    border-radius: 999px;
    background: #f7f3ee;
}

.members-view-tabs button {
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    background: transparent;
    color: #6d635c;
    cursor: pointer;
    font: 600 11px Montserrat, sans-serif;
}

.members-sort-control {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #5d5149;
    font-size: 11px;
    white-space: nowrap;
}

.members-sort-control select {
    padding: 4px 7px;
    border: 1px solid #dfd3c8;
    border-radius: 5px;
    background: #fffdf9;
    color: #493f39;
    font: inherit;
}

.member-insights-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    flex: 0 0 auto;
}

.members-table-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: scroll;
    border: 1px solid #ebe3dc;
    border-radius: 8px 8px 0 0;
    background: #fff;
    scrollbar-gutter: stable both-edges;
}

.members-management-table {
    width: 100%;
    border-collapse: collapse;
    color: #30332f;
    font-size: 11px;
}

.members-management-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 7px;
    border-bottom: 2px solid #ddd5ce;
    background: #f5f3f0;
    color: #554b45;
    text-align: left;
    white-space: nowrap;
}

.members-management-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #eee7e1;
    vertical-align: top;
}

.member-row.is-pending {
    background: #fff8e8;
}

.member-row.is-active {
    background: #f0fff4;
}

.member-row.is-blocked {
    background: #fff5f5;
}

.member-row.is-archived {
    background: #f4f1ee;
}

.member-name-cell {
    min-width: 105px;
    font-weight: 700;
}

.member-email-cell {
    max-width: 180px;
    min-width: 145px;
    color: #625a55;
    overflow-wrap: anywhere;
}

.member-payment-input {
    box-sizing: border-box;
    border: 1px solid #d9d0c8;
    border-radius: 5px;
    padding: 4px 6px;
    background: #fffdf9;
    color: #30332f;
    font: 10px Montserrat, sans-serif;
}

.member-payment-date {
    width: 118px;
}

.member-payment-value {
    width: 70px;
}

.member-analysis-payment {
    display: grid;
    gap: 5px;
}

.member-status-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.member-status-badge.is-pending {
    background: #fff0c7;
    color: #9b5700;
}

.member-status-badge.is-active {
    background: #dff4e4;
    color: #2e7d32;
}

.member-status-badge.is-blocked {
    background: #ffe0e0;
    color: #b3261e;
}

.member-status-badge.is-archived {
    background: #e8e2dc;
    color: #665c55;
}

.member-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 130px;
}

.member-action {
    border: 1px solid #cfc5bc;
    border-radius: 5px;
    padding: 4px 7px;
    background: #fffdf9;
    color: #554b45;
    cursor: pointer;
    font: 600 10px Montserrat, sans-serif;
}

.member-action-activate {
    border-color: #a5d6a7;
    background: #e8f5e9;
    color: #2e7d32;
}

.member-action-block {
    border-color: #efb0ad;
    background: #fff5f5;
    color: #b3261e;
}

.member-protected-label {
    color: #777;
    font-size: 10px;
    font-style: italic;
}

.member-analysis-profile {
    min-width: 240px;
}

.member-analysis-profile > div {
    margin-bottom: 4px;
}

.member-next-step-cell {
    min-width: 190px;
    max-width: 260px;
}

.members-empty-row {
    padding: 28px !important;
    color: #8a817b;
    text-align: center;
}

.members-fixed-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 7px 10px;
    border: 1px solid #ebe3dc;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fbf8f3;
    color: #786f69;
    font-size: 10px;
}

.members-fixed-footer .is-pending {
    color: #9b5700;
}

.members-fixed-footer .is-active {
    color: #2e7d32;
}

.members-fixed-footer .is-blocked {
    color: #b3261e;
}

.members-fixed-footer .is-archived {
    color: #665c55;
}

.member-insight-card {
    padding: 12px;
    border: 1px solid #e6ddd4;
    border-radius: 10px;
    background: #fffdf9;
    color: #5d5149;
    box-shadow: 0 6px 18px rgba(59, 49, 36, 0.05);
}

.member-insight-label {
    display: block;
    margin-bottom: 7px;
    color: #8f6559;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-insight-pill,
.member-followup-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px 4px 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4eee8;
    color: #5d5149;
    font-size: 10px;
    line-height: 1.3;
}

.member-insight-pill strong {
    color: #8f6559;
}

.member-followup-toggle {
    margin-top: 7px;
    border: 0;
    background: transparent;
    color: #8f6559;
    cursor: pointer;
    font-weight: 700;
    font-size: 10px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-followup-row td {
    padding: 12px 14px 16px;
    background: rgba(245, 255, 247, 0.96);
    border-bottom: 1px solid #e6ddd4;
}

.member-followup-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(191, 137, 127, 0.28);
    border-radius: 10px;
    background: rgba(245, 255, 247, 0.98);
    box-shadow: 0 10px 24px rgba(59, 49, 36, 0.08);
}

.member-followup-fields label {
    display: grid;
    gap: 3px;
    color: #6d635c;
    font-size: 10px;
    font-weight: 700;
}

.member-followup-fields input,
.member-followup-fields textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfd3c8;
    border-radius: 6px;
    padding: 5px 7px;
    background: #fffdf9;
    color: #493f39;
    font: 11px Montserrat, sans-serif;
}

.member-followup-fields input[type="date"] {
    min-width: 0;
    padding-right: 4px;
}

.member-followup-fields button {
    align-self: end;
}

.member-history summary {
    color: #8f6559;
    cursor: pointer;
    white-space: nowrap;
}

.member-history div {
    display: grid;
    gap: 3px;
    margin-top: 5px;
    min-width: 112px;
}

.member-history span {
    display: block;
    line-height: 1.35;
}

.member-history-empty {
    color: #aaa;
}

.cms-form-cancel-btn {
    margin: 0;
}

.cms-inline-form-actions,
.admin-action-bar.cms-inline-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.cms-inline-form-actions > button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    justify-content: center;
}

#review-form .cms-inline-form-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

@media (max-width: 520px) {
    .cms-inline-form-actions {
        grid-template-columns: 1fr;
    }

    .cms-inline-form-actions > button[type="submit"] {
        grid-row: 1;
    }
}

.access-mode-toggle-btn {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .member-insights-board {
        grid-template-columns: 1fr;
    }

    .member-followup-fields {
        grid-template-columns: 1fr;
    }

    #admin-members-list.scrollable-list-500 {
        height: min(540px, 72vh);
        min-height: 400px;
    }

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

    .members-view-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .members-fixed-footer {
        justify-content: flex-start;
    }
}

.admin-list-container {
    border-left: 1px solid #eee;
    padding-left: 40px;
}

.meditations-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.meditation-form-header,
.meditation-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.meditation-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

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

.meditation-list-header h3 {
    margin: 0;
}

.meditation-new-theme-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(128, 134, 79, 0.32);
    border-left: 3px solid var(--color-primary);
    border-radius: 7px;
    background: rgba(128, 134, 79, 0.08);
    color: #5d5149;
    font-size: 12px;
    line-height: 1.5;
}

.meditation-new-theme-note strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 2px;
}

#card-meditations .admin-list-container {
    border-left: 0;
    padding-left: 0;
    background: #fffdf8;
    border: 1px solid rgba(191, 137, 127, 0.22);
    border-radius: 10px;
    padding: 18px;
}

.meditation-resource-group {
    background: #ffffff;
    border: 1px solid rgba(191, 137, 127, 0.22);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.meditation-resource-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(191, 137, 127, 0.22);
}

.meditation-resource-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.meditation-resource-group-header h3 {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.1;
}

.meditation-resource-count {
    flex: 0 0 auto;
    border: 1px solid rgba(128, 134, 79, 0.35);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    background: #fffdf8;
}

.meditation-resource-group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.meditation-resource-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.meditation-resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.meditation-resource-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.meditation-resource-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(128, 134, 79, 0.12);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meditation-resource-item h4 {
    margin: 0;
    color: #4b4a43;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
}

.meditation-resource-item p {
    margin: 3px 0 0;
    color: #888;
    font-size: 0.78rem;
}

.meditation-resource-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.admin-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
}

.cms-rich-wrapper {
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 8px;
    background: #fffdf7;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.cms-tinymce-preview {
    min-height: 40px;
    max-height: 112px;
    overflow: auto;
    padding: 8px 10px;
    border: 1px solid #c8c2b7;
    border-radius: 8px;
    background: #faf8f2;
    color: #30332f;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: text;
    box-sizing: border-box;
}

.cms-tinymce-preview * {
    color: inherit !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.cms-tinymce-preview h1,
.cms-tinymce-preview h2,
.cms-tinymce-preview h3,
.cms-tinymce-preview h4,
.cms-tinymce-preview h5,
.cms-tinymce-preview h6 {
    margin: 0 0 0.35em;
}

.cms-tinymce-preview:focus,
.cms-tinymce-preview:hover {
    border-color: #8a8f64;
    box-shadow: inset 0 0 0 1px rgba(128, 134, 79, 0.2);
    outline: none;
}

.cms-tinymce-preview p {
    margin: 0 0 0.7em;
}

.cms-tinymce-preview--compact {
    min-height: 34px;
    max-height: 64px;
    padding: 6px 9px;
}

.cms-tinymce-preview--compact p {
    margin: 0;
}

.cms-empty-preview {
    color: rgba(75, 74, 67, 0.55);
}

.cms-rich-toolbar {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 6px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(75, 74, 67, 0.12);
}

.cms-rich-toolbar--compact {
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
    padding: 4px;
}

.cms-rich-wrapper.is-focused .cms-rich-toolbar,
.cms-rich-wrapper.is-html-mode .cms-rich-toolbar,
.cms-rich-wrapper.is-floating-editor .cms-rich-toolbar {
    display: flex;
}

.cms-rich-placeholder {
    max-width: 100%;
}

.cms-rich-close {
    display: none;
}

.cms-rich-floating-header {
    display: none;
}

.cms-rich-wrapper.is-floating-editor {
    position: fixed;
    left: 50%;
    top: 84px;
    z-index: 10020;
    width: min(1120px, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 118px);
    transform: translateX(-50%);
    box-shadow: 0 22px 70px rgba(42, 39, 34, 0.35);
}

.cms-rich-wrapper.is-floating-editor .cms-rich-floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: #f7f2e0;
    border-bottom: 1px solid rgba(75, 74, 67, 0.12);
}

.cms-rich-wrapper.is-floating-editor .cms-rich-floating-title {
    min-width: 0;
    overflow: hidden;
    color: #4b4a43;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-close {
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(75, 74, 67, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    padding: 0 12px;
    cursor: pointer;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cms-rich-wrapper.is-floating-editor .cms-rich-editor,
.cms-rich-wrapper.is-floating-editor.is-html-mode .cms-rich-source {
    min-height: 280px;
    max-height: calc(100vh - 200px);
}

.cms-rich-wrapper.is-floating-editor.cms-rich-wrapper--preview .cms-rich-editor {
    background-color: var(--cms-preview-bg, #e1d7ce) !important;
    background-image: var(--cms-preview-bg-image, none) !important;
    background-size: cover !important;
    background-position: center !important;
    color: var(--cms-preview-color, #5c5540) !important;
}

.cms-rich-toolbar button {
    min-width: 28px;
    height: 28px;
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.cms-rich-toolbar select {
    height: 28px;
    max-width: 78px;
    border: 1px solid rgba(75, 74, 67, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #4b4a43;
    font-size: 11px;
    padding: 0 4px;
}

.cms-rich-toolbar--compact button {
    min-width: 26px;
    height: 26px;
}

.cms-rich-toolbar--compact select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    height: 26px;
    max-width: 68px;
    padding-right: 4px;
}

.cms-rich-toolbar--compact select[data-font-size] {
    max-width: 62px;
}

.cms-rich-toolbar--compact select[data-font-family] {
    max-width: 72px;
}

.cms-rich-toolbar--compact select[data-color] {
    max-width: 56px;
}

.cms-rich-toolbar button:hover,
.cms-rich-toolbar button.is-active,
.cms-rich-toolbar select.is-active {
    background: #80864f;
    border-color: #80864f;
    color: #ffffff;
}

.cms-rich-divider {
    width: 1px;
    height: 20px;
    margin: 0 3px;
    background: rgba(75, 74, 67, 0.18);
}

.cms-rich-editor {
    min-height: 118px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #e1d7ce;
    color: #5c5540;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: normal;
}

.cms-rich-wrapper--inline .cms-rich-editor {
    min-height: 38px;
    max-height: 90px;
    padding: 8px 10px;
}

.cms-rich-wrapper--inline.is-floating-editor .cms-rich-editor,
.cms-rich-wrapper--inline.is-floating-editor.is-html-mode .cms-rich-source {
    min-height: 140px;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor {
    background: #898d78;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor p,
.cms-rich-wrapper--dark-preview .cms-rich-editor li,
.cms-rich-wrapper--dark-preview .cms-rich-editor span,
.cms-rich-wrapper--dark-preview .cms-rich-editor strong,
.cms-rich-wrapper--dark-preview .cms-rich-editor em,
.cms-rich-wrapper--dark-preview .cms-rich-editor u {
    font-family: var(--font-body);
    font-size: 1rem;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor p,
.cms-rich-wrapper--dark-preview .cms-rich-editor li {
    line-height: 1.8;
}

.cms-rich-wrapper--dark-preview .cms-rich-editor h2,
.cms-rich-wrapper--dark-preview .cms-rich-editor h3 {
    color: #ffffff;
}

.cms-rich-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(128, 134, 79, 0.18);
}

.cms-rich-editor p {
    margin: 0 0 0.75em;
}

.cms-rich-editor ul,
.cms-rich-editor ol {
    margin: 0 0 0.75em 1.4em;
    padding-left: 1.2em;
}

.cms-rich-editor blockquote {
    margin: 0 0 0.75em 1.5em;
    padding-left: 0.75em;
    border-left: 2px solid currentColor;
}

.cms-rich-editor p:last-child,
.cms-rich-editor ul:last-child,
.cms-rich-editor ol:last-child {
    margin-bottom: 0;
}

.cms-rich-editor h2,
.cms-rich-editor h3 {
    margin: 0 0 0.6em;
    font-family: var(--font-serif);
    color: #4b4a43;
}

.cms-rich-wrapper--preview .cms-rich-editor,
.cms-rich-wrapper--preview .cms-rich-editor p,
.cms-rich-wrapper--preview .cms-rich-editor li,
.cms-rich-wrapper--preview .cms-rich-editor blockquote {
    color: inherit;
}

.cms-rich-wrapper--preview .cms-rich-editor h2,
.cms-rich-wrapper--preview .cms-rich-editor h3 {
    color: var(--cms-preview-heading-color, currentColor);
}

.cms-rich-source {
    display: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    resize: vertical;
    border-radius: 0 0 8px 8px;
}

.cms-rich-wrapper.is-html-mode .cms-rich-editor {
    display: none;
}

.cms-rich-wrapper.is-html-mode .cms-rich-source {
    display: block !important;
    min-height: 140px;
    max-width: 100%;
    width: 100% !important;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    resize: vertical;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.cms-rich-wrapper.is-html-mode .cms-rich-source:focus {
    outline: 2px solid rgba(128, 134, 79, 0.26);
    outline-offset: -2px;
}

.color-input {
    width: 50px;
    height: 35px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.color-text-input {
    width: 80px;
    text-transform: uppercase;
}

.admin-input-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: whitesmoke;
}

.admin-help-text {
    color: #666;
}

.admin-action-bar {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 15px;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

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

.flex-gap-20-center {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bg-whitesmoke-rounded {
    background: whitesmoke;
    padding: 10px;
    border-radius: 8px;
}

.w-18-h-18 {
    width: 18px;
    height: 18px;
}

.margin-0 {
    margin: 0 !important;
}

.admin-file-url-input {
    margin-bottom: 5px;
    background: whitesmoke;
    border: 1px solid #ddd;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    display: none;
}
.file-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.file-preview-box.pending-delete {
    background: #fff5f5;
    border-color: #f28b82;
    opacity: 0.8;
}

.file-preview-media {
    flex-shrink: 0;
}

.file-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.file-preview-icon {
    width: 72px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 8px;
    color: #666;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-info .text-truncate {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.file-preview-actions {
    display: flex;
    gap: 6px;
}

.file-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}

.file-preview-btn:hover {
    filter: brightness(0.95);
}
.service-editorial-card {
    width: 100%;
}

.service-edit-toolbar {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 137, 127, 0.28);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
    padding: 14px 16px;
}

.service-edit-toolbar strong {
    color: #222;
    display: block;
    font-size: 1rem;
    margin-top: 3px;
}

.service-edit-toolbar p {
    color: #777;
    font-size: 0.74rem;
    line-height: 1.4;
    margin: 4px 0 0;
}

#panel-services .admin-panel-content {
    max-width: 100%;
}

#panel-services .admin-grid-2-col,
#panel-services .admin-grid-3-col,
#panel-services .service-editorial-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
}

#panel-services .admin-grid-2-col.mb-20 {
    margin-bottom: 0 !important;
}

#panel-services .admin-col-card:nth-child(3) {
    grid-column: auto !important;
}

#panel-services .admin-col-card,
#panel-services .service-repeater-panel,
#panel-services .service-editorial-style {
    background: #fffdf8;
    border: 1px solid var(--service-admin-border);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(72, 57, 44, 0.06);
}

#panel-services .admin-col-card {
    margin: 0 0 6px;
    padding: 0;
    overflow: hidden;
}

#panel-services .admin-col-card + .admin-col-card,
#panel-services .admin-grid-2-col + .admin-grid-2-col,
#panel-services .admin-grid-2-col + .admin-col-card,
#panel-services .admin-col-card + .admin-grid-2-col,
#panel-services .service-editorial-card + .admin-col-card {
    margin-top: 0 !important;
}

#panel-services .admin-col-header {
    align-items: center;
    background: linear-gradient(90deg, #fff8ea, #ffffff);
    border-bottom: 1px solid var(--service-admin-border);
    color: #9a6a61;
    display: flex;
    font-size: 1.05rem;
    gap: 12px;
    justify-content: space-between;
    margin: 0;
    padding: 10px 14px;
}

#panel-services .admin-col-header-clickable {
    cursor: pointer;
    user-select: none;
}

#panel-services .admin-col-header-clickable::after {
    color: #9a6a61;
    content: "Fechar";
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

#panel-services .admin-col-card.is-collapsed .admin-col-header-clickable::after {
    content: "Abrir";
}

#panel-services .admin-col-header-clickable:focus-visible {
    outline: 2px solid rgba(128, 134, 79, 0.45);
    outline-offset: -4px;
}

#panel-services .admin-collapsible-body {
    padding: 12px;
}

#panel-services .admin-action-bar {
    align-items: center;
    margin-top: 8px;
}

#panel-services .service-panel-footer-name {
    color: #111;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
}

#panel-services .preview-box-group,
#panel-services .cta-toggle-group {
    background: var(--service-admin-soft);
    border: 1px solid var(--service-admin-border);
    border-radius: 8px;
}

#panel-services .preview-box-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

#panel-services .preview-box-item {
    background: #fff;
    border: 1px solid rgba(233, 223, 211, 0.8);
}

#panel-services .service-editorial-style,
#panel-services .service-repeater-panel {
    padding: 12px;
}

#panel-services .service-repeater-list {
    max-height: none;
    overflow: visible;
}

#panel-services .service-repeater-item {
    border-color: var(--service-admin-border);
    box-shadow: 0 4px 12px rgba(72, 57, 44, 0.04);
}

#panel-services .testimonial-scroll-area {
    max-height: 360px;
}
.members-showcase-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.members-editor-section {
    background: #fffdf8;
    border: 1px solid #e9dfd3;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(72, 57, 44, 0.05);
    overflow: hidden;
}

.members-editor-section summary {
    align-items: center;
    background: linear-gradient(90deg, #fff8ea, #ffffff);
    color: #9a6a61;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(170px, 0.42fr) minmax(260px, 1fr) auto;
    list-style: none;
    padding: 10px 14px;
    user-select: none;
}

.members-editor-section summary::-webkit-details-marker {
    display: none;
}

.members-section-title-wrap {
    display: grid;
    gap: 3px;
}

.members-section-title-wrap > span {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
}

.members-section-title-wrap small {
    color: #6f7460;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
}

.members-editor-section summary::after {
    align-self: center;
    color: #9a6a61;
    content: "Abrir";
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: auto;
}

.members-editor-section[open] summary::after {
    content: "Fechar";
}

.members-section-preview {
    position: relative;
    display: block;
    width: min(100%, 360px);
    min-height: 58px;
    justify-self: stretch;
    overflow: hidden;
    border: 1px solid rgba(75, 74, 67, 0.16);
    border-radius: 8px;
    background: #b7b2a6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.members-section-preview span,
.members-section-preview i,
.members-section-preview b,
.members-section-preview em {
    display: block;
}

.members-section-preview .preview-line {
    width: 58%;
    height: 4px;
    margin: 7px 0 0 12px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.42;
}

.members-section-preview .preview-line.short {
    width: 42%;
    margin-top: 5px;
}

.members-section-preview--hero {
    min-height: 66px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(74, 78, 50, 0.9), rgba(74, 78, 50, 0.45)),
        linear-gradient(135deg, #80864f 0%, #4b4a43 52%, #c58f84 100%);
}

.members-section-preview--hero .preview-actions {
    display: flex;
    gap: 6px;
    margin: 8px 0 0 12px;
}

.members-section-preview--hero .preview-actions i {
    width: 38px;
    height: 9px;
    border-radius: 999px;
    background: #c58f84;
}

.members-section-preview--hero .preview-actions i + i {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.members-section-preview--inside {
    min-height: 74px;
    background: #b7b2a6;
}

.preview-inside-copy {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 42%;
}

.preview-inside-copy i {
    width: 32%;
    height: 4px;
    margin-bottom: 8px;
    border-radius: 99px;
    background: #8b584c;
}

.preview-inside-copy b {
    width: 86%;
    height: 6px;
    margin-bottom: 4px;
    border-radius: 99px;
    background: #4b4a43;
    opacity: 0.78;
}

.preview-inside-copy em {
    width: 72%;
    height: 4px;
    margin-top: 5px;
    border-radius: 99px;
    background: #4b4a43;
    opacity: 0.48;
}

.preview-inside-list {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 40%;
}

.preview-inside-list i {
    height: 16px;
    border-top: 1px solid rgba(75, 74, 67, 0.25);
}

.preview-inside-list i::before {
    content: "";
    display: block;
    width: 46%;
    height: 4px;
    margin-top: 6px;
    border-radius: 99px;
    background: #8b584c;
}

.preview-redbox {
    position: absolute;
    top: 7px;
    bottom: 7px;
    border: 2px solid #d64040;
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(214, 64, 64, 0.04);
}

.members-section-preview--inside-left .preview-redbox {
    left: 7px;
    width: 48%;
}

.members-section-preview--inside-right .preview-redbox {
    right: 7px;
    width: 46%;
}

.members-section-preview--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 74px;
    padding: 9px;
    background: #f7f2e0;
}

.members-section-preview--cards .preview-card {
    position: relative;
    min-height: 54px;
    padding: 8px 7px;
    border: 1px solid rgba(128, 134, 79, 0.26);
    border-radius: 7px;
    background: #fffdf8;
    box-shadow: 0 10px 22px rgba(75, 74, 67, 0.08);
}

.members-section-preview--cards .preview-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22px;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(247, 242, 224, 0.92));
}

.members-section-preview--cards .preview-card i {
    width: 15px;
    height: 15px;
    margin-bottom: 7px;
    border-radius: 50%;
    background: #80864f;
}

.members-section-preview--cards .preview-card b,
.members-section-preview--cards .preview-card em {
    height: 4px;
    border-radius: 99px;
    background: #4b4a43;
}

.members-section-preview--cards .preview-card b {
    width: 78%;
    margin-bottom: 6px;
    opacity: 0.78;
}

.members-section-preview--cards .preview-card em {
    width: 88%;
    margin-bottom: 4px;
    opacity: 0.34;
}

.members-section-preview--access {
    min-height: 74px;
    color: #ffffff;
    background: #80864f;
}

.preview-access-copy {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 38%;
}

.preview-access-copy i,
.preview-access-copy b {
    border-radius: 99px;
    background: #ffffff;
}

.preview-access-copy i {
    width: 38%;
    height: 4px;
    margin-bottom: 8px;
    opacity: 0.76;
}

.preview-access-copy b {
    width: 92%;
    height: 6px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.preview-access-copy b:nth-child(4) {
    width: 68%;
}

.preview-access-steps {
    position: absolute;
    right: 16px;
    top: 10px;
    width: 42%;
}

.preview-access-steps i {
    position: relative;
    height: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.preview-access-steps i::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
}

.preview-access-steps i::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 8px;
    width: 66%;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.78);
}

.members-section-preview--cta {
    min-height: 66px;
    color: #ffffff;
    text-align: center;
    background: #4b4a43;
}

.members-section-preview--cta .preview-button {
    width: 42px;
    height: 13px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #c58f84;
}

.members-editor-body {
    border-top: 1px solid #e9dfd3;
    padding: 12px;
}

.members-editor-note {
    background: rgba(128, 134, 79, 0.1);
    border-left: 3px solid #80864f;
    border-radius: 6px;
    color: #31352b;
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.members-editor-grid,
.members-summary-grid,
.members-steps-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.members-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.members-steps-grid {
    grid-template-columns: minmax(0, 1fr);
}

.members-mini-card,
.members-locked-card {
    background: #faf7ee;
    border: 1px solid #e9dfd3;
    border-radius: 8px;
    padding: 10px;
}

.members-mini-card strong {
    color: #6f7460;
    display: block;
    font-size: 0.72rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.members-mini-card input,
.members-locked-card input,
.members-locked-card textarea,
.members-steps-grid textarea,
.members-editor-grid input {
    max-width: 100%;
}

.members-showcase-editor input[type="text"] {
    height: 30px;
    min-height: 30px;
    padding: 4px 7px;
}

.members-showcase-editor textarea {
    padding: 7px 8px;
}

.members-showcase-editor .cms-tinymce-preview {
    padding: 8px 9px;
}

.members-showcase-editor .cms-tinymce-preview--compact {
    min-height: 30px;
    max-height: 64px;
    padding: 4px 7px;
    line-height: 1.3;
}

.members-locked-card + .members-locked-card {
    margin-top: 8px;
}

.members-showcase-footer {
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .members-editor-grid,
    .members-summary-grid {
        grid-template-columns: 1fr;
    }

    .members-editor-section summary {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .members-editor-section summary::after {
        margin-left: 0;
    }

    .members-section-preview {
        width: 100%;
    }
}

.service-active-toggle {
    align-items: center;
    background: #f8f6ef;
    border: 1px solid #ebe4d2;
    border-radius: 8px;
    display: flex !important;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
}

.service-active-toggle input {
    width: auto;
}

.service-active-toggle span {
    color: #333;
    font-size: 0.76rem;
    font-weight: 600;
}

.admin-service-card-mini {
    position: relative;
}

.service-visibility-badge {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    color: #4f553d;
    font-size: 0.68rem;
    font-weight: 700;
    left: 8px;
    padding: 3px 8px;
    position: absolute;
    top: 8px;
}

.service-edit-mode {
    color: var(--color-primary);
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-col-card.is-collapsed .admin-collapsible-body {
    display: none;
}

.service-editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.service-editorial-style,
.service-repeater-panel {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 14px;
}

.service-repeater-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.service-repeater-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
}

.service-repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.service-repeater-item textarea {
    min-height: 72px;
    resize: vertical;
}

.field-help {
    color: #777;
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 5px 0 0;
}

.field-help code {
    background: #f2eee4;
    border-radius: 4px;
    color: #6f4f48;
    font-size: 0.7rem;
    padding: 1px 4px;
}

.service-repeater-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.memory-admin-gallery-existing {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    min-height: 56px;
    padding: 10px;
}

.memory-admin-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.memory-admin-gallery-item {
    background: #fff;
    border: 1px solid #e5e0d5;
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
}

.memory-admin-gallery-item img {
    aspect-ratio: 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.memory-admin-gallery-item button {
    display: block;
    margin-top: 6px;
    width: 100%;
}

.memory-record-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.memory-record-group {
    background: #fffdf8;
    border: 1px solid #eadfce;
    border-radius: 8px;
    overflow: hidden;
}

.memory-record-group-header {
    background: #fbf6e8;
    border-bottom: 1px solid #eadfce;
    cursor: pointer;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 1fr auto auto;
    padding: 10px 12px;
}

@media (max-width: 640px) {
    .meditation-form-header,
    .meditation-list-header,
    .meditation-resource-group-header,
    .meditation-resource-group-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.memory-record-group-header:focus-visible {
    outline: 2px solid rgba(191, 137, 127, 0.45);
    outline-offset: -2px;
}

.memory-record-eyebrow {
    color: #bf7c72;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.memory-record-group h4 {
    color: #8b584c;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    grid-column: 1;
    margin: 0;
}

.memory-record-count {
    align-self: center;
    color: #777;
    font-size: 0.78rem;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.memory-record-toggle-label {
    align-self: center;
    color: #bf7c72;
    font-size: 0.72rem;
    font-weight: 700;
    grid-column: 3;
    grid-row: 1 / span 2;
}

.memory-record-list {
    display: flex;
    flex-direction: column;
}

.memory-record-group.is-collapsed .memory-record-list {
    display: none;
}

.memory-record-item {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.memory-record-item + .memory-record-item {
    border-top: 1px solid #f0e6d7;
}

.memory-record-item.is-editing {
    background: #fff7df;
    box-shadow: inset 4px 0 0 #bf897f;
}

.memory-record-editing-badge {
    color: #bf897f;
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 8px;
    text-transform: uppercase;
}

.memory-record-item.is-editing .memory-record-editing-badge {
    display: inline;
}

.memory-record-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.memory-record-date {
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
}

.memory-record-main strong {
    color: #4b4a43;
    font-size: 0.96rem;
    line-height: 1.25;
}

.memory-record-meta {
    color: #777;
    font-size: 0.78rem;
}

.memory-record-meta b {
    color: #bf7c72;
    margin-left: 6px;
}

.memory-record-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.memory-record-actions .btn-delete {
    background: none;
    border: 0;
    color: #a44c43;
    cursor: pointer;
    font-size: 0.82rem;
}

.storage-audit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
}

.storage-usage-card {
    background: #fff;
    border: 1px solid #e7e1d3;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px 14px;
}

.storage-usage-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.storage-usage-header strong {
    color: #4f553d;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.storage-usage-header span {
    color: #555;
    font-size: 0.78rem;
}

.storage-usage-bar {
    background: #ece7d9;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.storage-usage-bar span {
    background: #80864f;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0;
    transition: width 220ms ease, background-color 220ms ease;
}

.storage-usage-bar span.is-warning {
    background: #bf897f;
}

.storage-usage-bar span.is-danger {
    background: #b64b44;
}

.storage-audit-item {
    align-items: center;
    background: #fff;
    border: 1px solid #e7e1d3;
    border-left: 4px solid #b7b08a;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 10px;
}

.storage-security-summary {
    background: rgba(128, 134, 79, 0.08);
    border: 1px solid rgba(128, 134, 79, 0.24);
    border-radius: 6px;
    color: #333333;
    margin-bottom: 15px;
    padding: 12px 14px;
}

.storage-security-summary.is-warning {
    background: rgba(199, 111, 100, 0.08);
    border-color: rgba(199, 111, 100, 0.34);
}

.storage-security-summary p {
    margin: 6px 0;
}

.storage-security-summary ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.storage-migrate-button {
    margin-top: 12px;
}

.storage-migrate-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.storage-audit-preview {
    align-items: center;
    background: #f4f0e6;
    border-radius: 6px;
    display: flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.storage-audit-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.storage-audit-info {
    min-width: 0;
}

.storage-audit-info strong {
    color: #4f553d;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.storage-audit-info span {
    color: #555;
    display: block;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.storage-audit-info small {
    color: #8a8171;
    display: block;
    font-size: 0.72rem;
    margin-top: 4px;
}

.storage-audit-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .service-editorial-layout {
        grid-template-columns: 1fr;
    }

    .service-edit-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}
.admin-logo-preview-img {
    max-height: 50px;
    margin-top: 10px;
    display: block;
    object-fit: contain;
}
.admin-service-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.admin-service-list-horizontal .admin-event-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    width: 140px;
    height: auto;
    padding: 10px !important;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-service-list-horizontal .admin-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-service-list-horizontal .event-info {
    margin-bottom: 10px;
}

.admin-service-list-horizontal .event-info strong {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.input-sand {
    background-color: #E1D7CE !important;
    border: 1px solid #c9bdae !important;
    color: #333 !important;
}

.input-sand::placeholder {
    color: #7a7065;
}

.input-sand:focus {
    border-color: #8c7e6e !important;
    background-color: #e8ded5 !important;
}
.input-color-sm {
    height: 30px;
    cursor: pointer;
    padding: 0px !important;
    width: 100%;
    border: none;
    background-color: #E1D7CE;
    /* input-sand default */
}
.svc-testi-bg-input {
    width: 50px;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}

.icon-14 {
    width: 14px;
}

.input-range-full {
    width: 100%;
    height: 5px;
    cursor: pointer;
}
.admin-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.dashboard-page .section-padding {
    padding-top: 160px;
}
.admin-toggle-btn {
    display: none;
    /* JS toggles to flex */
    margin: 20px auto 40px auto;
    background-color: #2c2c2c;
    color: #e6dfc8;
    border-radius: 50px;
    padding: 12px 35px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-toggle-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.testimonial-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-selector-card {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-selector-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.testimonial-selector-card input[type="checkbox"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.3);
    cursor: pointer;
    z-index: 2;
    accent-color: var(--color-primary);
}
.testimonial-selector-card.selected {
    border: 2px solid var(--color-primary);
    background-color: var(--color-secondary-beige);
}

.testimonial-card-header {
    font-weight: 600;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-right: 30px;
    /* Space for checkbox */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-card-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    margin-top: 5px;
}
.admin-review-card {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
}

.admin-review-card:hover {
    background: #fcfcfc;
}

.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.admin-review-title-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    /* Enable truncation in flex child */
}

.admin-review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    flex-shrink: 0;
    /* Keep name full width if possible */
}

.admin-review-role-separator {
    color: #999;
    flex-shrink: 0;
}

.admin-review-role {
    font-size: 0.85rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Allow it to shrink */
    min-width: 0;
}

.admin-review-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.btn-icon-sm:hover {
    color: var(--color-primary);
    background: #eee;
}

.btn-icon-sm.delete:hover {
    color: #ef4444;
    background: #fee2e2;
}

.admin-review-text {
    font-size: 12px;
    color: #000;
    line-height: 1.3;
    margin: 0;
    font-family: sans-serif;
    font-weight: 400;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.resource-display {
    border: 1px solid #ddd;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-break-all {
    word-break: break-all;
}

.btn-remove-sm {
    color: red !important;
    font-size: 0.8rem !important;
}

.progress-track {
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: var(--color-primary);
    width: 0%;
    height: 100%;
    transition: width 0.2s;
}
.meditations-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.meditations-grid-layout.is-static-meditations {
    grid-template-columns: repeat(auto-fit, 280px);
    justify-content: center;
}

.meditation-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 300px;
    /* Fixed height as requested */
    display: flex;
    flex-direction: column;
}

.meditation-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.grid-card-image {
    height: 200px;
    /* Dominant image */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.admin-service-card-mini {
    position: relative;
    width: 172px;
    /* 170px content + border */
    height: auto !important;
    /* Override any fixed height */
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid #ddd;
}

.admin-service-card-mini:active {
    cursor: grabbing;
}

.admin-service-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mini-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px 8px 0 0;
}

.mini-card-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #4F553D 0%, #30332E 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card-title {
    padding: 8px 5px;
    color: #333;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 45px;
    /* Ensure 2 lines fit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card-actions {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.btn-icon-action {
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #555;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-action svg {
    width: 16px;
    height: 16px;
}

.btn-icon-action:hover {
    background-color: #eee;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-icon-action.delete:hover {
    color: #e53e3e;
    background-color: #fee2e2;
    border-color: #e53e3e;
}
.testimonials-selector-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-card-v4 {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonial-card-v4:hover {
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.testimonial-card-v4.selected {
    border: 2px solid var(--color-primary);
    background-color: var(--color-secondary-beige, #fcfcfc);
    /* Fallback */
}

.testimonial-card-v4 input[type="checkbox"] {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.3);
    cursor: pointer;
    z-index: 2;
}
.card-line-1 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    padding-right: 30px;
    /* Space for checkbox */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-line-2 {
    font-weight: 400;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit roughly to 3 visual lines of text if long */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
    /* Ensure some height consistency */
}
.card-line-3 {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: auto;
    /* Push to bottom if flex column grows */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.testimonials-selector-grid-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Slightly narrower col */
    gap: 10px;
    /* Reduced gap */
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    /* Reduced padding */
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testimonial-card-v4 {
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
    /* Reduced padding from 15px */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Reduced gap from 8px */
}
.testimonial-card-v4 input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.1);
    /* Slightly smaller scale */
}
.card-line-1 {
    font-weight: 700;
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    color: #333;
    padding-right: 25px;
    margin-bottom: 2px;
}
.card-line-2 {
    font-weight: 400;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
    color: #555;
    line-height: 1.3;
    /* Tighter line height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    /* Remove fixed min-height for compactness */
}
.card-line-3 {
    font-weight: 700;
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: var(--color-primary);
    margin-top: 4px;
}
.testimonial-card-v4 .card-line-2 {
    font-size: 10px !important;
    line-height: 1.25;
}
details.admin-card.maintenance-card {
    border: 2px solid #28a745;
    /* Initial state is green outline */
    transition: all 0.3s ease;
}

details.admin-card.maintenance-card summary.maintenance-card-header {
    background: #e6f4ea;
    /* Soft green tint */
    color: #137333;
    /* Dark green text */
    position: relative;
    /* For absolute badge positioning */
}

.maintenance-header-pos {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    /* Slightly smaller for the header */
    padding: 4px 12px;
}

details.admin-card.maintenance-card.offline {
    border: 2px solid #dc3545;
    /* Red outline when offline */
}

details.admin-card.maintenance-card.offline summary.maintenance-card-header {
    background: #ffebeb;
    /* Visually distinct red tint */
    color: #dc3545;
    /* Red text */
}

.text-danger {
    color: #dc3545 !important;
}
.maintenance-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    transition: background-color 0.3s ease;
}

.maintenance-badge.offline {
    background-color: #dc3545;
    color: white !important;
    border: 2px solid #bd2130;
}

.member-profile-heading {
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.member-profile-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.6rem, 2.5vw, 2.05rem);
}

.member-profile-heading p {
    max-width: 280px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.member-profile-heading-actions {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.member-profile-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: 14px;
}

.member-profile-card {
    padding: 16px;
    min-width: 0;
}

.profile-photo-zone {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.profile-photo-preview {
    width: 96px;
    font-size: 1.8rem;
    box-shadow: 0 7px 18px rgba(59, 49, 36, 0.12);
}

.profile-photo-actions {
    gap: 8px;
}

.profile-photo-actions small {
    font-size: 0.7rem;
    line-height: 1.45;
}

.profile-photo-controls {
    grid-template-columns: auto minmax(96px, 1fr) auto;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.member-profile-fields {
    gap: 10px 14px;
}

.profile-status-message {
    margin: 12px 0 8px;
}

.profile-save-button {
    min-width: 165px;
}

.profile-password-card summary {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
}

.profile-password-card summary::-webkit-details-marker {
    display: none;
}

.profile-password-card summary::after {
    content: '+';
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.profile-password-card[open] summary::after {
    content: '-';
}

.profile-password-card summary svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.profile-password-form {
    margin-top: 16px;
}

@media (max-width: 820px) {

    .member-profile-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .member-profile-heading h2 {
        font-size: 1.72rem;
    }

    .member-profile-heading-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .member-profile-heading p {
        max-width: 205px;
        font-size: 0.78rem;
    }

    .member-profile-layout,
    .member-profile-fields {
        grid-template-columns: 1fr;
    }

    .member-profile-card {
        padding: 14px;
    }

    .profile-photo-zone {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        justify-items: initial;
        text-align: left;
    }

    .profile-photo-preview {
        width: 86px;
    }

    .profile-photo-actions {
        justify-content: flex-start;
    }

    .profile-photo-controls {
        grid-template-columns: auto minmax(70px, 1fr) auto;
    }
}

@media (max-width: 340px) {

    .profile-photo-zone {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-photo-actions {
        justify-content: center;
    }

    .profile-photo-controls {
        gap: 8px;
    }
}
@media (max-width: 820px) {

    .member-profile-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px 12px;
    }

    .member-profile-heading > div:first-child {
        min-width: 0;
    }

    .member-profile-heading-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .member-profile-heading p {
        max-width: none;
        margin: 0;
    }

    .profile-photo-zone {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .profile-photo-preview {
        width: 72px;
        font-size: 1.45rem;
    }

    .profile-photo-actions {
        align-content: center;
    }
}