.tlai-body .pdf-tool-page {
    padding-top: 92px;
    padding-bottom: 86px;
}

.tlai-body .pdf-tool-page .tlai-container {
    max-width: 1180px;
}

.tlai-body .pdf-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 18px;
    color: #c9a84c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
}

.tlai-body .pdf-back-link:hover {
    color: #e1c36f;
}

.tlai-body .pdf-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.tlai-body .pdf-runner,
.tlai-body .pdf-tool-side,
.tlai-body .pdf-faq {
    border-color: rgba(201, 168, 76, .18);
    background: #0d0e14;
}

.tlai-body .pdf-runner {
    padding: 32px;
}

.tlai-body .pdf-tool-heading {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 26px;
}

.tlai-body .pdf-tool-heading .pdf-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-color: rgba(201, 168, 76, .26);
    background: #111119;
    color: #c9a84c;
    font-size: 15px;
    font-weight: 900;
}

.tlai-body .pdf-tool-heading h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1;
}

.tlai-body .pdf-tool-heading p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #b8b4a8;
    font-size: 16px;
    line-height: 1.65;
}

.tlai-body .pdf-upload-modern {
    display: grid;
    gap: 16px;
    margin-top: 0;
    padding: 22px;
    border: 1px solid rgba(201, 168, 76, .18);
    border-radius: 0;
    background: #090a0f;
    box-shadow: none;
}

.tlai-body .pdf-upload-modern .pdf-helper-text {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(201, 168, 76, .16);
    background: #111119;
    color: #c7c2b6;
    font-size: 15px;
    line-height: 1.5;
}

.tlai-body .pdf-upload-modern label {
    margin: 0;
    color: #eee9df;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tlai-body .pdf-upload-modern input[type="file"] {
    width: 100%;
    min-height: 58px;
    padding: 10px;
    border: 1px dashed rgba(201, 168, 76, .34);
    border-radius: 0;
    background: #0d0e14;
    color: #eee9df;
    font-size: 15px;
}

.tlai-body .pdf-upload-modern input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 14px;
    padding: 0 16px;
    border: 1px solid rgba(201, 168, 76, .38);
    border-radius: 2px;
    background: #111119;
    color: #eee9df;
    font-weight: 850;
    cursor: pointer;
}

.tlai-body .pdf-upload-modern input[type="file"]::file-selector-button:hover {
    background: rgba(201, 168, 76, .12);
    color: #e1c36f;
}

.tlai-body .pdf-upload-next {
    border: 1px solid rgba(201, 168, 76, .26);
    background: rgba(201, 168, 76, .08);
    border-radius: 0;
    padding: 14px 16px;
    color: #eee9df;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
}

.tlai-body .pdf-upload-modern .pdf-limit-note {
    margin: 0;
    color: #9e998d;
    font-size: 14px;
}

.tlai-body .pdf-upload-modern .tlai-btn.gold {
    width: 100%;
    min-height: 50px;
    margin: 0;
    border-radius: 2px;
    background: #c9a84c;
    color: #090a0f;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tlai-body .pdf-tool-side {
    position: sticky;
    top: 96px;
    padding: 30px;
}

.tlai-body .pdf-tool-side h2 {
    margin: 0;
    font-size: clamp(36px, 3.6vw, 50px);
    line-height: 1.04;
}

.tlai-body .pdf-tool-side p {
    margin: 20px 0 0;
    color: #b8b4a8;
    font-size: 16px;
    line-height: 1.75;
}

.tlai-body .pdf-tool-side .tlai-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.tlai-body .pdf-tool-side .tlai-btn {
    width: 100%;
    justify-content: center;
}

.tlai-body .pdf-tool-side .pdf-privacy-note {
    margin-top: 22px;
    padding: 16px;
    border-color: rgba(201, 168, 76, .16);
    background: #090a0f;
    color: #b8b4a8;
    font-size: 14px;
    line-height: 1.65;
}

.tlai-body .pdf-faq {
    margin-top: 22px;
    padding: 30px;
}

.tlai-body .pdf-faq h2 {
    margin: 0 0 14px;
    color: #eee9df;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
}

.tlai-body .pdf-faq details {
    border-top: 1px solid rgba(201, 168, 76, .16);
    padding: 16px 0;
}

.tlai-body .pdf-faq summary {
    color: #e1c36f;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}

.tlai-body .pdf-faq p {
    margin: 12px 0 0;
    color: #b8b4a8;
    font-size: 15px;
    line-height: 1.7;
}

.pdf-workspace {
    margin: -10px 0 0;
}

.pdf-workspace-form {
    display: block;
}

.pdf-workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(15, 35, 55, .1);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 35, 55, .06);
    margin-bottom: 16px;
}

