:root {
    --pdm-color-primary: #2563eb;
    --pdm-color-primary-hover: #1d4ed8;
    --pdm-color-primary-light: #dbeafe;
    --pdm-color-secondary: #64748b;
    --pdm-color-success: #22c55e;
    --pdm-color-success-light: #dcfce7;
    --pdm-color-danger: #ef4444;
    --pdm-color-danger-light: #fee2e2;
    --pdm-color-warning: #f59e0b;
    --pdm-color-warning-light: #fef3c7;
    --pdm-color-bg: #f8fafc;
    --pdm-color-bg-secondary: #ffffff;
    --pdm-color-border: #e2e8f0;
    --pdm-color-text: #1e293b;
    --pdm-color-text-secondary: #64748b;
    --pdm-color-text-muted: #94a3b8;
    --pdm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --pdm-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --pdm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --pdm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --pdm-radius-sm: 4px;
    --pdm-radius: 8px;
    --pdm-radius-lg: 12px;
    --pdm-radius-xl: 16px;
    --pdm-transition: all 0.15s ease;
    --pdm-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pdm-sidebar-width: 260px;
    --pdm-details-width: 320px;
    --pdm-toolbar-height: 60px;
}

.pdm-wrapper {
    margin: 20px 0 -20px -20px;
    font-family: var(--pdm-font-sans);
    color: var(--pdm-color-text);
    background: var(--pdm-color-bg);
}

.pdm-app {
    display: flex;
    min-height: calc(100vh - 100px);
    position: relative;
}

.pdm-sidebar {
    width: var(--pdm-sidebar-width);
    background: var(--pdm-color-bg-secondary);
    border-right: 1px solid var(--pdm-color-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.pdm-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--pdm-color-border);
    flex-shrink: 0;
}

.pdm-sidebar-logo {
    height: 40px;
    width: auto;
    display: block;
}

.pdm-sidebar-search {
    padding: 12px 16px;
}

.pdm-sidebar-search .pdm-input {
    width: 100%;
    background: var(--pdm-color-bg);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    padding: 8px 12px;
    font-size: 13px;
    transition: var(--pdm-transition);
}

.pdm-sidebar-search .pdm-input:focus {
    outline: none;
    border-color: var(--pdm-color-primary);
    box-shadow: 0 0 0 3px var(--pdm-color-primary-light);
}

.pdm-folder-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.pdm-folder-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--pdm-radius);
    cursor: pointer;
    transition: var(--pdm-transition);
    color: var(--pdm-color-text);
    text-decoration: none;
    gap: 8px;
}

.pdm-folder-item:hover {
    background: var(--pdm-color-bg);
}

.pdm-folder-item.active {
    background: var(--pdm-color-primary-light);
    color: var(--pdm-color-primary);
}

.pdm-folder-item svg {
    flex-shrink: 0;
    color: var(--pdm-color-warning);
}

.pdm-folder-item.active svg {
    color: var(--pdm-color-primary);
}

.pdm-folder-item--root {
    margin-bottom: 6px;
    border-bottom: 1px solid var(--pdm-color-border);
    padding-bottom: 10px;
}

.pdm-folder-spacer {
    width: 20px;
    flex-shrink: 0;
}

.pdm-folder-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-folder-children {
    margin-left: 20px;
    border-left: 1px solid var(--pdm-color-border);
    padding-left: 4px;
}

.pdm-folder-toggle {
    padding: 4px;
    border-radius: var(--pdm-radius-sm);
    transition: var(--pdm-transition);
}

.pdm-folder-toggle:hover {
    background: var(--pdm-color-bg);
}

.pdm-folder-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.pdm-folder-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--pdm-color-text-muted);
    background: var(--pdm-color-bg);
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid var(--pdm-color-border);
}

.pdm-folder-count:hover {
    background: var(--pdm-color-primary);
    color: white;
    border-color: var(--pdm-color-primary);
}

.pdm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pdm-color-bg);
}

