.report-attendance-page {
    width: 100%;
}

.report-attendance-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.report-attendance-panel {
    min-height: 28rem;
    background: #fff;
}

.report-attendance-session-list {
    display: grid;
    gap: 0.55rem;
    max-height: min(68vh, 40rem);
    overflow: auto;
    padding: 0.85rem;
}

.report-attendance-session-item {
    display: grid;
    gap: 0.4rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(214, 212, 216, 0.86);
    border-radius: 1rem;
    background: #fff;
    color: #17131c;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.report-attendance-session-item strong {
    overflow: hidden;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-attendance-session-item > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #646173;
    font-size: 0.84rem;
    font-weight: 650;
}

.report-attendance-session-item .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 1rem;
}

.report-attendance-session-item:hover,
.report-attendance-session-item:focus-visible,
.report-attendance-session-item.is-selected {
    border-color: #f3c4d4;
    background: #fff5f8;
    outline: none;
}

.report-attendance-participants {
    min-height: 28rem;
}

.report-attendance-participants-shell {
    display: flex;
    flex-direction: column;
    min-height: 28rem;
}

.report-attendance-participants-header,
.report-attendance-participants-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.report-attendance-participants-header {
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
}

.report-attendance-participants-header h3 {
    margin: 0.15rem 0 0;
    color: #17131c;
    font-family: "Montserrat", var(--ecs-font-sans);
    font-size: 1.1rem;
    font-weight: 700;
}

.report-attendance-participants-meta {
    margin: 0.25rem 0 0;
    color: #646173;
    font-size: 0.84rem;
    font-weight: 650;
}

.report-attendance-export-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.report-attendance-close-btn {
    min-height: 2.5rem;
    padding: 0 0.95rem;
    font-size: 0.84rem;
}

.report-attendance-table-wrap {
    flex: 1 1 auto;
    overflow: auto;
}

.report-attendance-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: separate;
    border-spacing: 0;
}

.report-attendance-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
    background: #f7f7f8;
    color: #6f6b77;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-attendance-table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.5);
    color: #2d2932;
    font-size: 0.88rem;
    font-weight: 650;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.report-attendance-table .is-num {
    width: 4rem;
    text-align: center;
    white-space: nowrap;
}

.report-attendance-person {
    display: grid;
    gap: 0.15rem;
}

.report-attendance-person strong {
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
}

.report-attendance-person span {
    color: #646173;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-attendance-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0 0.55rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-attendance-table tbody tr:hover {
    background: #fff5f8;
}

.report-attendance-empty,
.report-attendance-loading,
.report-attendance-error {
    display: grid;
    place-items: center;
    gap: 0.55rem;
    min-height: 18rem;
    padding: 2rem 1.25rem;
    color: #646173;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: center;
}

.report-attendance-empty.is-large {
    min-height: 28rem;
}

.report-attendance-empty .material-symbols-outlined,
.report-attendance-error .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 2.5rem;
}

.report-attendance-empty strong {
    color: #17131c;
    font-size: 1.05rem;
    font-weight: 800;
}

.report-attendance-empty p,
.report-attendance-loading p,
.report-attendance-error p {
    max-width: 28rem;
    margin: 0;
    line-height: 1.5;
}

.report-attendance-error {
    color: #b91c1c;
}

@media (max-width: 991.98px) {
    .report-attendance-participants-header {
        align-items: stretch;
        flex-direction: column;
    }

    .report-attendance-export-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

.reportes-page {
    width: 100%;
    padding: 1.75rem 0 2.5rem;
}

.reportes-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.35rem;
    background: #fff;
}

.reportes-hero::after {
    position: absolute;
    top: -3.5rem;
    right: -2.5rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(206, 50, 105, 0.12);
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.reportes-hero-icon,
.reportes-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.reportes-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.75rem;
}

.reportes-hero h1 {
    margin: 0;
    color: #17131c;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.reportes-hero p {
    max-width: 46rem;
    margin: 0.45rem 0 0;
    color: #77717f;
    font-size: 0.92rem;
    font-weight: 650;
}

.reportes-hero-count,
.reportes-category-kicker {
    color: var(--ecs-color-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reportes-hero-count {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    white-space: nowrap;
}

.reportes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.reportes-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    height: 100%;
}

.reportes-column > .reportes-category {
    flex: 1 1 auto;
}

.reportes-category {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.2rem;
    background: #fff;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.reportes-category:hover {
    border-color: #f3c4d4;
    background: #fffdfd;
}

.reportes-category-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.3rem;
}

