/* =========================================================
   Reuniones Hombres IEBJ — Form Styles
   ========================================================= */

.rh-iebj-wrap {
    --rh-blue:           #007AFF;
    --rh-blue-light:     #E8F1FF;
    --rh-gray-1:         #F2F2F7;
    --rh-gray-2:         #E5E5EA;
    --rh-gray-3:         #C7C7CC;
    --rh-gray-4:         #8E8E93;
    --rh-label:          #1C1C1E;
    --rh-sublabel:       #3A3A3C;
    --rh-card:           #FFFFFF;
    --rh-radius-sm:      10px;
    --rh-radius-md:      14px;
    --rh-radius-lg:      20px;
    --rh-shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --rh-shadow-md:      0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --rh-transition:     0.18s ease;

    /* Legacy aliases used by JS/picker */
    --rh-radius:         var(--rh-radius-md);
    --rh-color-bg:       #ffffff;
    --rh-color-surface:  #F2F2F7;
    --rh-color-border:   #E5E5EA;
    --rh-color-border-focus: #007AFF;
    --rh-color-text:     #1C1C1E;
    --rh-color-muted:    #8E8E93;
    --rh-color-error:    #ff3b30;
    --rh-color-primary:  #007AFF;
    --rh-color-primary-hover: #0071EB;
    --rh-color-required: #ff3b30;
    --rh-color-chip-bg:  #E8F1FF;
    --rh-color-chip-text:#007AFF;
    --rh-color-success-bg: #d1f5dc;
    --rh-color-success-text: #1a7f37;
    --rh-color-error-bg: #ffe5e4;
    --rh-color-error-text: #cc0007;
    --rh-shadow:         var(--rh-shadow-sm);

    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--rh-label);
    font-size: 15px;
    line-height: 1.5;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    box-sizing: border-box;
}

.rh-iebj-wrap *, .rh-iebj-wrap *::before, .rh-iebj-wrap *::after {
    box-sizing: inherit;
}

.rh-iebj-wrap {
    accent-color: var(--rh-blue);
}

.rh-iebj-wrap ::selection {
    background: rgba(0, 122, 255, .22);
    color: var(--rh-label);
}

.rh-iebj-wrap input[type="checkbox"],
.rh-iebj-wrap input[type="radio"],
.rh-iebj-wrap input[type="range"],
.rh-iebj-wrap progress {
    accent-color: var(--rh-blue);
}

/* =========================================================
   Cards (fieldsets)
   ========================================================= */

.rh-fieldset {
    background: var(--rh-card);
    border: none;
    border-radius: var(--rh-radius-lg);
    box-shadow: var(--rh-shadow-md);
    margin: 0 0 20px;
    padding: 0;
    overflow: visible;
}

/* screen-reader only legend for accessibility */
.rh-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.rh-card-header {
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--rh-gray-2);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--rh-radius-lg) var(--rh-radius-lg) 0 0;
    overflow: hidden;
}

.rh-sample-btn {
    flex-shrink: 0;
    border: 1px solid var(--rh-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--rh-blue);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    padding: 5px 12px;
    transition: background var(--rh-transition), color var(--rh-transition), box-shadow var(--rh-transition);
}

.rh-sample-btn:hover,
.rh-sample-btn:focus,
.rh-sample-btn:active {
    background: var(--rh-blue);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0,122,255,.12);
    outline: none;
}

