/* Catalog sorting and folder navigation retain the sidebar's existing row geometry. */
.ipad-library-breadcrumbs{display:flex;align-items:center;gap:4px;overflow:auto;scrollbar-width:thin;max-width:100%;font-size:12px;color:#636366;padding:0 4px 2px}
.ipad-library-breadcrumbs>span{display:flex;align-items:center;gap:3px;flex-shrink:0}
.ipad-library-breadcrumbs button{font-size:12px;padding:4px;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis;border-radius:5px}
.ipad-library-entry[draggable=true]{cursor:grab}
.ipad-library-entry.library-dragging{opacity:.42}
.ipad-library-entry[data-drop=before]::before,.ipad-library-entry[data-drop=after]::after{content:'';position:absolute;left:8px;right:8px;height:3px;background:#007aff;border-radius:3px;z-index:2;pointer-events:none}
.ipad-library-entry[data-drop=before]::before{top:-3px}
.ipad-library-entry[data-drop=after]::after{bottom:-3px}
.ipad-library-entry[data-drop=inside],.ipad-library .library-drop-inside{background:rgba(0,122,255,.13);box-shadow:inset 0 0 0 2px #007aff;border-radius:10px}
.library-drop-caption{font-size:12px;line-height:18px;color:#007aff;white-space:nowrap;padding-right:4px}
.ipad-library-list-end{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#007aff}
.library-drop-at-end .ipad-library-list-end{border:2px dashed #007aff;border-radius:10px;background:rgba(0,122,255,.06);margin-top:4px}
.ipad-library-move-dialog label{display:block;font-size:13px;color:#636366;margin-bottom:6px}
.ipad-library-move-dialog select{width:100%;min-height:40px;padding:8px;border:1px solid #c7c7cc;border-radius:8px;font:inherit;font-size:14px;color:inherit;background:#fff}
.library-live-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.ipad-library .ipad-library-menu>button:disabled{opacity:.4}

.library-create-folder-dialog{box-sizing:border-box;width:360px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:24px;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:#fff;box-shadow:0 12px 50px rgba(0,0,0,.2);color:#1c1c1e;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif}
.library-create-folder-dialog::backdrop{background:rgba(0,0,0,.22);backdrop-filter:blur(3px)}
.library-create-folder-dialog h3{font-size:17px;line-height:24px;font-weight:600;margin:0 0 8px}
.library-create-folder-dialog p{font-size:14px;line-height:22px;margin:0 0 18px;color:#636366;overflow-wrap:anywhere}
.library-create-folder-dialog label{display:block;font-size:14px;font-weight:500;line-height:20px;margin-bottom:8px}
.library-create-folder-dialog input{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:16px;line-height:24px;padding:10px 12px;border:1px solid #c7c7cc;border-radius:10px;background:#fff;color:inherit}
.library-create-folder-dialog input:focus-visible{outline:2px solid #007aff;outline-offset:2px}
.library-create-folder-dialog input[aria-invalid=true]{border-color:#d93025}
.library-create-folder-dialog .library-create-folder-error{color:#b3261e;margin:12px 0 0}
.library-create-folder-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.library-create-folder-actions button{min-height:44px;min-width:64px;padding:8px 14px;border:0;border-radius:10px;background:transparent;color:#007aff;font:inherit;font-size:16px;cursor:pointer}
.library-create-folder-actions button[type=submit]{background:#007aff;color:#fff}
.library-create-folder-actions button:disabled{opacity:.45;cursor:default}
.library-create-folder-actions button:focus-visible{outline:2px solid #007aff;outline-offset:2px}