.pdm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--pdm-color-bg-secondary);
    border-bottom: 1px solid var(--pdm-color-border);
    min-height: var(--pdm-toolbar-height);
    gap: 16px;
}

.pdm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-sidebar-toggle {
    display: none !important;
}

.pdm-breadcrumb-separator {
    color: var(--pdm-color-text-muted);
    flex-shrink: 0;
}

.pdm-sort-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdm-page-size-control,
.pdm-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pdm-color-text-secondary);
    white-space: nowrap;
}

#pdm-sort-order svg {
    transition: transform 0.15s ease;
    transform: rotate(180deg);
}

#pdm-sort-order.active svg {
    transform: rotate(0deg);
}

.pdm-select {
    padding: 6px 12px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    font-size: 13px;
    background: var(--pdm-color-bg-secondary);
    color: var(--pdm-color-text);
    cursor: pointer;
    transition: var(--pdm-transition);
}

.pdm-select:focus {
    outline: none;
    border-color: var(--pdm-color-primary);
}

.pdm-view-toggle {
    display: flex;
    background: var(--pdm-color-bg);
    border-radius: var(--pdm-radius);
    padding: 2px;
}

.pdm-view-toggle .pdm-btn.active {
    background: var(--pdm-color-bg-secondary);
    box-shadow: var(--pdm-shadow-sm);
}

.pdm-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.pdm-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.pdm-content-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--pdm-color-border);
}

.pdm-pagination-summary {
    font-size: 13px;
    color: var(--pdm-color-text-muted);
}

.pdm-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdm-pagination-status {
    font-size: 13px;
    color: var(--pdm-color-text);
    white-space: nowrap;
}

.pdm-pagination-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.pdm-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--pdm-color-bg-secondary);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius-lg);
    cursor: pointer;
    transition: var(--pdm-transition);
}

.pdm-item:hover {
    border-color: var(--pdm-color-primary);
    box-shadow: var(--pdm-shadow-md);
}

.pdm-item.selected {
    border-color: var(--pdm-color-primary);
    background: var(--pdm-color-primary-light);
}

.pdm-item-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--pdm-radius);
}

.pdm-item-icon svg {
    width: 48px;
    height: 48px;
}

.pdm-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--pdm-radius-sm);
}

.pdm-item-icon--folder svg {
    color: var(--pdm-color-warning);
}

.pdm-item-icon--pdf svg {
    color: #dc2626;
}

.pdm-item-icon--image svg {
    color: #8b5cf6;
}

.pdm-item-icon--document svg {
    color: #2563eb;
}

.pdm-item-icon--spreadsheet svg {
    color: #16a34a;
}

.pdm-item-icon--archive svg {
    color: #64748b;
}

.pdm-item-name {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdm-item-meta {
    font-size: 11px;
    color: var(--pdm-color-text-muted);
    margin-top: 4px;
}

.pdm-item-status {
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.pdm-item-status--missing {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.pdm-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--pdm-color-bg-secondary);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    cursor: pointer;
    transition: var(--pdm-transition);
    gap: 12px;
}

.pdm-list-item:hover {
    border-color: var(--pdm-color-primary);
    background: var(--pdm-color-bg);
}

.pdm-list-item.selected {
    border-color: var(--pdm-color-primary);
    background: var(--pdm-color-primary-light);
}

.pdm-list-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--pdm-radius-sm);
}

.pdm-list-item-icon svg {
    width: 32px;
    height: 32px;
}

.pdm-list-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdm-list-item-info {
    flex: 1;
    min-width: 0;
}

.pdm-list-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-list-item-meta {
    font-size: 12px;
    color: var(--pdm-color-text-secondary);
    margin-top: 2px;
}

.pdm-details {
    width: var(--pdm-details-width);
    background: var(--pdm-color-bg-secondary);
    border-left: 1px solid var(--pdm-color-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.pdm-details-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--pdm-color-text-muted);
}

.pdm-details-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.pdm-details-empty p {
    font-size: 13px;
}

.pdm-details-header {
    padding: 20px;
    border-bottom: 1px solid var(--pdm-color-border);
}

