.surface-page {
    max-width: 1200px;
}

.back-link {
    color: #5f6368;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary);
}

.surface-header {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.surface-summary {
    background: #fff;
    border-bottom: 1px solid #e3e3e3;
}

.surface-eyebrow {
    color: #9a6230;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.surface-code {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.55rem 0.9rem;
}

.surface-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 0.85rem;
    box-shadow: 0 0.75rem 2rem rgba(42, 42, 42, 0.08);
    overflow: hidden;
}

.surface-tabs {
    background: #f7f7f5;
    gap: 0.25rem;
}

.surface-tabs .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.info-panel {
    background: #f7f7f5;
    border: 1px solid #e5e5e2;
    border-radius: 0.65rem;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.property-list > div {
    align-items: baseline;
    border-bottom: 1px solid #deded9;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(120px, 42%) 1fr;
    padding: 0.7rem 0;
}

.property-list dt {
    color: #707070;
    font-size: 0.85rem;
    font-weight: 500;
}

.property-list dd {
    color: var(--secondary);
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.property-list a {
    color: #7a4b20;
}

.download-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #21170e;
    font-weight: 600;
    margin-top: auto;
}

.download-primary:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #000;
}

.download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.viewer-panel {
    background: #f7f7f5;
    border: 1px solid #e5e5e2;
    border-radius: 0.65rem;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
}

.model-viewer {
    flex: 1 1 auto;
    min-height: 480px;
}

.viewer-footer {
    align-items: center;
    border-top: 1px solid #e5e5e2;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.55rem 0.75rem 0.55rem 1rem;
}

.viewer-hint {
    color: #707070;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.viewer-hint span {
    color: var(--primary);
    padding: 0 0.35rem;
}

.viewer-pause {
    background: transparent;
    border: 1px solid #bdbdb8;
    border-radius: 0.4rem;
    color: #4d4d4d;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.viewer-pause:hover,
.viewer-pause:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #21170e;
}

@media (max-width: 767.98px) {
    .surface-header {
        align-items: flex-start;
    }

    .surface-header .display-6 {
        font-size: 2rem;
    }

    .property-list > div {
        display: block;
    }

    .property-list dd {
        margin-top: 0.2rem;
    }

    .viewer-panel {
        min-height: 390px;
    }

    .model-viewer {
        min-height: 350px;
    }

    .viewer-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .viewer-hint {
        text-align: center;
    }

    .download-group .btn,
    .download-primary {
        width: 100%;
    }
}