.rh-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.rh-card-icon--blue   { background: var(--rh-blue-light); }
.rh-card-icon--green  { background: #E8F8F0; }
.rh-card-icon--orange { background: #FFF3E8; }
.rh-card-icon--purple { background: #F0EAFF; }

/* =========================================================
   Access gate
   ========================================================= */

.rh-access-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.rh-access-card {
    width: min(100%, 360px);
    background: var(--rh-card);
    border-radius: var(--rh-radius-lg);
    box-shadow: var(--rh-shadow-md);
    padding: 28px;
    text-align: center;
}

.rh-access-logo {
    display: block;
    width: min(180px, 70%);
    height: auto;
    margin: 0 auto 18px;
}

.rh-access-card h1 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--rh-label);
}

.rh-access-card p {
    margin: 0 0 18px;
    color: var(--rh-gray-4);
    font-size: 14px;
}

.rh-access-card .rh-label {
    display: block;
    text-align: left;
}

.rh-access-error {
    color: var(--rh-color-error-text) !important;
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    font-weight: 600;
}

.rh-access-password-row {
    display: flex;
    gap: 8px;
}

.rh-access-password-row .rh-input {
    min-width: 0;
}

.rh-access-password-toggle {
    flex-shrink: 0;
    border: 1px solid var(--rh-gray-3);
    border-radius: var(--rh-radius-sm);
    background: #fff;
    color: var(--rh-label);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    transition: border-color var(--rh-transition), background var(--rh-transition), color var(--rh-transition), box-shadow var(--rh-transition);
}

.rh-access-password-toggle:hover,
.rh-access-password-toggle:focus,
.rh-access-password-toggle:active {
    border-color: var(--rh-blue);
    background: var(--rh-blue-light);
    color: var(--rh-blue);
    box-shadow: 0 0 0 3px rgba(0,122,255,.12);
    outline: none;
}

.rh-access-submit {
    width: 100%;
    margin-top: 14px;
    border: 1px solid var(--rh-blue);
    border-radius: var(--rh-radius-sm);
    background: var(--rh-blue);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 16px;
    transition: background var(--rh-transition), box-shadow var(--rh-transition);
}

.rh-access-submit:hover,
.rh-access-submit:focus,
.rh-access-submit:active {
    background: #0071EB;
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
    outline: none;
}

.rh-card-header-text {}
.rh-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rh-label);
    margin: 0;
    line-height: 1.3;
}
.rh-card-subtitle {
    font-size: 13px;
    color: var(--rh-gray-4);
    margin: 2px 0 0;
}

.rh-card-body {
    padding: 20px 24px 24px;
}

/* =========================================================
   Grid
   ========================================================= */

.rh-grid {
    display: grid;
    gap: 16px;
}
.rh-grid--1 { grid-template-columns: 1fr; }
.rh-grid--2 { grid-template-columns: 1fr; }
.rh-grid--3 { grid-template-columns: 1fr; }

@media (min-width: 560px) {
    .rh-grid--2 { grid-template-columns: 1fr 1fr; }
    .rh-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.rh-col-2 { grid-column: 1 / -1; }

.rh-card-body > .rh-grid + .rh-grid {
    margin-top: 0;
}

/* =========================================================
   Fields
   ========================================================= */

.rh-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rh-field + .rh-field:not([class*="rh-grid"]) {
    margin-top: 0;
}

.rh-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--rh-sublabel);
    margin-bottom: 6px;
    letter-spacing: -.1px;
}

.rh-required {
    color: var(--rh-color-required);
    margin-left: 2px;
}

/* =========================================================
   Inputs
   ========================================================= */

.rh-input,
.rh-select,
.rh-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid transparent;
    border-radius: var(--rh-radius-sm);
    font-size: 15px;
    color: var(--rh-label);
    background: var(--rh-gray-1);
    transition: border-color var(--rh-transition), background var(--rh-transition), box-shadow var(--rh-transition);
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.rh-input:focus,
.rh-select:focus,
.rh-textarea:focus {
    background: #fff;
    border-color: var(--rh-blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}

.rh-input::placeholder,
.rh-textarea::placeholder {
    color: var(--rh-gray-3);
    font-size: 14px;
}

.rh-input.rh-invalid,
.rh-select.rh-invalid {
    border-color: var(--rh-color-error);
    background: #fff;
}

.rh-select {
    background: var(--rh-gray-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
    padding-right: 36px;
}

.rh-select:focus {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}

.rh-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.rh-error {
    font-size: 12px;
    color: var(--rh-color-error);
    min-height: 16px;
    display: block;
    margin-top: 4px;
}

/* =========================================================
   Counter input
   ========================================================= */

.rh-counter-wrap {
    display: flex;
    align-items: center;
    background: var(--rh-gray-1);
    border: 1.5px solid transparent;
    border-radius: var(--rh-radius-sm);
    overflow: hidden;
    transition: border-color var(--rh-transition), box-shadow var(--rh-transition);
}

.rh-counter-wrap:focus-within {
    background: #fff;
    border-color: var(--rh-blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}

.rh-counter-wrap .rh-input {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    flex: 1;
    padding: 11px 8px;
}

.rh-counter-wrap .rh-input:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.rh-counter-btn {
    background: none;
    border: none;
    width: 40px;
    font-size: 20px;
    color: var(--rh-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    flex-shrink: 0;
    transition: background var(--rh-transition);
    font-family: inherit;
}

.rh-counter-btn:hover { background: var(--rh-blue-light); }

/* =========================================================
   People picker
   ========================================================= */

.rh-picker {
    border: 1.5px solid transparent;
    border-radius: var(--rh-radius-sm);
    background: var(--rh-gray-1);
    transition: border-color var(--rh-transition), box-shadow var(--rh-transition);
    position: relative;
}

.rh-picker:focus-within {
    background: #fff;
    border-color: var(--rh-blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}

.rh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px 0;
    min-height: 0;
}

.rh-chips:empty { padding: 0; }

.rh-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--rh-color-chip-bg);
    color: var(--rh-color-chip-text);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.rh-chip__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    transition: opacity .1s;
}

.rh-chip__remove:hover { opacity: 1; }

.rh-picker__input-row {
    padding: 6px 10px;
}

.rh-picker .rh-input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 2px;
    font-size: 14px;
}

.rh-picker .rh-input:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* =========================================================
   Dropdown
   ========================================================= */

.rh-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rh-gray-2);
    border-radius: var(--rh-radius-sm);
    box-shadow: var(--rh-shadow-md);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.rh-dropdown.rh-open { display: block; }