.reportes-category h2 {
    margin: 0.18rem 0 0;
    color: #17131c;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.reportes-category p {
    margin: 0.35rem 0 0;
    color: #77717f;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.reportes-category-list {
    display: grid;
    gap: 0.45rem;
}

.reportes-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(214, 212, 216, 0.72);
    border-radius: 0.9rem;
    background: #fcfbfc;
    color: #2d2932;
    font-size: 0.87rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.reportes-link:hover,
.reportes-link:focus-visible {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.reportes-link-icon {
    color: var(--ecs-color-primary);
    font-size: 1.2rem;
}

.reportes-link-arrow {
    color: #a7a2ad;
    font-size: 1.1rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.reportes-link:hover .reportes-link-arrow,
.reportes-link:focus-visible .reportes-link-arrow {
    color: var(--ecs-color-primary);
    transform: translateX(0.16rem);
}

.reportes-link.is-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    background: #f7f7f8;
    color: #8a8492;
    pointer-events: none;
}

.reportes-link.is-disabled .reportes-link-icon,
.reportes-link.is-disabled .reportes-link-arrow {
    color: #b3aeb8;
}

.reportes-link-pending {
    display: inline-block;
    margin-left: 0.4rem;
    color: #9a6b7d;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#ecsFormModal .modal-content:has(.report-filters-modal),
#ecsFormModal .modal-content:has(.report-filters-loading) {
    overflow: hidden;
    border-radius: 1.35rem;
    background: #fff;
}

.report-filters-modal {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}

.report-filters-header,
.report-filters-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
}

.report-filters-header {
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
}

.report-filters-footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(214, 212, 216, 0.72);
}

.report-filters-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ecs-color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-filters-header h2 {
    margin: 0;
    color: #17131c;
    font-family: "Montserrat", var(--ecs-font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.report-filters-body {
    max-height: min(70vh, 36rem);
    overflow: auto;
    padding: 1.15rem 1.35rem;
}

.report-filters-select-menu,
body > .report-filters-select-menu {
    display: block;
    box-sizing: border-box;
    padding: 0.35rem;
    overflow: hidden !important;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem !important;
    background: #fff !important;
    background-clip: padding-box;
    box-shadow: 0 12px 28px rgba(23, 19, 28, 0.12);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.report-filters-select-menu-scroll {
    display: block;
    max-height: inherit;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0.75rem;
}

.report-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.report-filters-full {
    grid-column: 1 / -1;
}

.report-filters-lookup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding-top: 1.05rem;
}

.report-filters-lookup .ecs-control {
    min-width: 0;
    padding-top: 0;
}

.report-filters-lookup .ecs-field-action {
    min-height: 2.5rem;
    padding: 0 0.85rem;
}

.report-filters-dates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.report-filters-dates-header > span {
    color: #17131c;
    font-size: 0.86rem;
    font-weight: 800;
}

.report-filters-shortcuts {
    position: relative;
}

.report-filters-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0 0.9rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff;
    color: var(--ecs-color-primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.report-filters-shortcut-btn .material-symbols-outlined {
    font-size: 1.05rem;
}

.report-filters-shortcut-btn:hover,
.report-filters-shortcut-btn:focus-visible,
.report-filters-shortcut-btn.is-open {
    background: #fff5f8;
    outline: none;
}

.report-filters-shortcut-menu {
    position: fixed;
    z-index: 1300;
    display: grid;
    min-width: 11rem;
    max-height: 15rem;
    overflow: auto;
    padding: 0.35rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 19, 28, 0.12);
}

.report-filters-shortcut-menu button {
    display: block;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #17131c;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.report-filters-shortcut-menu button:hover,
.report-filters-shortcut-menu button:focus-visible {
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.report-filters-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.report-filters-loading {
    display: grid;
    place-items: center;
    gap: 0.85rem;
    min-height: 12rem;
    padding: 2rem 1.25rem;
    color: #646173;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: center;
}

.report-filters-spinner {
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid rgba(206, 50, 105, 0.18);
    border-top-color: var(--ecs-color-primary);
    border-radius: 999px;
    animation: report-filters-spin 0.7s linear infinite;
}

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

.report-filters-popup-back {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
    background: #fff;
}

@media (max-width: 767.98px) {
    .report-filters-grid,
    .report-filters-date-grid {
        grid-template-columns: 1fr;
    }

    .report-filters-header,
    .report-filters-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .report-filters-footer .ecs-edit-primary-action,
    .report-filters-footer .ecs-edit-secondary-action {
        width: 100%;
    }
}

.log-history-payload {
    display: none;
}

.log-history-date {
    display: grid;
    gap: 0.15rem;
}

.log-history-date strong {
    color: #17131c;
    font-weight: 800;
}

.log-history-date span {
    color: #77717f;
    font-size: 0.82rem;
    font-weight: 650;
}

.log-history-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.log-history-level.is-info {
    border-color: rgba(59, 130, 246, 0.24);
    background: #eff6ff;
    color: #1d4ed8;
}

.log-history-level.is-warning {
    border-color: rgba(217, 119, 6, 0.28);
    background: #fff8f1;
    color: #b45309;
}

.log-history-level.is-error {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
}

#logDetailModal .modal-dialog {
    max-width: min(48rem, calc(100vw - 2rem));
}

#logDetailModal .modal-content,
.log-detail-modal {
    overflow: hidden;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(46, 39, 55, 0.16);
}

.log-detail-modal-header,
.log-detail-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
}

.log-detail-modal-header {
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
}

.log-detail-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid rgba(214, 212, 216, 0.72);
}

.log-detail-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ecs-color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.log-detail-modal-header h2 {
    margin: 0;
    color: #17131c;
    font-family: "Montserrat", var(--ecs-font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.log-detail-modal-body {
    max-height: min(70vh, 34rem);
    overflow: auto;
    padding: 1.15rem 1.35rem;
}

.log-detail-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    margin-bottom: 0.95rem;
    color: #646173;
    font-size: 0.9rem;
    font-weight: 650;
}

.log-detail-summary strong {
    color: var(--ecs-color-primary);
    font-weight: 800;
}

.log-detail-summary em {
    font-style: normal;
    color: #17131c;
    font-weight: 800;
}

.log-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(214, 212, 216, 0.86);
    border-radius: 1rem;
    background: #fff;
}

.log-detail-table {
    width: 100%;
    min-width: 28rem;
    border-collapse: separate;
    border-spacing: 0;
}

.log-detail-table thead th {
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
    background: var(--ecs-color-secondary);
    color: #6f6b77;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.log-detail-table tbody td {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.55);
    color: #17131c;
    font-size: 0.88rem;
    font-weight: 650;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.log-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.log-detail-table .is-field {
    color: #17131c;
    font-weight: 800;
}

.log-detail-table .is-old {
    color: #b91c1c;
}

.log-detail-table .is-new {
    color: #1d4ed8;
}

.log-detail-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #f3c4d4;
    border-radius: 1rem;
    background: #fff5f8;
}

.log-detail-message .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 1.5rem;
}

