.ctest-text {
    font-size: 1.15rem;
    line-height: 2.2;
}

.ctest-gap {
    display: inline-block;
    white-space: nowrap;
    vertical-align: top;
}

.gap-visible {
    font-weight: 600;
}

.gap-input-wrap {
    display: inline-block;
    vertical-align: top;
}

.gap-input {
    border: none;
    border-bottom: 2px solid #0d6efd;
    outline: none;
    font-size: 1.15rem;
    font-family: inherit;
    padding: 0 2px;
    background: transparent;
    min-width: 1.5em;
    display: block;
}

.gap-input:focus {
    border-bottom-color: #0a58ca;
    background-color: #f0f4ff;
}

.gap-input.correct {
    border-bottom-color: #198754;
    background-color: #d1e7dd;
    color: #0f5132;
}

.gap-input.incorrect {
    border-bottom-color: #dc3545;
    background-color: #f8d7da;
    color: #842029;
}

.gap-correction {
    display: block;
    color: #198754;
    font-weight: 600;
    font-size: 0.8em;
    line-height: 1.2;
}

.results-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    margin-top: 8px;
    overflow: hidden;
}

.results-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