.pdm-details-header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.pdm-details-close {
    display: none;
}

.pdm-details-preview {
    width: 100%;
    aspect-ratio: 1;
    background: var(--pdm-color-bg);
    border-radius: var(--pdm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.pdm-details-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdm-details-preview svg {
    width: 64px;
    height: 64px;
    color: var(--pdm-color-text-muted);
}

.pdm-details-name {
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
}

.pdm-details-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.pdm-details-section {
    margin-bottom: 20px;
}

.pdm-details-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pdm-color-text-muted);
    margin-bottom: 12px;
}

.pdm-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13px;
}

.pdm-details-row-label {
    color: var(--pdm-color-text-secondary);
}

.pdm-details-row-value {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.pdm-details-row-value--danger {
    color: #b91c1c;
}

.pdm-details-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--pdm-radius);
    font-size: 13px;
}

.pdm-details-notice--warning {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.pdm-details-actions .pdm-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.pdm-details-actions {
    padding: 20px;
    border-top: 1px solid var(--pdm-color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdm-details-actions .pdm-btn {
    flex: 1 1 calc(50% - 4px);
}

.pdm-details-actions .pdm-btn-danger {
    flex-basis: 100%;
}

.pdm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--pdm-radius);
    border: none;
    cursor: pointer;
    transition: var(--pdm-transition);
    text-decoration: none;
    white-space: nowrap;
}

.pdm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdm-btn-primary {
    background: var(--pdm-color-primary);
    color: white;
}

.pdm-btn-primary:hover:not(:disabled) {
    background: var(--pdm-color-primary-hover);
}

.pdm-btn-secondary {
    background: var(--pdm-color-bg);
    color: var(--pdm-color-text);
    border: 1px solid var(--pdm-color-border);
}

.pdm-btn-secondary:hover:not(:disabled) {
    background: var(--pdm-color-border);
}

.pdm-btn-danger {
    background: var(--pdm-color-danger);
    color: white;
}

.pdm-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.pdm-btn-ghost {
    background: transparent;
    color: var(--pdm-color-text-secondary);
}

.pdm-btn-ghost:hover:not(:disabled) {
    background: var(--pdm-color-bg);
    color: var(--pdm-color-text);
}

.pdm-btn-icon {
    padding: 8px;
}

.pdm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.pdm-upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pdm-upload-overlay.active {
    display: flex;
}

.pdm-upload-dropzone {
    background: var(--pdm-color-bg-secondary);
    border: 2px dashed var(--pdm-color-primary);
    border-radius: var(--pdm-radius-xl);
    padding: 60px 80px;
    text-align: center;
    position: relative;
}

.pdm-upload-dropzone.drag-over {
    border-color: var(--pdm-color-success);
    background: var(--pdm-color-success-light);
}

.pdm-upload-icon {
    color: var(--pdm-color-primary);
    margin-bottom: 20px;
}

.pdm-upload-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.pdm-upload-subtext {
    font-size: 14px;
    color: var(--pdm-color-text-secondary);
    margin-bottom: 16px;
}

.pdm-upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.context-menu-item--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pdm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pdm-modal.active {
    display: flex;
}

.pdm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pdm-modal-content {
    position: relative;
    background: var(--pdm-color-bg-secondary);
    border-radius: var(--pdm-radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--pdm-shadow-lg);
}

.pdm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--pdm-color-border);
}

.pdm-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.pdm-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.pdm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--pdm-color-border);
}

.pdm-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    background: var(--pdm-color-bg-secondary);
    color: var(--pdm-color-text);
    transition: var(--pdm-transition);
}

.pdm-input:focus {
    outline: none;
    border-color: var(--pdm-color-primary);
    box-shadow: 0 0 0 3px var(--pdm-color-primary-light);
}

.pdm-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    background: var(--pdm-color-bg-secondary);
    color: var(--pdm-color-text);
    resize: vertical;
    min-height: 80px;
    font-agomily: inherit;
    transition: var(--pdm-transition);
}

