.problem-hints-panel[hidden] {
    display: none;
}

.problem-hints-status,
.problem-hints-admin-status {
    color: #495057;
    margin-bottom: 12px;
}

.problem-hint-output {
    margin-top: 16px;
}

.problem-hint-card {
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 14px 16px;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.problem-hint-card h4 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.problem-hint-card p:last-child {
    margin-bottom: 0;
}

.problem-hints-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.problem-hints-toolbar label {
    font-weight: 600;
}

.problem-hints-toolbar select {
    width: auto;
    min-width: 130px;
}

.problem-hints-admin-layout {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
    gap: 16px;
}

.problem-hints-history {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.problem-hints-history button {
    text-align: left;
    white-space: normal;
}

.problem-hints-editor {
    min-width: 0;
}

.problem-hints-editor .form-label {
    font-weight: 600;
}

.problem-hints-editor textarea {
    min-height: 72px;
}

.problem-hint-preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

.problem-hint-preview {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    overflow-wrap: anywhere;
}

.problem-hints-editor pre {
    max-height: 280px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.problem-hints-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

@media (max-width: 767.98px) {
    .problem-hints-admin-layout {
        grid-template-columns: 1fr;
    }
}
