.openai-model-card {
    margin: 0 0 22px;
    border: 1px solid rgba(216, 177, 91, 0.22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 22, 25, 0.96), rgba(12, 13, 15, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.openai-model-form {
    padding: 22px 24px 20px;
}

.openai-model-head,
.openai-model-selection {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.openai-model-head h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.openai-model-head p {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.openai-model-current {
    min-width: 210px;
    padding: 12px 14px;
    border: 1px solid rgba(216, 177, 91, 0.2);
    border-radius: 12px;
    background: rgba(216, 177, 91, 0.055);
    text-align: right;
}

.openai-model-current > span {
    display: block;
    margin-bottom: 4px;
    color: var(--gold, #d8b15b);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.openai-model-current strong,
.openai-model-current code {
    display: block;
}

.openai-model-current code {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.75rem;
}

.openai-model-range-wrap {
    margin: 24px 0 17px;
    padding: 0 8px;
}

.openai-model-range {
    width: 100%;
    margin: 0;
    accent-color: var(--gold, #d8b15b);
    cursor: pointer;
}

.openai-model-range::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(216, 177, 91, 0.7), rgba(216, 177, 91, 0.18));
}

.openai-model-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 2px solid #111214;
    border-radius: 50%;
    background: var(--gold, #d8b15b);
    box-shadow: 0 0 0 4px rgba(216, 177, 91, 0.13);
    -webkit-appearance: none;
}

.openai-model-range::-moz-range-track {
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(216, 177, 91, 0.28);
}

.openai-model-range::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: rgba(216, 177, 91, 0.76);
}

.openai-model-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #111214;
    border-radius: 50%;
    background: var(--gold, #d8b15b);
    box-shadow: 0 0 0 4px rgba(216, 177, 91, 0.13);
}

.openai-model-stops {
    display: grid;
    grid-template-columns: repeat(var(--model-count), minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
}

.openai-model-stop {
    position: relative;
    min-width: 0;
    padding: 5px 2px 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    text-align: center;
}

.openai-model-stop strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.openai-model-dot {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0 auto;
    border: 1px solid rgba(216, 177, 91, 0.48);
    border-radius: 50%;
    background: #16171a;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.openai-model-stop:hover,
.openai-model-stop.is-active {
    color: var(--text-main, #f2f2f2);
}

.openai-model-stop:hover .openai-model-dot,
.openai-model-stop.is-active .openai-model-dot {
    transform: scale(1.25);
    background: var(--gold, #d8b15b);
    box-shadow: 0 0 0 4px rgba(216, 177, 91, 0.12);
}

.openai-model-selection {
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.openai-model-selection > div {
    min-width: 0;
}

.openai-model-selection strong,
.openai-model-selection span,
.openai-model-selection small {
    display: block;
}

.openai-model-selection strong {
    margin-bottom: 3px;
    font-size: 1rem;
}

.openai-model-selection span {
    color: var(--text-soft);
    line-height: 1.4;
}

.openai-model-selection small {
    margin-top: 5px;
    color: var(--gold, #d8b15b);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .openai-model-head,
    .openai-model-selection {
        flex-direction: column;
        align-items: stretch;
    }

    .openai-model-current {
        min-width: 0;
        text-align: left;
    }

    .openai-model-stops {
        gap: 1px;
    }

    .openai-model-stop strong {
        font-size: 0.61rem;
        white-space: normal;
    }

    .openai-model-selection .btn {
        width: 100%;
    }
}