.pdm-textarea:focus {
    outline: none;
    border-color: var(--pdm-color-primary);
    box-shadow: 0 0 0 3px var(--pdm-color-primary-light);
}

.pdm-export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdm-export-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    background: var(--pdm-color-bg);
}

.pdm-export-choice span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdm-export-choice small {
    color: var(--pdm-color-text-secondary);
}

.pdm-export-choice--disabled {
    opacity: 0.6;
}

.pdm-export-folder-tree {
    margin-top: 4px;
}

.pdm-export-folder-tree-inner {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    background: var(--pdm-color-bg);
}

.pdm-export-folder-node + .pdm-export-folder-node {
    margin-top: 8px;
}

.pdm-export-folder-children {
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid var(--pdm-color-border);
}

.pdm-export-folder-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-export-empty {
    margin: 0;
    color: var(--pdm-color-text-secondary);
}

.pdm-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdm-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--pdm-color-bg-secondary);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow-lg);
    animation: pdm-slide-in 0.3s ease;
    max-width: 360px;
}

@keyframes pdm-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pdm-toast-icon {
    flex-shrink: 0;
}

.pdm-toast-icon--success {
    color: var(--pdm-color-success);
}

.pdm-toast-icon--error {
    color: var(--pdm-color-danger);
}

.pdm-toast-icon--warning {
    color: var(--pdm-color-warning);
}

.pdm-toast-message {
    flex: 1;
    font-size: 14px;
}

.pdm-toast-close {
    flex-shrink: 0;
}

.pdm-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.pdm-preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.pdm-preview-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.pdm-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    color: white;
    background: rgba(0, 0, 0, 0.5);
}

.pdm-preview-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pdm-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdm-preview-container img,
.pdm-preview-container iframe {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdm-preview-toolbar {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}

.pdm-preview-toolbar .pdm-btn {
    background: white;
    color: var(--pdm-color-text);
}

.pdm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--pdm-color-text-muted);
}

.pdm-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.pdm-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--pdm-color-text);
    margin: 0 0 8px;
}

.pdm-empty-state p {
    font-size: 14px;
    margin: 0;
}

.pdm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--pdm-color-text-muted);
}

.pdm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--pdm-color-border);
    border-top-color: var(--pdm-color-primary);
    border-radius: 50%;
    animation: pdm-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes pdm-spin {
    to {
        transform: rotate(360deg);
    }
}

.pdm-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--pdm-color-bg);
    border-radius: 2px;
    overflow: hidden;
}

.pdm-progress-bar-fill {
    height: 100%;
    background: var(--pdm-color-primary);
    transition: width 0.3s ease;
}

.pdm-dragging {
    opacity: 0.5;
}

.pdm-drop-target {
    background: var(--pdm-color-primary-light) !important;
    border-color: var(--pdm-color-primary) !important;
}

.pdm-folder-item.pdm-drop-target,
.pdm-breadcrumb-item.pdm-drop-target {
    box-shadow: inset 0 0 0 1px var(--pdm-color-primary);
}

@media (max-width: 1200px) {
    .pdm-details {
        width: 280px;
    }
}

