.team-problem-page {
    max-width: 900px;
    min-height: 48vh;
    padding-top: 36px;
    padding-bottom: 80px;
}

.team-problem-search {
    margin: 0 auto 28px;
    max-width: 760px;
}

.team-problem-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.team-problem-search-row {
    display: flex;
    gap: 12px;
}

.team-problem-search-row .form-control {
    min-width: 0;
}

.team-problem-result {
    margin: 20px 0;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.team-problem-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.team-problem-label,
.team-problem-id {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.team-problem-result-heading h2 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.team-problem-id {
    flex: 0 1 auto;
    overflow-wrap: anywhere;
    text-align: right;
}

.team-problem-statement {
    padding-top: 18px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.team-problem-statement h3 {
    margin: 0 0 10px;
}

.team-problem-empty {
    padding: 22px 0;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 600px) {
    .team-problem-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .team-problem-search-row .btn {
        justify-content: center;
    }

    .team-problem-result {
        padding: 18px;
    }

    .team-problem-result-heading {
        flex-direction: column;
    }

    .team-problem-id {
        text-align: left;
    }
}