.rh-dropdown li {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--rh-label);
    transition: background .1s;
}

.rh-dropdown li:hover,
.rh-dropdown li.rh-focused {
    background: var(--rh-gray-1);
}

.rh-dropdown li.rh-add-manual {
    color: var(--rh-blue);
    font-style: italic;
    border-top: 1px solid var(--rh-gray-2);
    margin-top: 4px;
    padding-top: 10px;
}

/* =========================================================
   Actions & Button
   ========================================================= */

.rh-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.rh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--rh-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--rh-transition), transform var(--rh-transition), box-shadow var(--rh-transition);
    font-family: inherit;
}

.rh-btn--primary {
    width: 100%;
    justify-content: center;
    background: var(--rh-blue);
    color: #fff;
    padding: 16px;
    border-radius: var(--rh-radius-md);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.2px;
    box-shadow: 0 2px 12px rgba(0,122,255,.35);
}

.rh-btn--primary:hover {
    background: #0071EB;
    box-shadow: 0 4px 20px rgba(0,122,255,.4);
}

.rh-btn--primary:active {
    transform: scale(.98);
}

.rh-btn--primary:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.rh-btn__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rh-spin .65s linear infinite;
}

.rh-btn.rh-loading .rh-btn__spinner { display: block; }
.rh-btn.rh-loading .rh-btn__label  { opacity: .7; }

@keyframes rh-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   Toast
   ========================================================= */

.rh-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 18px;
    border-radius: var(--rh-radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--rh-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    z-index: 99999;
    max-width: 320px;
}

.rh-toast.rh-toast--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rh-toast--success {
    background: var(--rh-color-success-bg);
    color: var(--rh-color-success-text);
    border: 1px solid rgba(52,199,89,.3);
}

.rh-toast--error {
    background: var(--rh-color-error-bg);
    color: var(--rh-color-error-text);
    border: 1px solid rgba(255,59,48,.3);
}

/* =========================================================
   Tabs
   ========================================================= */

.rh-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--rh-gray-2);
    margin-bottom: 20px;
}

/* Scoped to .rh-iebj-wrap to override any WordPress theme button styles */
.rh-iebj-wrap .rh-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--rh-gray-4);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color var(--rh-transition), border-color var(--rh-transition);
    box-shadow: none;
    text-decoration: none;
}

.rh-iebj-wrap .rh-tab-btn:hover {
    color: var(--rh-label);
    background: transparent;
    box-shadow: none;
}

.rh-iebj-wrap .rh-tab-btn--active {
    color: var(--rh-blue);
    border-bottom-color: var(--rh-blue);
    background: transparent;
    box-shadow: none;
}

.rh-tab-panel {
    display: none;
}

.rh-tab-panel--active {
    display: block;
}

/* =========================================================
   People Directory
   ========================================================= */

.rh-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .rh-people-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

.rh-person-card {
    background: var(--rh-card);
    border: 1px solid var(--rh-gray-2);
    border-top: 2px solid transparent;
    border-radius: var(--rh-radius-md);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.rh-person-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.11), 0 2px 6px rgba(0,0,0,.07);
    transform: translateY(-3px);
    border-top-color: var(--rh-blue);
}

.rh-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    outline: 2px solid rgba(0, 122, 255, .2);
    outline-offset: 2px;
}

.rh-avatar-initials {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
    outline: 2px solid rgba(0, 122, 255, .2);
    outline-offset: 2px;
}

.rh-person-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--rh-label);
    line-height: 1.3;
    word-break: break-word;
    margin-top: 2px;
}

