.zhub-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px;max-height:55vh;overflow:auto;padding:2px}.zhub-library-card{border:1px solid #e5edf7;border-radius:14px;background:#fff;padding:8px;cursor:pointer;transition:.15s}.zhub-library-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(20,40,70,.12)}.zhub-library-thumb{width:100%;height:96px;object-fit:cover;border-radius:10px;background:#f3f6fb}.zhub-library-file{width:100%;height:96px;border-radius:10px;background:#f3f6fb;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#6c757d;gap:6px}.zhub-library-file i{font-size:28px}.zhub-library-file span{font-size:11px;text-transform:uppercase}.zhub-library-name{font-size:12px;line-height:1.25;margin-top:6px;word-break:break-word}.zhub-library-provider{font-size:11px;color:#6c757d}.zhub-library-actions{margin-top:6px}.zhub-library-insert-btn{white-space:nowrap}.zhub-library-editor-bar{display:flex;justify-content:flex-end;margin-bottom:.35rem}

.zhub-upload-progress{border:1px solid #d9e7ff;background:#f8fbff;border-radius:14px;padding:10px 12px}.zhub-upload-progress .progress{height:12px;border-radius:999px;background:#e8eef7;overflow:hidden}.zhub-upload-progress .progress-bar{border-radius:999px}.zhub-upload-progress-success{border-color:#bfe8cf;background:#f4fff8}.zhub-upload-progress-error{border-color:#f3c2c2;background:#fff7f7}

/* B74: Admin file library item cards should look like col-4 gallery tiles, not horizontal flat rows. */
.file-library-admin-card .file-library-admin-thumb {
    width: 100%;
    min-height: 180px;
    max-height: 220px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .file-library-admin-card .file-library-admin-thumb {
        height: 190px;
    }
}

/* B117 - Explorer style upload dropzone */
.zhub-upload-dropzone {
    display: grid;
    place-items: center;
    gap: .35rem;
    min-height: 132px;
    border: 2px dashed rgba(37, 99, 235, .35);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(16, 185, 129, .08));
    color: #1f2937;
    cursor: pointer;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.zhub-upload-dropzone:hover,
.zhub-upload-dropzone:focus-within {
    border-color: rgba(37, 99, 235, .75);
    box-shadow: 0 14px 35px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}
.zhub-upload-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.zhub-upload-dropzone-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
    font-size: 1.35rem;
}
.zhub-upload-dropzone-title { font-weight: 700; }
.zhub-upload-dropzone-hint { color: #6b7280; font-size: .875rem; }
.zhub-file-explorer-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; }
.zhub-file-explorer-sidebar { border-radius: 1.1rem; background: #f8fafc; border: 1px solid rgba(148,163,184,.25); padding: .85rem; }
.zhub-file-explorer-folder { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border-radius: .8rem; color: #334155; text-align: left; }
.zhub-file-explorer-folder:hover { background: rgba(59,130,246,.08); color: #1d4ed8; }
.zhub-file-explorer-folder.active { background: #2563eb; color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.22); }
.zhub-file-explorer-toolbar { border-radius: 1rem; border: 1px solid rgba(148,163,184,.25); background: #fff; padding: .85rem; }
.zhub-file-explorer-card { border-radius: 1rem; overflow: hidden; }
.zhub-file-explorer-card .file-library-admin-thumb,
.zhub-file-explorer-card .zhub-file-picker-thumb { height: 170px; }
@media (max-width: 991.98px) {
    .zhub-file-explorer-shell { grid-template-columns: 1fr; }
    .zhub-file-explorer-sidebar { display: flex; gap: .5rem; overflow-x: auto; }
    .zhub-file-explorer-folder { min-width: 180px; }
}
.zhub-file-explorer-toolbar .zhub-file-explorer-folder {
    width: auto;
    min-width: 155px;
    border: 1px solid rgba(148,163,184,.22);
    background: #f8fafc;
}
.zhub-file-explorer-toolbar .zhub-file-explorer-folder.active {
    background: #2563eb;
    border-color: #2563eb;
}
.zhub-upload-dropzone-input { z-index: 2; }
.zhub-upload-dropzone-icon,
.zhub-upload-dropzone-title,
.zhub-upload-dropzone-hint { pointer-events: none; position: relative; z-index: 1; }