@media (max-width: 992px) {
    /* Sidebar - compact strip at top, expandable */
    .pdm-app {
        flex-direction: column;
    }

    /* Sidebar - off-canvas drawer from left */
    .pdm-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--pdm-sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: 100vh;
        border-right: 1px solid var(--pdm-color-border);
        border-bottom: none;
        z-index: 100;
        overflow-y: auto;
    }

    .pdm-sidebar.open {
        transform: translateX(0);
    }

    .pdm-sidebar-header {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pdm-sidebar-logo {
        height: 32px;
    }

    .pdm-sidebar-search {
        padding: 8px 16px;
    }

    .pdm-sidebar-search .pdm-input {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pdm-folder-tree {
        padding: 8px;
    }

    .pdm-folder-item {
        padding: 6px 10px;
    }

    .pdm-folder-name {
        max-width: 140px;
    }

    .pdm-sidebar-toggle {
        display: flex !important;
    }

    .pdm-storage-indicator {
        padding: 12px 16px;
    }

    .pdm-details {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        width: 300px;
    }

    .pdm-details.open {
        transform: translateX(0);
    }

    .pdm-toolbar .pdm-breadcrumb {
        display: none;
    }

    .pdm-details-close {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .pdm-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pdm-pagination-controls {
        justify-content: space-between;
    }

    .pdm-pagination-status {
        text-align: center;
    }

    .pdm-logs-toolbar,
    .pdm-inline-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .pdm-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .pdm-item {
        padding: 12px;
    }

    .pdm-item-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }

    .pdm-item-icon svg {
        width: 36px;
        height: 36px;
    }

    .pdm-item-name {
        font-size: 12px;
    }

    .pdm-toolbar {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .pdm-sort-dropdown .pdm-select {
        padding: 6px 8px;
        font-size: 12px;
    }

    .pdm-breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pdm-toolbar-right {
        gap: 4px;
    }

    .pdm-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pdm-view-toggle {
        display: none;
    }

    .pdm-page-size-control {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   SMART BREADCRUMB TRUNCATION
   ============================================ */

.pdm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    max-width: 100%;
    overflow: hidden;
}

.pdm-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pdm-color-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--pdm-radius-sm);
    transition: var(--pdm-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.pdm-breadcrumb-item.current {
    color: var(--pdm-color-text);
    font-weight: 500;
}

.pdm-breadcrumb-item.truncated {
    padding: 4px;
}

.pdm-breadcrumb-separator {
    color: var(--pdm-color-text-muted);
    flex-shrink: 0;
}

/* ============================================
   MOBILE TOOLBAR - FILTER DROPDOWN
   ============================================ */

.pdm-toolbar-filters {
    position: relative;
}

.pdm-toolbar-filters-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--pdm-color-bg-secondary);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow-lg);
    padding: 12px;
    min-width: 180px;
    z-index: 50;
    display: none;
    margin-top: 8px;
}

.pdm-toolbar-filters-dropdown.active {
    display: block;
}

.pdm-toolbar-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pdm-toolbar-filters-row:last-child {
    margin-bottom: 0;
}

.pdm-toolbar-filters-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pdm-color-text-secondary);
    min-width: 60px;
}

.pdm-toolbar-filters-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    font-size: 13px;
    background: var(--pdm-color-bg-secondary);
    color: var(--pdm-color-text);
}

@media (max-width: 768px) {
    .pdm-toolbar {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px;
        align-items: center;
        overflow: hidden;
    }

    .pdm-toolbar-left {
        flex: 0 0 auto;
        min-width: auto;
    }

    .pdm-toolbar-right {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
    }

    .pdm-page-size-control,
    .pdm-sort-dropdown {
        display: none;
    }

    .pdm-toolbar-filters {
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto;
        flex: 0 1 auto;
        justify-content: flex-end;
    }

    .pdm-filters-toggle {
        display: none !important;
    }

    .pdm-toolbar-filters-dropdown {
        position: static;
        display: flex !important;
        flex-direction: row;
        gap: 6px;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
        border: none;
        min-width: auto;
        background: transparent;
        width: auto;
        flex: 0 1 auto;
    }

    .pdm-toolbar-filters-row {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
    }

    .pdm-toolbar-filters-label {
        display: none;
    }

    .pdm-toolbar-filters-select {
        padding: 6px 28px 6px 8px;
        font-size: 11px;
        min-height: 36px;
        min-width: 0;
        flex: 0 0 auto;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 6px center;
        background-size: 12px;
        border-radius: 6px;
        cursor: pointer;
    }

    .pdm-filters-sort {
        width: 76px;
    }

    .pdm-filters-per-page {
        width: 58px;
    }

    .pdm-view-toggle {
        flex: 0 0 auto;
    }

    #pdm-export-btn,
    #pdm-upload-btn {
        flex: 0 0 auto;
        padding: 6px 10px;
        gap: 4px;
        min-height: 36px;
        font-size: 12px;
        white-space: nowrap;
    }

    #pdm-export-btn svg,
    #pdm-upload-btn svg {
        width: 16px;
        height: 16px;
    }

    .pdm-toolbar-filters-select:focus {
        outline: 2px solid var(--pdm-color-primary, #2271b1);
        outline-offset: 1px;
    }

    .pdm-btn-primary {
        order: 1;
    }

    .pdm-view-toggle {
        order: 0;
    }

    .pdm-btn-secondary {
        order: 2;
    }
}