.rh-person-birthday {
    font-size: 12px;
    color: var(--rh-gray-4);
    display: flex;
    align-items: center;
    gap: 3px;
}

.rh-person-birthday::before {
    content: "\1F382";
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

/* =========================================================
   Loader
   ========================================================= */

.rh-loader {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.rh-loader--hidden {
    display: none;
}

.rh-loader__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rh-gray-2);
    border-top-color: var(--rh-blue);
    border-radius: 50%;
    animation: rh-spin .7s linear infinite;
    display: block;
}

/* =========================================================
   Checkbox grid (Temas tratados)
   ========================================================= */

.rh-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
    padding: 2px 0;
}

.rh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    cursor: pointer;
    color: var(--rh-label);
}

.rh-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--rh-blue);
    cursor: pointer;
}

/* =========================================================
   Divider
   ========================================================= */

.rh-divider {
    height: 1px;
    background: var(--rh-gray-2);
    margin: 16px 0;
}

/* =========================================================
   Año tab
   ========================================================= */

.rh-ano-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rh-ano-year {
    font-size: 22px;
    font-weight: 700;
    color: var(--rh-label);
    letter-spacing: -.5px;
    min-width: 60px;
    text-align: center;
}

.rh-ano-nav {
    background: var(--rh-gray-1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: var(--rh-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rh-transition);
    font-family: inherit;
    line-height: 1;
}

.rh-ano-nav:hover { background: var(--rh-blue-light); }

.rh-ano-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rh-stat-card {
    background: var(--rh-gray-1);
    border-radius: var(--rh-radius-sm);
    padding: 14px 16px;
    text-align: center;
}

.rh-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--rh-blue);
    letter-spacing: -.5px;
    line-height: 1;
}

.rh-stat-label {
    font-size: 12px;
    color: var(--rh-gray-4);
    margin-top: 4px;
    font-weight: 500;
}

.rh-ano-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rh-meeting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--rh-gray-1);
    border-radius: var(--rh-radius-sm);
    transition: background var(--rh-transition);
    cursor: pointer;
}

.rh-meeting-row:hover { background: var(--rh-blue-light); }

.rh-meeting-date {
    background: var(--rh-blue);
    color: #fff;
    border-radius: 8px;
    min-width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 4px 6px;
}

.rh-meeting-date-day {
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.rh-meeting-info {
    flex: 1;
    min-width: 0;
}

.rh-meeting-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rh-label);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-meeting-meta {
    font-size: 12px;
    color: var(--rh-gray-4);
    margin-top: 2px;
}

.rh-meeting-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rh-badge--done     { background: #E8F8F0; color: #1a7f37; }
.rh-badge--progress { background: #FFF3E8; color: #b45309; }
.rh-badge--pending  { background: var(--rh-gray-2); color: var(--rh-gray-4); }

.rh-ano-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--rh-gray-4);
    font-size: 14px;
}

/* =========================================================
   Meeting detail modal (bottom sheet)
   ========================================================= */

.rh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.rh-modal-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.rh-modal-sheet {
    background: var(--rh-card, #fff);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(24px);
    transition: transform .3s ease;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.rh-modal-overlay--visible .rh-modal-sheet {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .rh-modal-overlay { align-items: center; }
    .rh-modal-sheet {
        border-radius: 20px;
        max-width: 560px;
        max-height: 80vh;
    }
}

.rh-modal-drag-handle {
    width: 36px;
    height: 4px;
    background: var(--rh-gray-2, #E5E5EA);
    border-radius: 2px;
    margin: 12px auto 0;
}

.rh-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rh-gray-2, #E5E5EA);
}

.rh-modal-header-text {
    flex: 1;
    min-width: 0;
}

.rh-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rh-label, #1C1C1E);
    margin: 0;
    line-height: 1.3;
}

.rh-modal-meta {
    font-size: 13px;
    color: var(--rh-gray-4, #8E8E93);
    margin: 3px 0 0;
}

.rh-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rh-modal-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--rh-gray-4, #8E8E93);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}

.rh-modal-section-text {
    font-size: 14px;
    color: var(--rh-label, #1C1C1E);
    line-height: 1.65;
    white-space: pre-wrap;
    margin: 0;
}

.rh-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rh-modal-tag {
    font-size: 12px;
    font-weight: 500;
    background: var(--rh-blue-light, #E8F1FF);
    color: var(--rh-blue, #007AFF);
    padding: 4px 10px;
    border-radius: 20px;
}

.rh-modal-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--rh-label, #1C1C1E);
}

.rh-modal-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--rh-gray-2, #E5E5EA);
}

/* =========================================================
   File upload
   ========================================================= */

.rh-upload-zone {
    position: relative;
    border: 2px dashed var(--rh-gray-3);
    border-radius: var(--rh-radius-sm);
    background: var(--rh-gray-1);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--rh-transition), background var(--rh-transition);
}

.rh-upload-zone:hover,
.rh-upload-zone--over {
    border-color: var(--rh-blue);
    background: var(--rh-blue-light);
}

.rh-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.rh-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.rh-upload-icon {
    font-size: 28px;
    line-height: 1;
}

.rh-upload-text {
    font-size: 14px;
    color: var(--rh-gray-4);
}

.rh-upload-link {
    color: var(--rh-blue);
    font-weight: 500;
    text-decoration: underline;
}

.rh-file-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rh-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rh-gray-1);
    border-radius: var(--rh-radius-sm);
    padding: 8px 12px;
}

