.problem-detail-container {
    width: auto;
    max-width: 1100px;
    padding: 24px 20px;
}

.problem-detail-container button:not(:disabled) {
    cursor: pointer;
}

.problem-detail-container .problem-header,
.problem-detail-container .problem-body {
    max-width: 900px;
    margin-inline: auto;
}

.problem-detail-container .problem-center {
    margin: 16px 0 18px;
    text-align: center;
}

.problem-detail-container .problem-center code {
    margin: 0 auto;
}

.problem-detail-container .sample-box {
    min-height: 0;
    margin: 0 0 16px;
    padding: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: normal;
    white-space: pre-wrap;
    overflow-x: auto;
}

.problem-detail-container .submit-card {
    max-width: none;
    margin-inline: 0;
}

.problem-detail-container .submit-card .form-row {
    align-items: center;
    gap: 10px;
}

.problem-detail-container .submit-card .form-row label {
    width: auto;
    min-width: 90px;
    padding-top: 0;
}

.problem-detail-container .submit-card .language-select-fallback,
.problem-detail-container .submit-card .language-picker {
    width: 220px;
    min-width: 220px;
}

.problem-detail-container .submit-card .language-select-fallback {
    min-height: 0;
    padding: 7px 10px;
    background: #fff;
    font-size: 14px;
}

.problem-detail-container .submit-card .language-search,
.problem-detail-container .submit-card .language-options {
    width: 220px;
}

.problem-detail-container .submit-card .language-search {
    min-height: 0;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}

@media (max-width: 700px) {
    .problem-detail-container {
        padding: 18px 12px;
    }

    .problem-detail-container .submit-card .form-row {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .problem-detail-container .submit-card .form-row label {
        min-width: 0;
    }

    .problem-detail-container .submit-card .language-select-fallback,
    .problem-detail-container .submit-card .language-picker,
    .problem-detail-container .submit-card .language-search,
    .problem-detail-container .submit-card .language-options {
        width: 100%;
        min-width: 0;
    }
}
