
        .p2t-module *,
        .p2t-module *::before,
        .p2t-module *::after {
            box-sizing: border-box;
        }

        .p2t-upload-zone {
            border: 2px dashed #cbd5e1;
            border-radius: 12px;
            background: var(--bs-body-bg, #fff);
            transition: border-color .2s, background .2s;
            cursor: pointer;
        }

            .p2t-upload-zone:hover,
            .p2t-upload-zone.p2t-drag-over {
                border-color: #00924A;
                background: rgba(0,146,74,.04);
            }

        #p2t-download-all-btn {
            display: none;
        }

        .p2t-pdf-card {
            background: var(--bs-tertiary-bg, #f8f9fa);
            border-radius: 14px;
            padding: 18px;
            border: 1px solid var(--bs-border-color, #e9ecef);
            position: relative;
            overflow: hidden;
            transition: box-shadow .2s;
        }

            .p2t-pdf-card.p2t-processing {
                background: var(--bs-info-bg-subtle, #cff4fc);
                border-left: 4px solid var(--bs-info, #0dcaf0);
            }

            .p2t-pdf-card.p2t-locked {
                border-left: 4px solid #dc3545;
            }

            .p2t-pdf-card.p2t-unlocked {
                border-left: 4px solid #198754;
            }

        .p2t-pdf-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            flex-wrap: wrap;
        }

        .p2t-pdf-icon {
            width: 90px;
            min-width: 90px;
            height: 120px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 2px dashed #607D8B;
            background: var(--bs-body-bg, #fff);
            flex-shrink: 0;
        }

            .p2t-pdf-icon img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
            }

        .p2t-pdf-info {
            flex: 1;
            min-width: 160px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .p2t-pdf-name {
            font-weight: 600;
            color: var(--bs-body-color);
            word-break: break-word;
        }

        .p2t-pdf-meta {
            font-size: 12px;
            color: var(--bs-secondary-color);
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }

        .p2t-badge-status {
            background: #e7f1ff;
            color: #0c63e4;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 500;
            border-radius: 20px;
            white-space: nowrap;
        }

            .p2t-badge-status.locked {
                background: #fce4ec;
                color: #c62828;
            }

            .p2t-badge-status.unlocked {
                background: #e8f5e9;
                color: #2e7d32;
            }

        .p2t-badge-pages {
            background: #fef3c7;
            color: #b45309;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 500;
            border-radius: 20px;
            white-space: nowrap;
        }

        .p2t-action-buttons {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }

        .p2t-icon-btn {
            background: var(--bs-body-bg, #fff);
            border: 1px solid var(--bs-border-color, #e2e8f0);
            width: 36px;
            height: 36px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform .15s, background .15s;
            font-size: 17px;
            position: relative;
            flex-shrink: 0;
        }

            .p2t-icon-btn:hover {
                transform: translateY(-2px);
                background: var(--bs-secondary-bg, #f1f5f9);
            }

            .p2t-icon-btn.p2t-disabled {
                opacity: .35;
                pointer-events: none;
            }

            .p2t-icon-btn.p2t-lock-btn {
                color: #dc3545;
            }

            .p2t-icon-btn.p2t-unlock-btn {
                color: #198754;
            }

            .p2t-icon-btn.p2t-download-btn {
                color: #0d6efd;
            }

            .p2t-icon-btn.p2t-delete-btn {
                color: #94a3b8;
            }

        .p2t-toast-stack {
            position: fixed;
            top: 65px;
            right: 16px;
            z-index: 9999999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }

        .p2t-toast {
            background: var(--bs-body-bg, #fff);
            border: 1px solid var(--bs-border-color);
            border-radius: 10px;
            padding: 10px 16px;
            box-shadow: 0 4px 16px rgba(0,0,0,.12);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            animation: p2t-slidein .25s ease;
            pointer-events: auto;
            min-width: 220px;
            max-width: 340px;
        }

        @keyframes p2t-slidein {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes p2t-slideout {
            to {
                transform: translateX(110%);
                opacity: 0;
            }
        }

        .p2t-top-bar {
            position: sticky;
            top: 63px;
            z-index: 100;
            padding: 10px 0;
            background: #f2f2f2;
            border-bottom: 1px solid var(--bs-border-color);
            margin-bottom: 16px;
        }

        .p2t-password-input {
            font-size: 18px;
            letter-spacing: 3px;
            text-align: center;
            font-family: monospace;
        }

        @media (max-width: 768px) {
            .p2t-pdf-header {
                flex-direction: column;
            }

            .p2t-pdf-icon {
                width: 100%;
                height: 100px;
            }

            .p2t-top-bar {
                top: 0;
            }
        }