@media (min-width: 769px) {
    /* Hide filter dropdown toggle on desktop */
    .pdm-toolbar-filters {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Keep secondary toolbar actions compact */
    .pdm-btn-secondary:not(.pdm-sidebar-toggle):not(#pdm-export-btn) {
        display: none;
    }

    /* Keep Upload visible without stretching the row */
    #pdm-upload-btn {
        flex: 0 0 auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .pdm-toolbar-right {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .pdm-view-toggle {
        display: none;
    }

    #pdm-export-btn {
        padding: 6px 8px;
        min-width: 36px;
    }

    #pdm-export-btn span {
        display: none;
    }

    #pdm-upload-btn {
        padding: 6px 9px;
    }
}

/* ============================================
   BREADCRUMB MOBILE TRUNCATION
   ============================================ */

@media (max-width: 600px) {
    .pdm-breadcrumb {
        max-width: 200px;
    }
}

@media (max-width: 400px) {
    .pdm-breadcrumb {
        max-width: 150px;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .pdm-toolbar-filters-dropdown {
        min-width: 200px;
    }

    .pdm-toolbar-filters-select {
        min-height: 44px;
        padding: 10px 12px;
    }

    .pdm-breadcrumb-item {
        min-height: 44px;
    }
}

.pdm-settings-wrapper {
    padding: 20px;
    background: var(--pdm-color-bg-secondary);
    max-width: 800px;
}

.pdm-settings-header {
    margin-bottom: 32px;
}

.pdm-settings-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pdm-settings-desc {
    font-size: 14px;
    color: var(--pdm-color-text-secondary);
    margin: 0;
}

.pdm-settings-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--pdm-color-border);
}

.pdm-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pdm-settings-section--danger {
    background: var(--pdm-color-danger-light);
    margin: 0;
    padding: 24px;
    border: 1px solid var(--pdm-color-danger);
    border-radius: var(--pdm-radius-lg);
}

.pdm-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
}

.pdm-field {
    margin-bottom: 20px;
}

.pdm-field:last-child {
    margin-bottom: 0;
}

.pdm-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.pdm-field-desc {
    font-size: 13px;
    color: var(--pdm-color-text-secondary);
    margin: 6px 0 12px;
}

.pdm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.pdm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pdm-color-primary);
}

.pdm-checkbox-label--danger input[type="checkbox"] {
    accent-color: var(--pdm-color-danger);
}

.pdm-settings-actions {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--pdm-color-border);
}

.pdm-settings-info {
    margin-top: 40px;
    padding: 20px;
    background: var(--pdm-color-bg);
    border-radius: var(--pdm-radius-lg);
}

.pdm-settings-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}

.pdm-settings-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.pdm-settings-info li {
    padding: 6px 0;
    color: var(--pdm-color-text-secondary);
}

.pdm-settings-info code {
    background: var(--pdm-color-bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.pdm-logs-wrapper {
    padding: 20px;
    background: var(--pdm-color-bg-secondary);
}

.pdm-logs-header {
    margin-bottom: 24px;
}

.pdm-logs-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pdm-logs-desc {
    font-size: 14px;
    color: var(--pdm-color-text-secondary);
    margin: 0;
}

.pdm-logs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pdm-table-responsive {
    overflow-x: auto;
}

.pdm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pdm-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--pdm-color-bg);
    font-weight: 600;
    border-bottom: 1px solid var(--pdm-color-border);
}

.pdm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pdm-color-border);
    vertical-align: top;
}