.log-detail-message strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.log-detail-message p {
    margin: 0;
    color: #646173;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.5;
}

.log-detail-raw {
    margin: 0;
    padding: 1rem;
    overflow: auto;
    border: 1px solid rgba(214, 212, 216, 0.86);
    border-radius: 1rem;
    background: var(--ecs-color-secondary);
    color: #403b47;
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 1199.98px) {
    .reportes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .reportes-page {
        padding-top: 1.5rem;
    }

    .reportes-hero {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.1rem;
    }

    .reportes-hero-count {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .reportes-grid {
        grid-template-columns: 1fr;
    }

    .reportes-column {
        height: auto;
    }

    .reportes-column > .reportes-category {
        flex: none;
    }
}

.report-empty-page,
.report-edit-page,
.report-html-page {
    width: min(56rem, calc(100% - 2rem));
    margin: 1.5rem auto 2rem;
}

.report-empty-card,
.report-edit-shell,
.report-html-card {
    padding: 1.35rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 19, 28, 0.04);
}

.report-empty-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-empty-kicker {
    display: block;
    color: var(--ecs-color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-empty-header h1 {
    margin: 0.2rem 0 0;
    color: #17131c;
    font-size: 1.35rem;
    font-weight: 800;
}

.report-empty-subtitles p {
    margin: 0.25rem 0 0;
    color: #77717f;
    font-size: 0.86rem;
    font-weight: 600;
}

.report-empty-meta {
    color: #8b8794;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.report-empty-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(206, 50, 105, 0.2);
    border-radius: 0.95rem;
    background: #fff5f8;
    color: #9d2d55;
}

.report-empty-alert .material-symbols-outlined {
    flex-shrink: 0;
}

.report-empty-alert p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.report-edit-shell {
    padding: 0;
    overflow: hidden;
}

/* Participation / tests preview */
.participacion-detail-shell {
    max-height: min(70vh, 48rem);
    overflow: auto;
}

.participacion-participant-list {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem;
}

.participacion-participant-card {
    border: 1px solid rgba(214, 212, 216, 0.9);
    border-radius: 1rem;
    background: #faf9fb;
    overflow: hidden;
}

/* Accordion inside participant card needs inset so rounded corners read cleanly. */
.participacion-participant-card > .participacion-attempt-card,
.participacion-participant-card > .participacion-attempts {
    margin: 0.85rem 1rem 1rem;
}

.participacion-participant-card > .participacion-attempts {
    padding: 0;
    gap: 0.65rem;
}

.participacion-participant-card > .participacion-empty-attempts {
    margin: 0.75rem 1rem 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(214, 212, 216, 0.95);
    border-radius: 0.75rem;
    background: #fff;
}

.participacion-participant-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.75);
    background: #fff;
}