.pdf-workspace-topbar h2 {
    margin: 4px 0 0;
    color: #10243a;
    font-size: 24px;
}

.pdf-workspace-actions,
.pdf-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdf-mini-btn,
.pdf-inline-actions button {
    border: 1px solid rgba(15, 35, 55, .16);
    background: #fff;
    color: #10243a;
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.pdf-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: stretch;
}

.pdf-preview-canvas {
    min-height: 620px;
    border: 1px solid rgba(15, 35, 55, .1);
    border-radius: 12px;
    background: #f3f5f8;
    padding: 28px;
    overflow: auto;
}

.pdf-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    align-items: start;
}

.pdf-preview-list.is-pages {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.pdf-preview-card {
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 12px 28px rgba(15, 35, 55, .08);
    cursor: grab;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.pdf-preview-card.is-selected,
.pdf-preview-card:focus-within {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .18), 0 14px 34px rgba(15, 35, 55, .1);
}

.pdf-preview-card.is-dragging {
    opacity: .55;
    transform: scale(.98);
}

.pdf-thumb-wrap {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    background: #eef2f6;
    overflow: hidden;
}

.pdf-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.pdf-thumb-fallback {
    font-weight: 800;
    color: #10243a;
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 6px;
    padding: 10px;
    background: #fff;
}

.pdf-card-icon {
    position: absolute;
    top: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.pdf-card-icon.danger {
    right: 8px;
    background: #8f1d2c;
}

.pdf-card-icon.rotate {
    left: 8px;
    background: #10243a;
}

.pdf-card-meta {
    margin-top: 10px;
    min-width: 0;
}

.pdf-card-meta strong,
.pdf-card-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-card-meta strong {
    color: #10243a;
    font-size: 13px;
}

.pdf-card-meta span {
    color: #66758a;
    font-size: 12px;
    margin-top: 3px;
}

.pdf-options-panel {
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 35, 55, .08);
    min-height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-options-scroll {
    padding: 18px;
    overflow: auto;
    flex: 1;
}

.pdf-options-panel h3 {
    margin: 0 0 18px;
    color: #10243a;
    font-size: 21px;
}

.pdf-options-panel label {
    display: block;
    margin: 14px 0 7px;
    color: #10243a;
    font-weight: 750;
    font-size: 13px;
}

.pdf-options-panel input,
.pdf-options-panel select,
.pdf-options-panel textarea {
    width: 100%;
    border: 1px solid rgba(15, 35, 55, .18);
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    color: #10243a;
}

.pdf-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pdf-choice-row label,
.pdf-check {
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
    font-weight: 650;
}

.pdf-choice-row input,
.pdf-check input {
    width: auto;
    margin-right: 6px;
}

.pdf-note,
.pdf-safety {
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.pdf-note {
    background: #eef5fb;
    color: #183a59;
}

.pdf-safety {
    background: rgba(201, 168, 76, .1);
    color: #5a4820;
}

.pdf-process-bar {
    border-top: 1px solid rgba(15, 35, 55, .1);
    padding: 14px;
    background: #fff;
}

.pdf-process-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 15px 18px;
    background: #c9a84c;
    color: #111827;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(201, 168, 76, .24);
}

.pdf-result-page {
    min-height: 60vh;
    background: #f7f8fb;
}

.pdf-result-modern {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 35, 55, .08);
}

.pdf-result-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.pdf-result-facts span {
    border: 1px solid rgba(15, 35, 55, .12);
    border-radius: 999px;
    padding: 8px 11px;
    color: #10243a;
    background: #f8fafc;
    font-weight: 700;
}

@media (max-width: 900px) {
    .tlai-body .pdf-tool-page {
        padding-top: 54px;
        padding-bottom: 56px;
    }

    .tlai-body .pdf-tool-layout {
        grid-template-columns: 1fr;
    }

    .tlai-body .pdf-runner,
    .tlai-body .pdf-tool-side,
    .tlai-body .pdf-faq {
        padding: 22px;
    }

    .tlai-body .pdf-tool-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .tlai-body .pdf-tool-heading .pdf-icon {
        width: 42px;
        height: 42px;
    }

    .tlai-body .pdf-tool-heading h1 {
        font-size: 36px;
    }

    .tlai-body .pdf-tool-side {
        position: static;
    }

    .pdf-workspace-grid {
        grid-template-columns: 1fr;
    }

    .pdf-preview-canvas {
        min-height: 58vh;
        padding: 18px;
    }

    .pdf-options-panel {
        position: sticky;
        bottom: 0;
        z-index: 20;
        min-height: auto;
        max-height: 72vh;
        border-radius: 14px 14px 0 0;
    }

    .pdf-choice-row {
        grid-template-columns: 1fr;
    }

    .pdf-workspace-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
