.tlpv-exercise-files {
    width: 100%;
}

.tlpv-viewer {
    width: 100%;
    margin: 0 0 24px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tlpv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #e7e9ec;
    background: #f8f9fb;
}

.tlpv-title-wrap,
.tlpv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tlpv-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #16181d;
}

.tlpv-size {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.tlpv-pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    background: #b42318;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.tlpv-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.tlpv-btn:hover,
.tlpv-btn:focus {
    background: #f2f4f7;
    color: #101828;
}

.tlpv-frame-wrap {
    width: 100%;
    height: var(--tlpv-height, 900px);
    min-height: 400px;
    background: #525659;
}

.tlpv-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #525659;
}

.tlpv-viewer:fullscreen,
.tlpv-viewer:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    background: #fff;
}

.tlpv-viewer:fullscreen .tlpv-frame-wrap,
.tlpv-viewer:-webkit-full-screen .tlpv-frame-wrap {
    height: calc(100vh - 60px) !important;
}

.tlpv-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 0 0 12px;
}

.tlpv-file-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tlpv-file-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlpv-file-meta span {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 767px) {
    .tlpv-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tlpv-title-wrap,
    .tlpv-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .tlpv-frame-wrap {
        height: min(72vh, var(--tlpv-height, 900px));
        min-height: 500px;
    }

    .tlpv-actions .tlpv-btn {
        flex: 1 1 auto;
    }
}
