.model-detail-page {
    --detail-border: #dbe4ef;
    --detail-muted: #52637d;
    --detail-soft-muted: #91a0b5;
    position: relative;
    padding: 96px 0 88px;
}

.model-detail-page .container {
    position: relative;
    z-index: 1;
}

.model-detail-breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #63748e;
    font-size: 14px;
    line-height: 20px;
}

.model-detail-breadcrumb a {
    flex: 0 0 auto;
    color: #63748e;
}

.model-detail-breadcrumb a:hover {
    color: var(--primary);
}

.model-detail-breadcrumb i {
    flex: 0 0 auto;
    color: #a4b1c3;
    font-size: 9px;
}

.model-detail-breadcrumb span {
    min-width: 0;
    overflow: hidden;
    color: #25344d;
    font-family: var(--font-mono);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-detail-card {
    padding: 40px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--detail-border);
    border-radius: 16px;
}

.model-detail-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.model-detail-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.model-detail-logo {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #d97706;
    font-size: 18px;
    font-weight: 700;
    background: #fff2ee;
    border-radius: 12px;
    overflow: hidden;
}

.model-detail-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.model-detail-logo__fallback {
    line-height: 1;
}

.model-detail-identity__body {
    min-width: 0;
}

.model-detail-identity h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.model-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.model-detail-type,
.model-detail-vendor,
.model-detail-billing-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    border-radius: 999px;
}

.model-detail-type {
    color: #2563eb;
    background: #e5efff;
}

.model-detail-type[data-category="image"],
.model-detail-type[data-category="vision"],
.model-detail-type[data-category="video"] {
    color: #8b5bc7;
    background: #f2e7ff;
}

.model-detail-type[data-category="audio"],
.model-detail-type[data-category="realtime"] {
    color: #0f8c82;
    background: #ddf7f4;
}

.model-detail-type[data-category="embedding"],
.model-detail-type[data-category="reranker"] {
    color: #a86f19;
    background: #fff4d6;
}

.model-detail-vendor {
    color: #5f6f86;
    background: #f0f3f7;
}

.model-detail-doc-button {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .16);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.model-detail-doc-button:hover {
    color: #fff;
    background: var(--primary-hover);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
    transform: translateY(-1px);
}

.model-detail-doc-button:focus-visible,
.model-detail-copy:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .42);
    outline-offset: 3px;
}

.model-detail-description {
    margin-top: 25px;
}

.model-detail-description h2,
.model-detail-specs h2,
.model-detail-pricing h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -.015em;
}

.model-detail-description p {
    margin-top: 7px;
    color: var(--detail-muted);
    font-size: 15px;
    line-height: 1.8;
}

.model-detail-divider {
    height: 1px;
    margin: 24px 0 21px;
    background: var(--detail-border);
}

.model-detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.model-detail-spec-list {
    margin-top: 13px;
}

.model-detail-spec-row {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--detail-border);
}

.model-detail-spec-row:last-child {
    border-bottom: 0;
}

.model-detail-spec-row dt,
.model-detail-price-row dt {
    color: var(--detail-muted);
    font-size: 14px;
    font-weight: 400;
}

.model-detail-spec-row dd {
    min-width: 0;
    color: #344158;
    font-size: 13px;
    text-align: right;
}

.model-detail-type--small {
    min-height: 22px;
    padding: 2px 10px;
    font-size: 11px;
}

.model-detail-mono,
.model-detail-call-id code,
.model-detail-price-row dd {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.model-detail-call-id {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.model-detail-call-id code {
    min-width: 0;
    overflow: hidden;
    color: #2563eb;
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-detail-copy {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    color: #477cf1;
    font-size: 12px;
    border-radius: 5px;
    transition: color .18s ease, background .18s ease;
}

.model-detail-copy:hover {
    color: #1d4ed8;
    background: #edf3ff;
}

.model-detail-copy.is-copied {
    color: #16a34a;
    background: #ecfdf3;
}

.model-detail-price-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.model-detail-price-card {
    padding: 14px 16px 11px;
    background: #f8fafc;
    border: 1px solid var(--detail-border);
    border-radius: 12px;
}

.model-detail-price-card__header {
    display: flex;
    min-height: 27px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 5px;
}

.model-detail-price-card__header--end {
    justify-content: flex-end;
}

.model-detail-price-card__header h3 {
    margin: 0;
    overflow: hidden;
    color: #344158;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-detail-billing-badge {
    min-height: 22px;
    flex: 0 0 auto;
    padding: 2px 9px;
    color: #16a34a;
    font-size: 10px;
    font-weight: 600;
    background: #ecfdf3;
}

.model-detail-price-row {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--detail-border);
}

.model-detail-price-row:first-child {
    border-top-color: transparent;
}

.model-detail-price-row dt {
    font-size: 13px;
}

.model-detail-price-row dd {
    color: #1f2b40;
    font-size: 13px;
    font-weight: 650;
    text-align: right;
}

.model-detail-price-empty {
    padding: 24px 0 18px;
    color: var(--detail-soft-muted);
    font-size: 13px;
    text-align: center;
}

.model-detail-price-empty--card {
    padding: 38px 20px;
    background: #f8fafc;
    border: 1px dashed var(--detail-border);
    border-radius: 12px;
}

.model-detail-currency-note {
    margin: 7px 0 0 6px;
    color: #97a6bb;
    font-size: 12px;
    line-height: 20px;
}

@media (max-width: 820px) {
    .model-detail-page {
        padding-top: 88px;
    }

    .model-detail-card {
        padding: 30px;
    }

    .model-detail-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .model-detail-page {
        padding: 82px 0 64px;
    }

    .model-detail-breadcrumb {
        margin-bottom: 14px;
    }

    .model-detail-card {
        padding: 22px 18px 24px;
        border-radius: 14px;
    }

    .model-detail-card__header {
        flex-wrap: wrap;
        gap: 18px;
    }

    .model-detail-identity {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .model-detail-identity h1 {
        font-size: 19px;
    }

    .model-detail-doc-button {
        width: 100%;
    }

    .model-detail-description {
        margin-top: 24px;
    }

    .model-detail-description p {
        font-size: 14px;
    }

    .model-detail-divider {
        margin-block: 21px;
    }

    .model-detail-spec-row {
        gap: 12px;
    }

    .model-detail-spec-row dt,
    .model-detail-price-row dt {
        font-size: 13px;
    }

    .model-detail-call-id {
        max-width: 60%;
    }

    .model-detail-price-card {
        padding-inline: 13px;
    }

    .model-detail-price-row {
        gap: 12px;
    }

    .model-detail-price-row dd {
        max-width: 58%;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .model-detail-doc-button,
    .model-detail-copy {
        transition: none;
    }
}
