div#testSystemBanner {

	display: none!important;
}

.csd-overview-title {
    margin-bottom: 20px;
}

.csd-overview-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
}

.csd-overview-list {
    display: grid;
    gap: 14px;
}

.csd-overview-card {
    border: 1px solid rgba(102, 126, 234, 0.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    padding: 16px;
}

.csd-overview-card-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #1f2937;
}

.csd-overview-card-date {
    margin: 0 0 14px 0;
    color: #4b5563;
    font-weight: 600;
}

.csd-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.csd-overview-trigger {
    margin-bottom: 16px;
}

.contact-content .btn-primary {
    width: auto;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-content .btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.contact-content .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.csd-form-actions #csdSubmitBtn {
    margin-left: auto;
}

.csd-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 14px;
}

.csd-info-btn {
    order: 1;
}

.csd-participate-btn {
    order: 2;
}

.csd-participant-count-btn {
    order: 3;
}

.csd-card-body {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.csd-participate-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.csd-participate-btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.csd-participate-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.csd-participate-btn.is-active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.csd-participate-btn.is-active:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.csd-participate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.csd-participant-count-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.12);
}

.csd-participant-count-btn::before {
    content: '👥';
    font-size: 13px;
    line-height: 1;
}

.csd-participant-count-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.22);
    transform: translateY(-1px);
}

.csd-participants-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.csd-participants-overlay.active {
    display: flex;
}

.csd-participants-box {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.csd-participants-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
    line-height: 1;
}

.csd-participants-close:hover {
    color: var(--text-primary);
}

.csd-participants-box h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--text-primary);
    padding-right: 28px;
}

.csd-participants-loading {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
}

.csd-participants-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-medium);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: csdSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes csdSpin {
    to { transform: rotate(360deg); }
}

.csd-participants-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csd-participants-list-item {
    border-bottom: 1px solid var(--border-medium);
}

.csd-participants-list-item:last-child {
    border-bottom: none;
}

.csd-participant-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.csd-participant-link:hover {
    background: var(--bg-secondary);
    color: var(--secondary-color);
    text-decoration: none;
}

.csd-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-medium);
    background: var(--bg-secondary);
}

.csd-participant-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csd-participants-empty,
.csd-participants-error {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.csd-participants-error {
    color: #b23c3c;
}

.csd-overview-participant-count,
.csd-entry-participant-count {
    margin: 0 0 14px 0;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
}

.csd-entry-participant-count {
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .csd-list-container .csd-card {
        flex-direction: column;
        align-items: stretch;
    }

    .csd-list-container .csd-card-body {
        width: 100%;
    }

    .csd-list-container .csd-card-actions {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 8px 12px;
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .csd-list-container .csd-participate-btn {
        grid-column: 1;
        grid-row: 1;
        order: unset;
        justify-self: start;
    }

    .csd-list-container .csd-info-btn {
        grid-column: 2;
        grid-row: 1;
        order: unset;
        justify-self: end;
        margin-left: 0;
    }

    .csd-list-container .csd-participant-count-btn {
        grid-column: 2;
        grid-row: 2;
        order: unset;
        justify-self: end;
    }
}