.pdm-table tr:hover td {
    background: var(--pdm-color-bg);
}

.pdm-log-action {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.pdm-log-action--upload {
    background: var(--pdm-color-success-light);
    color: var(--pdm-color-success);
}

.pdm-log-action--download {
    background: var(--pdm-color-primary-light);
    color: var(--pdm-color-primary);
}

.pdm-log-action--delete {
    background: var(--pdm-color-danger-light);
    color: var(--pdm-color-danger);
}

.pdm-log-action--rename,
.pdm-log-action--move {
    background: var(--pdm-color-warning-light);
    color: var(--pdm-color-warning);
}

.pdm-log-action--create {
    background: var(--pdm-color-success-light);
    color: var(--pdm-color-success);
}

.pdm-log-context {
    font-size: 12px;
    font-agomily: monospace;
    background: var(--pdm-color-bg);
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.context-menu {
    position: fixed;
    background: var(--pdm-color-bg-secondary);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow-lg);
    min-width: 160px;
    z-index: 1000;
    padding: 4px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--pdm-color-text);
    cursor: pointer;
    border-radius: var(--pdm-radius-sm);
    transition: var(--pdm-transition);
}

.context-menu-item:hover {
    background: var(--pdm-color-bg);
}

.context-menu-item--danger {
    color: var(--pdm-color-danger);
}

.context-menu-divider {
    height: 1px;
    background: var(--pdm-color-border);
    margin: 4px 0;
}

.pdm-move-tree {
    max-height: 300px;
    overflow-y: auto;
}

.pdm-move-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--pdm-radius);
    transition: var(--pdm-transition);
    gap: 8px;
}

.pdm-move-item:hover {
    background: var(--pdm-color-bg);
}

.pdm-move-item.current {
    opacity: 0.5;
    pointer-events: none;
}

.pdm-move-item.active {
    background: var(--pdm-color-primary-light);
    color: var(--pdm-color-primary);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.pdm-move-item.active svg {
    color: var(--pdm-color-primary);
}

.pdm-storage-indicator {
    padding: 16px;
    border-top: 1px solid var(--pdm-color-border);
    margin-top: auto;
    flex-shrink: 0;
}

.pdm-storage-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pdm-color-text-muted);
    margin-bottom: 12px;
}

.pdm-storage-stats {
    display: block;
    font-size: 12px;
    color: var(--pdm-color-text-secondary);
}

.pdm-storage-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.pdm-storage-stat-value {
    font-weight: 600;
    color: var(--pdm-color-text);
}

.pdm-storage-stat-label {
    font-size: 10px;
    color: var(--pdm-color-text-muted);
}

.pdm-user-whitelist-field {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pdm-color-border);
}

.pdm-user-search {
    position: relative;
    margin-bottom: 12px;
}

.pdm-user-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pdm-color-bg-secondary);
    border: 1px solid var(--pdm-color-border);
    border-radius: var(--pdm-radius);
    box-shadow: var(--pdm-shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.pdm-user-results.active {
    display: block;
}

.pdm-user-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--pdm-transition);
}

.pdm-user-result:hover {
    background: var(--pdm-color-bg);
}

.pdm-user-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pdm-color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pdm-color-primary);
}

.pdm-user-result-info {
    flex: 1;
    min-width: 0;
}

.pdm-user-result-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-user-result-login {
    font-size: 11px;
    color: var(--pdm-color-text-secondary);
}

.pdm-allowed-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.pdm-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--pdm-color-primary-light);
    border-radius: var(--pdm-radius);
    font-size: 12px;
}

.pdm-user-tag .pdm-user-name {
    color: var(--pdm-color-primary);
    font-weight: 500;
}

.pdm-user-tag .pdm-remove-user {
    padding: 2px;
    color: var(--pdm-color-primary);
}

.pdm-user-tag .pdm-remove-user:hover {
    color: var(--pdm-color-danger);
}

.pdm-notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--pdm-radius);
    font-size: 14px;
}

