.mlm-auth-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.mlm-auth-toggle {
    display: block;
    width: 100%;
    padding: 11px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
}

.mlm-auth-toggle:hover {
    background: #005177;
}

.mlm-auth-inner {
    margin-top: 12px;
}

.mlm-auth-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.mlm-auth-tab {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
}

.mlm-auth-tab.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
}

.mlm-auth-panel {
    display: none;
}

.mlm-auth-panel.active {
    display: block;
}

.mlm-auth-card {
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.mlm-auth-line {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.mlm-auth-card input {
    width: 100%;
    margin-bottom: 8px;
}

#mlm-register-form .button.button-primary {
    display: block;
    margin: 8px auto 0;
}

.mlm-auth-msg {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
}

.mlm-auth-msg.error {
    color: #a82525;
}

.mlm-auth-msg.success {
    color: #187329;
}

.mlm-account-wrap select,
.mlm-account-wrap input[type="date"],
.mlm-account-wrap input[type="time"],
.mlm-account-wrap input[type="datetime-local"] {
    width: 100%;
    max-width: 420px;
}

.mlm-account-wrap select[multiple] {
    min-height: 120px;
}

.mlm-badges-editor {
    max-width: 560px;
}

.mlm-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.mlm-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef5ff;
    border: 1px solid #c5d9f2;
    color: #1e3f63;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}

.mlm-badge-remove {
    border: none;
    background: transparent;
    color: #1e3f63;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.mlm-badges-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mlm-badges-input {
    flex: 1;
    margin: 0;
}

.mlm-account-section {
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 14px;
    background: #fff;
}

.mlm-account-section h4 {
    margin: 0 0 10px;
    color: #16364f;
}

.mlm-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
}

.mlm-portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.mlm-portal-tab {
    border: 1px solid #c8d7e5;
    background: #f3f8fc;
    color: #1c3f5d;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.mlm-portal-tab.active {
    background: #dceeff;
    border-color: #7aa5cc;
}

.mlm-portal-panel {
    display: none;
}

.mlm-portal-panel.active {
    display: block;
}

.mlm-member-kiddush-bookings {
    margin-bottom: 28px;
}

.mlm-member-bookings-table-wrap {
    overflow-x: auto;
    border: 1px solid #d9e2e9;
    border-radius: 8px;
}

.mlm-member-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.mlm-member-bookings-table th,
.mlm-member-bookings-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e4e9ed;
    text-align: left;
    vertical-align: top;
}

.mlm-member-bookings-table th {
    background: #17364e;
    color: #fff;
    font-size: 13px;
}

.mlm-member-bookings-table tr:last-child td {
    border-bottom: 0;
}

.mlm-member-bookings-table td span {
    display: block;
    margin-top: 3px;
    color: #5c6b77;
}

.mlm-member-bookings-table code {
    white-space: nowrap;
}

.mlm-member-booking-status {
    display: inline-block !important;
    margin: 0 !important;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8f4eb;
    color: #246b35 !important;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .mlm-member-bookings-table thead {
        display: none;
    }

    .mlm-member-bookings-table,
    .mlm-member-bookings-table tbody,
    .mlm-member-bookings-table tr,
    .mlm-member-bookings-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .mlm-member-bookings-table tr {
        padding: 8px 0;
        border-bottom: 1px solid #d9e2e9;
    }

    .mlm-member-bookings-table tr:last-child {
        border-bottom: 0;
    }

    .mlm-member-bookings-table td {
        border: 0;
        padding: 6px 12px;
    }

    .mlm-member-bookings-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #657684;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
    }
}

.mlm-repeater {
    display: grid;
    gap: 8px;
}

.mlm-repeater-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fbfdff;
}

.mlm-support-chat {
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fff;
    min-height: 110px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 8px;
}

.mlm-support-msg {
    font-size: 13px;
    margin-bottom: 6px;
    color: #1c3f5d;
}

.mlm-support-msg.success {
    color: #187329;
}

.mlm-support-msg.error {
    color: #a82525;
}

.mlm-support-compose {
    display: grid;
    gap: 8px;
}

.mlm-policy-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 16px 0 20px;
}