.participacion-participant-head strong {
    display: block;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.participacion-participant-head span {
    color: #6f6b77;
    font-size: 0.82rem;
    font-weight: 600;
}

.participacion-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.participacion-empty-attempts {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #77717f;
    font-size: 0.86rem;
    font-weight: 600;
}

.participacion-attempts {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1rem;
}

.participacion-attempt-card {
    border: 1px solid rgba(214, 212, 216, 0.85);
    border-radius: 0.85rem;
    background: #fff;
    overflow: hidden;
}

.evaluacion-accordion-card {
    border-color: rgba(206, 50, 105, 0.28);
    box-shadow: none;
}

.evaluacion-accordion-card .participacion-attempt-toggle {
    border-radius: 0.85rem;
    background: #fff5f8;
}

.evaluacion-accordion-card .participacion-attempt-toggle[aria-expanded="true"] {
    border-radius: 0.85rem 0.85rem 0 0;
    border-bottom: 1px solid rgba(206, 50, 105, 0.16);
}

.participacion-attempt-card.is-pre {
    border-color: rgba(4, 120, 87, 0.25);
}

.participacion-attempt-card.is-post {
    border-color: rgba(206, 50, 105, 0.25);
}

.participacion-attempt-head,
.participacion-attempt-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border: 0;
    background: #f7f6f8;
    color: #3f3b47;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.participacion-attempt-toggle {
    justify-content: space-between;
    cursor: pointer;
}

.participacion-attempt-toggle:hover,
.participacion-attempt-toggle:focus-visible {
    background: #fff5f8;
    outline: none;
}

.participacion-attempt-toggle-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    min-width: 0;
}

.participacion-attempt-head strong,
.participacion-attempt-toggle strong {
    color: var(--ecs-color-primary, #CE3269);
    font-weight: 800;
}

.participacion-attempt-card.is-pre .participacion-attempt-head strong,
.participacion-attempt-card.is-pre .participacion-attempt-toggle strong {
    color: #047857;
}

.participacion-attempt-chevron {
    flex-shrink: 0;
    color: #8a8492;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.participacion-attempt-toggle[aria-expanded="true"] .participacion-attempt-chevron {
    transform: rotate(180deg);
    color: var(--ecs-color-primary, #CE3269);
}

.participacion-attempt-body {
    border-top: 1px solid rgba(214, 212, 216, 0.8);
}

.participacion-attempt-body[hidden] {
    display: none !important;
}

.participacion-answers {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem 0.9rem;
}

.participacion-answer-row {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(214, 212, 216, 0.8);
    border-radius: 0.65rem;
    background: #faf9fb;
}

.participacion-answer-row strong {
    color: #17131c;
    font-size: 0.86rem;
    font-weight: 700;
}

.participacion-answer-row span,
.participacion-answer-row em {
    color: #6f6b77;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 600;
}

.participacion-answer-row.is-correct {
    border-color: rgba(4, 120, 87, 0.28);
    background: #f2fbf6;
}

.participacion-answer-row.is-correct em {
    color: #047857;
}

.participacion-answer-row.is-wrong {
    border-color: rgba(185, 28, 28, 0.22);
    background: #fef2f2;
}

.participacion-answer-row.is-wrong em {
    color: #b91c1c;
}

@media (max-width: 767.98px) {
    .participacion-participant-head {
        flex-direction: column;
    }
}

.evaluacion-stats-card {
    margin-top: 1rem;
}

.evaluacion-stats-row {
    margin-bottom: 0.75rem;
}

.evaluacion-stats-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