.rh-file-icon {
    font-size: 16px;
    flex-shrink: 0;
}

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

.rh-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--rh-label);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-file-size {
    font-size: 12px;
    color: var(--rh-gray-4);
}

.rh-file-remove {
    background: none;
    border: none;
    color: var(--rh-gray-4);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color var(--rh-transition), background var(--rh-transition);
}

.rh-file-remove:hover {
    color: var(--rh-color-error);
    background: var(--rh-color-error-bg);
}

/* =========================================================
   Asistencia grid layout
   ========================================================= */

.rh-asistencia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 560px) {
    .rh-asistencia-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rh-asistencia-hablo      { grid-column: 1; grid-row: 1; }
    .rh-asistencia-miembros   { grid-column: 2; grid-row: 1; }
    .rh-asistencia-asistentes { grid-column: 1; grid-row: 2; }
}

/* =========================================================
   Attendance collapsed checklist (Miembros presentes)
   ========================================================= */

.rh-attend-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rh-attend-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rh-attend-action-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--rh-blue);
    background: transparent;
    color: var(--rh-blue);
    cursor: pointer;
    transition: background var(--rh-transition), color var(--rh-transition);
    line-height: 1.5;
    font-family: inherit;
}
.rh-attend-action-btn:hover {
    background: var(--rh-blue);
    color: #fff;
}

.rh-attend-count {
    flex: 1;
    min-width: 0;
    color: var(--rh-gray-4);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rh-attend-toggle {
    flex-shrink: 0;
    border: 1px solid var(--rh-gray-3);
    background: #fff;
    color: var(--rh-label);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 4px 10px;
    transition: border-color var(--rh-transition), background var(--rh-transition), color var(--rh-transition);
}
.rh-attend-toggle:hover {
    border-color: var(--rh-blue);
    color: var(--rh-blue);
    background: var(--rh-blue-light);
}
.rh-attend-toggle:focus,
.rh-attend-toggle:focus-visible,
.rh-attend-toggle:active {
    border-color: var(--rh-blue);
    background: var(--rh-blue-light);
    color: var(--rh-blue);
    box-shadow: 0 0 0 3px rgba(0,122,255,.12);
    outline: none;
}

.rh-attend-loading {
    font-size: 13px;
    color: var(--rh-gray-4);
    margin: 0;
    padding: 4px 0;
}

.rh-attend-panel {
    border: 1px solid var(--rh-gray-2);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.rh-attend-filter {
    min-height: 34px;
    margin-bottom: 8px;
    font-size: 13px;
}

.rh-attend-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

@media (min-width: 560px) {
    .rh-attend-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rh-attend-option {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--rh-label);
    cursor: pointer;
    transition: background var(--rh-transition), border-color var(--rh-transition), color var(--rh-transition);
    user-select: none;
    line-height: 1.3;
    font-family: inherit;
}
.rh-attend-option:hover {
    background: var(--rh-gray-1);
}
.rh-attend-option input {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--rh-blue);
}
.rh-attend-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rh-attend-option--selected {
    background: var(--rh-blue-light);
    border-color: #cfe1ff;
    color: var(--rh-blue);
}

.rh-attend-empty {
    grid-column: 1 / -1;
    color: var(--rh-gray-4);
    font-size: 13px;
    margin: 0;
    padding: 4px 2px;
}

/* =========================================================
   Asistentes category groups
   ========================================================= */

.rh-asist-cat {
    margin-bottom: 10px;
}
.rh-asist-cat:last-child {
    margin-bottom: 0;
}
.rh-asist-cat-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rh-gray-4);
    margin-bottom: 6px;
}