.mlm-policy-group {
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fbfdff;
    padding: 14px;
}

.mlm-policy-group h5 {
    margin: 0 0 10px;
    color: #16364f;
    font-size: 15px;
}

.mlm-policy-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mlm-policy-list li {
    margin: 0;
}

.mlm-policy-link {
    display: inline-flex;
    align-items: center;
    color: #0f5f99;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.mlm-policy-link:hover,
.mlm-policy-link:focus {
    color: #0a436c;
    text-decoration: underline;
}

.mlm-policy-link-missing {
    color: #526b80;
    cursor: default;
    font-weight: 500;
    pointer-events: none;
    text-decoration: none;
}

#mlm-family-table input,
#mlm-family-table select {
    width: 100%;
}
.mlm-choice-description{display:inline-block;margin-left:.6rem;color:#59636e;font-size:.92em;vertical-align:middle;max-width:36rem}
.mlm-hook-assignments{margin-top:.75rem}.mlm-hook-assignments ul{margin:.25rem 0 0 1.25rem}.mlm-hook-members{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}

#mlm-family-table .mlm-family-icon-cell {
    width: 42px;
    text-align: center;
    white-space: nowrap;
}

.mlm-family-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 18px;
    color: #2c4e6a;
    border-radius: 999px;
    background: #eef5ff;
}

.mlm-family-icon.dashicons-heart {
    color: #b42347;
    background: #fde8ee;
}

.mlm-family-icon.dashicons-smiley {
    color: #8a5b00;
    background: #fff3cd;
}

.mlm-family-icon.dashicons-star-filled {
    color: #6a4b00;
    background: #ffe8a3;
}

.mlm-family-icon.dashicons-admin-users {
    color: #8f1d2c;
    background: #ffe5ea;
}

.mlm-family-icon.dashicons-groups {
    color: #0b4ea2;
    background: #e3eeff;
}

.mlm-family-icon.dashicons-businessperson {
    color: #114a89;
    background: #e4efff;
}

.mlm-family-icon.dashicons-awards {
    color: #5f3a8c;
    background: #f0e8fb;
}

.mlm-family-icon.dashicons-location-alt {
    color: #0b7a47;
    background: #e2f5e9;
}

.mlm-family-icon.dashicons-dismiss {
    color: #8b1e1e;
    background: #fdeaea;
}

.mlm-family-icon.dashicons-welcome-learn-more {
    color: #005a8d;
    background: #e5f3ff;
}

.mlm-family-icon.dashicons-universal-access {
    color: #5e4a00;
    background: #f7efcb;
}

.mlm-remove-icon-btn {
    display: inline-block;
    min-width: 18px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.mlm-family-legend {
    margin: 8px 0 12px;
    padding: 10px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #f8fbff;
    display: grid;
    gap: 8px;
}

.mlm-family-legend-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.mlm-family-legend-group strong {
    color: #16364f;
    margin-right: 4px;
}

.mlm-family-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2c4e6a;
}

.mlm-photo-uploader {
    max-width: 520px;
}

.mlm-photo-actions {
    margin-top: 6px;
}

.mlm-photo-upload-msg {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
}

.mlm-photo-upload-msg.success {
    color: #187329;
}

.mlm-photo-upload-msg.error {
    color: #a82525;
}

.mlm-photo-preview {
    margin-top: 8px;
}

.mlm-photo-preview img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7e0e8;
    background: #f8fbff;
}

.mlm-field-saving {
    border-color: #d6b400 !important;
    box-shadow: 0 0 0 2px #fff3bf;
    background-color: #fffbe6;
}

.mlm-field-saved {
    border-color: #1f7a2f !important;
    box-shadow: 0 0 0 2px #dff5df;
    background-color: #f1fbf1;
}

.mlm-field-error {
    border-color: #c72a2a !important;
    box-shadow: 0 0 0 2px #fde2e2;
    background-color: #fff2f2;
}

.mlm-family-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mlm-family-editor {
    margin-top: 12px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}

.mlm-family-editor h5 {
    margin: 0 0 10px;
}

.mlm-family-editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#mlm-nahalot-editor {
    max-width: 780px;
    padding: 18px;
}