.pdm-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdm-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   MOBILE BACKDROP OVERLAY
   ============================================ */

.pdm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdm-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BODY SCROLL LOCK
   ============================================ */

body.pdm-no-scroll {
    overflow: hidden;
}

/* ============================================
   FOCUS VISIBLE STATES
   ============================================ */

.pdm-btn:focus-visible,
.pdm-input:focus-visible,
.pdm-select:focus-visible,
.pdm-textarea:focus-visible,
.pdm-folder-item:focus-visible,
.pdm-item:focus-visible,
.pdm-list-item:focus-visible {
    outline: 2px solid var(--pdm-color-primary);
    outline-offset: 2px;
}

.pdm-sidebar-search .pdm-input:focus-visible {
    box-shadow: 0 0 0 3px var(--pdm-color-primary-light);
}

/* ============================================
   REDUCED MOTION PREFERENCES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pdm-toast {
        animation: none;
    }

    .pdm-spinner {
        animation: none;
        border-top-color: var(--pdm-color-primary);
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --pdm-color-text-muted: #1e293b;
        --pdm-color-border: #64748b;
    }

    .pdm-btn-secondary {
        border-width: 2px;
    }
}

/* ============================================
   SAFE AREA INSETS (NOTCHED DEVICES)
   ============================================ */

@supports (padding: max(0px)) {
    .pdm-sidebar {
        padding-left: max(0px, env(safe-area-inset-left));
    }

    .pdm-details {
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .pdm-toolbar {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .pdm-toast-container {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* ============================================
   IMPROVED MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 992px) {
    .pdm-backdrop {
        display: block;
    }

    .pdm-sidebar {
        box-shadow: var(--pdm-shadow-lg);
        z-index: 100;
    }

    .pdm-details {
        box-shadow: var(--pdm-shadow-lg);
        z-index: 110;
    }

    .pdm-modal-content {
        max-width: calc(100vw - 32px);
        margin: 16px;
    }

    .pdm-preview-container {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .pdm-content {
        padding: 16px;
    }

    .pdm-item-icon {
        width: 56px;
        height: 56px;
    }

    .pdm-item-icon svg {
        width: 40px;
        height: 40px;
    }

    .pdm-details-header {
        padding: 16px;
    }

    .pdm-details-body {
        padding: 16px;
    }

    .pdm-details-actions {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .pdm-toolbar {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .pdm-toolbar-left {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .pdm-toolbar-right {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pdm-content {
        padding: 12px;
    }

    .pdm-modal-content {
        margin: 8px;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .pdm-modal-header {
        padding: 12px 16px;
    }

    .pdm-modal-body {
        padding: 16px;
    }

    .pdm-modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .pdm-preview-content {
        width: 100vw;
        height: 100vh;
    }

    .pdm-details-actions .pdm-btn {
        flex: 1 1 100%;
    }
}

/* ============================================
   TOUCH TARGETS (MIN 44x44px FOR MOBILE)
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .pdm-btn {
        min-height: 44px;
        padding: 12px 16px;
    }

    .pdm-btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }

    .pdm-folder-item {
        min-height: 44px;
        padding: 12px;
    }

    .pdm-list-item {
        min-height: 52px;
        padding: 14px 16px;
    }

    .pdm-pagination-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .context-menu-item {
        min-height: 44px;
        padding: 12px;
    }

    .pdm-input,
    .pdm-select {
        min-height: 44px;
        padding: 12px;
    }

    .pdmm-checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    .pdm-move-item {
        min-height: 44px;
        padding: 12px;
    }

    .pdm-export-folder-option {
        min-height: 44px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .pdm-sidebar,
    .pdm-toolbar,
    .pdm-details,
    .pdm-upload-overlay,
    .pdm-modal,
    .pdm-toast-container,
    .pdm-preview-modal {
        display: none !important;
    }

    .pdm-main {
        width: 100% !important;
    }

    .pdm-content {
        padding: 0 !important;
    }

    .pdm-item,
    .pdm-list-item {
        break-inside: avoid;
    }
}
