.events {
    display: grid;
    gap: 10px;
}

.event-card {
    padding: 12px 14px;
}

.event-card h3 {
    margin: 6px 0 4px;
}

.event-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.event-deadline {
    white-space: nowrap;
    font-weight: bold;
}

.event-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.event-info > div {
    border: 1px solid #edf1f7;
    border-radius: 8px;
    padding: 10px;
    background: #fafcff;
}

.event-info span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.sub-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fafcff;
}

.sub-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.result-block {
    background: #f2fff2;
}

.final-participants-list {
    display: grid;
    gap: 8px;
}

.participant-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr auto;
    gap: 8px;
    align-items: center;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::marker {
    content: '';
}

.event-summary {
    cursor: pointer;
}

.event-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.event-title-row .event-title {
    font-size: 17px;
    font-weight: 400;
}

.event-time-inline {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 700;
    color: #2b3b55;
}

.event-card strong {
    font-weight: 400;
}

.event-info-wide {
    grid-column: span 2;
}

.event-multiline-value {
    white-space: normal;
    line-height: 1.45;
}

.event-summary .muted.small {
    margin-top: 4px;
}

.compact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.event-info.compact-grid > div {
    padding: 8px 10px;
}

.card-actions {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .event-info,
    .participant-row {
        grid-template-columns: 1fr;
    }

    .event-top {
        flex-direction: column;
        align-items: stretch;
    }

    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-info-wide {
        grid-column: span 1;
    }

    .event-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-time-inline {
        margin-left: 0;
    }
}