#mlm-nahalot-editor h5 {
    margin-bottom: 16px;
    color: #16364f;
    font-size: 16px;
}

#mlm-nahalot-editor h6 {
    margin: 0 0 12px;
    color: #16364f;
    font-size: 14px;
    font-weight: 700;
}

#mlm-nahalot-editor p {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
    margin: 0 0 14px;
}

#mlm-nahalot-editor label {
    margin-top: 7px;
    color: #2c4e6a;
    font-weight: 600;
    line-height: 1.35;
}

#mlm-nahalot-editor input,
#mlm-nahalot-editor select,
#mlm-nahalot-editor textarea {
    width: 100%;
    max-width: none;
    margin: 0;
}

#mlm-nahalot-editor textarea {
    min-height: 88px;
    resize: vertical;
}

.mlm-nahalot-commemorate-toggle,
.mlm-lifecycle-commemorate-toggle {
    margin-top: 4px !important;
}

.mlm-nahalot-date-actions,
#mlm-nahalot-editor .mlm-nahalot-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mlm-nahalot-date-actions {
    grid-column: 2;
    margin-top: 2px;
}

#mlm-nahalot-editor .mlm-nahalot-editor-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #d7e0e8;
}

.mlm-nahalot-commemoration,
.mlm-lifecycle-commemoration {
    margin: 4px 0 16px;
    padding: 14px;
    border: 1px solid #cbd9e6;
    border-radius: 8px;
    background: #fff;
}

.mlm-commemoration-request-list {
    display: grid;
    gap: 8px;
    margin: 2px 0 14px;
}

.mlm-commemoration-request-item {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fbfdff;
}

.mlm-commemoration-request-actions span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#mlm-nahalot-editor .mlm-nahalot-commemoration p,
#mlm-lifecycle-editor .mlm-lifecycle-commemoration p {
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
    margin-bottom: 12px;
}

#mlm-nahalot-editor .mlm-nahalot-commemoration .mlm-commemoration-field[hidden],
#mlm-lifecycle-editor .mlm-lifecycle-commemoration .mlm-commemoration-field[hidden] {
    display: none;
}

#mlm-nahalot-editor .mlm-nahalot-commemoration p:last-child,
#mlm-lifecycle-editor .mlm-lifecycle-commemoration p:last-child {
    margin-bottom: 0;
}

#mlm-nahalot-repeater .mlm-repeater-item {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px 12px;
    padding: 12px;
}

#mlm-nahalot-repeater .description {
    margin-top: 3px;
}

#mlm-lifecycle-editor {
    max-width: 780px;
    padding: 18px;
}

#mlm-lifecycle-editor h5 {
    margin-bottom: 16px;
    color: #16364f;
    font-size: 16px;
}

#mlm-lifecycle-editor h6 {
    margin: 0 0 12px;
    color: #16364f;
    font-size: 14px;
    font-weight: 700;
}

#mlm-lifecycle-editor p {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
    margin: 0 0 14px;
}

#mlm-lifecycle-editor label {
    margin-top: 7px;
    color: #2c4e6a;
    font-weight: 600;
    line-height: 1.35;
}

#mlm-lifecycle-editor input,
#mlm-lifecycle-editor select,
#mlm-lifecycle-editor textarea {
    width: 100%;
    max-width: none;
    margin: 0;
}

#mlm-lifecycle-editor textarea {
    min-height: 88px;
    resize: vertical;
}

#mlm-lifecycle-editor .mlm-lifecycle-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #d7e0e8;
}

#mlm-lifecycle-repeater .mlm-repeater-item {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px 12px;
    padding: 12px;
}

#mlm-lifecycle-repeater .description {
    margin-top: 3px;
}

#mlm-household-editor {
    max-width: 760px;
    padding: 18px;
}

#mlm-household-editor h5 {
    margin-bottom: 16px;
    color: #16364f;
    font-size: 16px;
}

#mlm-household-editor p {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
    margin: 0 0 14px;
}

#mlm-household-editor label {
    margin-top: 7px;
    color: #2c4e6a;
    font-weight: 600;
    line-height: 1.35;
}

#mlm-household-editor input,
#mlm-household-editor textarea {
    width: 100%;
    max-width: none;
    margin: 0;
}

#mlm-household-editor textarea {
    min-height: 88px;
    resize: vertical;
}

#mlm-household-editor .mlm-household-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #d7e0e8;
}

#mlm-households-repeater .mlm-repeater-item {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px 12px;
    padding: 12px;
}

#mlm-households-repeater .description {
    margin-top: 3px;
}

.mlm-application-checklist {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 0;
    list-style: none;
}

.mlm-application-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.mlm-application-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 18px;
}

.mlm-application-checklist li.is-complete {
    color: #166534;
}

.mlm-application-checklist li.is-complete .mlm-application-check {
    border-color: #15803d;
    background: #16a34a;
}

@media (max-width: 760px) {
    .mlm-portal-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mlm-portal-tab {
        width: 100%;
        text-align: center;
    }

    #mlm-family-table thead {
        display: none;
    }

    #mlm-family-table,
    #mlm-family-table tbody,
    #mlm-family-table tr,
    #mlm-family-table td {
        display: block;
        width: 100%;
    }

    #mlm-family-table tr {
        border: 1px solid #d7e0e8;
        border-radius: 8px;
        margin: 0 0 10px;
        padding: 8px;
        background: #fff;
    }

    #mlm-family-table td {
        padding: 5px 6px;
    }

    #mlm-family-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
    }

    #mlm-nahalot-editor {
        padding: 14px;
    }

    #mlm-nahalot-editor p {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    #mlm-nahalot-editor label {
        margin-top: 0;
    }

    .mlm-nahalot-date-actions {
        grid-column: 1;
    }

    #mlm-nahalot-editor .mlm-nahalot-commemoration p,
    #mlm-lifecycle-editor .mlm-lifecycle-commemoration p {
        grid-template-columns: 1fr;
    }

    .mlm-commemoration-request-item {
        grid-template-columns: 1fr;
    }

    #mlm-nahalot-repeater .mlm-repeater-item {
        grid-template-columns: 1fr;
    }

    #mlm-lifecycle-editor {
        padding: 14px;
    }

    #mlm-lifecycle-editor p {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    #mlm-lifecycle-editor label {
        margin-top: 0;
    }

    #mlm-lifecycle-repeater .mlm-repeater-item {
        grid-template-columns: 1fr;
    }

    #mlm-household-editor {
        padding: 14px;
    }

    #mlm-household-editor p {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    #mlm-household-editor label {
        margin-top: 0;
    }

    #mlm-households-repeater .mlm-repeater-item {
        grid-template-columns: 1fr;
    }
}

.mlm-auth-divider {
    text-align: center;
    margin: 8px 0;
    color: #7c8a95;
    font-size: 12px;
}

.mlm-google-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.mlm-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 230px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}

.mlm-google-btn:hover {
    background: #f8f9fa;
    border-color: #d2d5d9;
}

.mlm-google-btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.mlm-google-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mlm-google-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mlm-google-btn-text {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .mlm-auth-line {
        grid-template-columns: 1fr;
    }

    .mlm-auth-line .button {
        width: 100%;
    }
}

.mlm-family-row .mlm-f-name {
    text-align: left;
}

.mlm-child-consent-card,.mlm-child-event-card{margin:14px 0;padding:14px;border:1px solid #d5dee6;border-radius:10px;background:#fff}.mlm-child-consent-card>h6{margin:0 0 10px;font-size:1.05rem}.mlm-child-event-card>summary{cursor:pointer;padding:4px}.mlm-child-event-card fieldset{margin:16px 0;padding:14px;border:1px solid #d5dee6;border-radius:8px}.mlm-child-event-card legend{padding:0 7px;font-weight:600}.mlm-child-event-card textarea,.mlm-child-event-card input[type=text],.mlm-child-event-card input[type=tel]{width:100%;box-sizing:border-box}.mlm-emergency-contact{display:grid;grid-template-columns:auto repeat(3,minmax(140px,1fr));gap:10px;align-items:end;margin:10px 0}.mlm-emergency-contact label{display:grid;gap:4px}@media(max-width:720px){.mlm-emergency-contact{grid-template-columns:1fr}}
