@media(max-width:650px){html body{height:auto;min-height:100dvh;overflow:auto}.demo-layout,.mobile-sidebar-open .demo-layout{height:auto;min-height:calc(100dvh - var(--mobile-header-height,98px))}.album-main,.mobile-sidebar-open .album-main{height:auto;min-height:calc(100dvh - var(--mobile-header-height,98px) - 88px)}#galleryScroll{flex:1;min-height:calc(100dvh - var(--mobile-header-height,98px) - 220px);overflow:visible;overscroll-behavior:auto}#albumGrid{min-height:0}.demo-console,.mobile-sidebar-open .demo-console,.demo-console.console-expanded{position:relative;left:auto;right:auto;bottom:auto;height:auto;max-height:none;overflow:visible;padding:16px 14px 65px}.demo-console [data-panel=overview] .table-card{display:block}.demo-console .stat-grid{gap:16px;margin:14px 0}.demo-console .stat-grid article{display:block}.demo-console .stat-grid strong{font-size:20px;margin-top:5px}.demo-console .stat-grid span{font-size:12px}.demo-console #mobileRemaining,.demo-console:not(.console-expanded) #mobileRemaining{display:block}.demo-console .table-card h3{font-size:14px;margin:20px 0 8px}.demo-console .row{padding:12px 0;font-size:12px}.demo-console .row strong{font-size:12px}.demo-console .row small{font-size:10px}.support-button{bottom:calc(18px + env(safe-area-inset-bottom))}.mobile-sidebar-open #galleryScroll{margin-left:0}.album-sidebar,.mobile-sidebar-open .album-sidebar{position:fixed;top:var(--mobile-header-height,98px);bottom:0;width:190px;height:calc(100dvh - var(--mobile-header-height,98px));z-index:25;box-shadow:5px 0 22px #0001}.mobile-sidebar-open .album-sidebar{transform:translateX(0)}.album-sidebar .album-filter{font-size:13px!important;min-height:38px}.drawer-backdrop:not(.hidden){display:block!important}.trash-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trash-toolbar{gap:5px}.trash-toolbar button{font-size:11px;padding:8px}.recent-thumbnail{width:48px;height:48px;flex-basis:48px}}
@media(max-width:650px){body .album-sidebar,body.mobile-sidebar-open .album-sidebar{z-index:29}}
@media(max-width:650px){html body.mobile-sidebar-open{overflow:auto}body.mobile-sidebar-open .drawer-backdrop{display:none!important}body .album-sidebar,body.mobile-sidebar-open .album-sidebar{width:132px;background:rgba(245,247,250,.78);backdrop-filter:blur(12px);padding:12px 6px}body.mobile-sidebar-open #galleryScroll{margin-left:132px;transition:margin-left .18s}body.mobile-sidebar-open .demo-topbar,body.mobile-sidebar-open .album-heading,body.mobile-sidebar-open .library-selection,body.mobile-sidebar-open .demo-console{filter:blur(2px)}body #galleryScroll{touch-action:pan-y;min-height:calc(100dvh - var(--mobile-header-height,98px) - 220px)}body .account-page .modal-card{padding-bottom:100px}body .account-page .close-button{position:fixed;top:auto;bottom:calc(18px + env(safe-area-inset-bottom));left:25%;transform:translateX(-50%);z-index:40;background:#fff;border:1px solid #dfe3e9;padding:10px 16px;white-space:nowrap}body #uploadModal .modal-card{padding-top:0}body .upload-fixed-header{position:sticky;top:0;z-index:3;background:#fff;padding:20px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}body .upload-fixed-header h2{margin:0;font-size:20px}body #uploadModal .upload-fixed-header .close-button{position:static;flex:none}body .trash-grid{touch-action:pan-y}body .trash-row{min-width:0}body .trash-row>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .trash-row>div{display:flex;flex-wrap:wrap;gap:4px}body .trash-row>div button{font-size:10px;padding:6px}}
@media(max-width:650px){html body .account-page .close-button{left:14px;bottom:calc(3px + env(safe-area-inset-bottom));transform:none;background:transparent;border:0;box-shadow:none;font-size:12px;font-weight:400;padding:8px 4px}}
@media(max-width:650px){html body .album-main .library-selection{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}html body .album-main .library-selection.selection-active button{width:100%!important;min-width:0;padding:6px 0!important;display:flex!important;align-items:center;justify-content:center;text-align:center;font-size:10px;height:32px}html body .album-main .library-selection #toggleSelection{grid-column:1}html body .album-main .library-selection #selectVisible{grid-column:2}html body .album-main .library-selection #deleteSelected{grid-column:3}html body .album-main .library-selection #moveSelected{grid-column:4}html body .album-main .library-selection #mobileUploadCommand{grid-column:5;width:100%}html body .album-main .library-selection #openTrash{grid-column:6;width:100%}html body #fileViewer{padding:0;background:#08090b;backdrop-filter:none}html body #fileViewer .viewer-card{position:relative;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none}html body #fileViewer .viewer-stage{position:absolute;inset:0;background:transparent;display:flex;align-items:center;justify-content:center}html body #fileViewer .viewer-stage img,html body #fileViewer .viewer-stage video{width:100%;height:100%;max-height:none;object-fit:contain}html body #fileViewer h3{position:absolute;top:16px;left:16px;right:55px;z-index:2;color:#fff;background:transparent;margin:0;font-size:13px;text-shadow:0 1px 4px #000;overflow-wrap:anywhere}html body #fileViewer .close-button{z-index:3;background:transparent;color:#fff;top:8px;right:10px}html body #fileViewer .viewer-actions{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));left:10px;right:10px;z-index:2;display:flex;justify-content:center;gap:12px;flex-wrap:wrap;background:transparent}html body #fileViewer .viewer-actions>*{background:transparent;border:0;box-shadow:none;color:#fff;font-size:12px;padding:10px 3px;text-shadow:0 1px 4px #000}html body #fileViewer #viewerStatus{position:absolute;bottom:80px;left:15px;right:15px;color:#fff;z-index:2}.gallery-fast-scroll{position:fixed;right:2px;top:35%;height:36%;width:18px;z-index:20;touch-action:none;background:transparent;border:0;padding:0}.gallery-fast-scroll span{position:absolute;left:3px;top:0;width:12px;height:30px;border:1px solid #a1a7ae;border-radius:3px;background:#d7dbe0cc;box-shadow:0 1px 3px #0002}.gallery-fast-scroll[hidden]{display:none}}
@media(min-width:651px){.gallery-fast-scroll{display:none}}
@media(max-width:650px){html body .album-main .library-selection #renameAlbum{grid-column:4;width:100%;min-width:0;padding:6px 0;font-size:9px;overflow:hidden}html body .album-main .library-selection #createAlbum{grid-column:2/4;min-width:0}}
@media(max-width:650px){html body .album-main .library-selection.selection-active #createAlbum,html body .album-main .library-selection.selection-active #renameAlbum{display:none!important}}
@media(max-width:650px){html body #fileViewer .viewer-stage{height:100%;max-height:none}}
.child-album{margin-left:12px;border-left:1px solid #d8dce2;border-radius:0 5px 5px 0}.child-album span:before{content:'\21b3'}.folder-fields{display:grid;gap:16px}.folder-fields label{display:grid;gap:7px;font-size:13px}.folder-fields select{width:100%;padding:12px;border:1px solid #dce0e5;border-radius:6px;background:#fff}
.folder-card{min-width:0;border:1px solid #e0e4e9;border-radius:7px;background:#f6f9fd;padding:18px 8px;display:grid;place-content:center;text-align:center;gap:8px}.folder-card>span{font-size:36px}.folder-card strong{font-size:12px;overflow-wrap:anywhere}.folder-card small{font-size:10px;color:#858b95}.folder-fields>label{width:75%;max-width:260px;margin:0 auto;text-align:center;font-size:11px}.folder-fields>label select{padding:7px;font-size:12px}
@media(max-width:650px){html body .album-main .library-selection #toggleSelection{width:100%!important;min-width:0;padding:6px 0;font-size:10px;height:32px;text-align:center}}
.folder-symbol{width:42px;height:30px;background:#c7def9;border:1px solid #9cbfe8;border-radius:3px;position:relative;margin:5px auto}.folder-symbol:before{content:'';position:absolute;left:-1px;top:-6px;width:20px;height:7px;background:#c7def9;border:1px solid #9cbfe8;border-bottom:0;border-radius:3px 3px 0 0}
.folder-up{align-self:flex-start;background:transparent;color:#087ef5;font-size:12px;padding:6px 0;margin:0 0 8px;min-height:32px}
.album-sidebar .album-filter[data-folder-depth]{margin-left:var(--folder-indent,10px);min-width:0;border-left:1px solid #dce2e9;border-radius:0 5px 5px 0;padding-left:6px;padding-right:6px}.album-sidebar .album-filter[data-folder-depth] span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-sidebar .album-filter[data-folder-depth] span:before{content:'\21b3';margin-right:5px}.album-sidebar .album-filter[data-folder-depth] b{flex:none;margin-left:4px}
.folder-card{position:relative}.folder-card.photo-selected{outline:2px solid #087ef5}.folder-card .photo-check{bottom:8px;right:8px}
@media(max-width:650px){html body #fileViewer h3{top:56px;right:16px;font-size:12px}html body #fileViewer .viewer-actions{top:8px;bottom:auto;right:44px;left:8px;margin:0;justify-content:flex-start;gap:10px}html body #fileViewer .viewer-stage{touch-action:none}}
@media(max-width:650px){html body #fileViewer .viewer-card h3{top:56px;right:16px;font-size:12px}html body #fileViewer .viewer-card .viewer-actions{top:8px;bottom:auto;right:44px;left:8px;margin:0;justify-content:flex-start;gap:10px}}
#albumGrid [data-file-id],#albumGrid [data-file-id] *, .photo-context{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.viewer-neighbor{pointer-events:none}
.new-category{background:transparent;color:#087ef5;font-size:12px;text-align:left;padding:12px 8px;flex:none}
@media(max-width:650px){html body .album-main .library-selection{position:sticky;top:0;z-index:22;background:#fff;padding-top:6px;padding-bottom:8px;box-shadow:0 2px 4px #00000008}.photo-context button:disabled{opacity:.4;cursor:default}}
.video-preview-fallback{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:6px;background:#edf0f4;color:#727c89;font-size:10px;pointer-events:none}.video-preview-fallback:before{content:'\25b6';font-size:24px;color:#8d99a8}
@media(max-width:650px){html body main .album-main .library-selection{background:rgba(255,255,255,.28);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-height:44px;padding-top:3px;padding-bottom:5px;box-shadow:none}html body main .album-main .library-selection #selectionCount{top:34px;font-size:9px;line-height:10px}html body #albumActionModal .folder-fields{gap:12px}html body #albumActionModal .folder-fields>label{margin-top:-8px}html body #albumActionModal h2{margin-bottom:2px}}
.folder-information:empty{display:none}.folder-info-edit{display:grid;gap:5px;width:100%;text-align:left;background:transparent;color:#717b88;padding:8px 0 12px;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.folder-relock{background:transparent;color:#087ef5;padding:6px 0;font-size:12px}.folder-cover{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.folder-card.has-cover{min-height:140px;overflow:hidden;justify-content:stretch;align-content:end}.folder-card.has-cover strong,.folder-card.has-cover small{z-index:1;position:relative;background:#ffffffed;padding:4px}.folder-lock{z-index:2;position:absolute;top:8px;right:6px;background:#3a445acc;color:#fff;font-size:10px;border-radius:4px;padding:4px}.folder-fields .folder-parent-field{position:relative;margin:0 auto!important}.folder-parent-field>span{position:absolute;right:30px;top:5px;z-index:1;color:#8a9099;font-size:9px;pointer-events:none}.folder-parent-field select{padding-top:19px!important;padding-bottom:5px!important}.folder-fields textarea{width:100%;resize:vertical;padding:10px;border:1px solid #dce0e5;border-radius:6px;font:inherit}.folder-fields .folder-access-field{width:100%;max-width:none;text-align:left;margin:0;font-size:12px}
@media(max-width:650px){html body main .album-main .library-selection{background:rgba(235,240,246,.50);-webkit-backdrop-filter:blur(28px) saturate(170%);backdrop-filter:blur(28px) saturate(170%);border-bottom:1px solid #ffffff66;box-shadow:0 1px 4px #27334418}html body main .album-main .library-selection .secondary-button{background:rgba(255,255,255,.48);border-color:#ffffff99}html body main #albumActionModal .modal-card{max-height:88dvh;padding-top:24px;gap:10px}html body main #albumActionModal .folder-fields{gap:10px}}
@media(max-width:650px){html body #albumActionModal .modal-card{padding-top:24px;gap:10px}html body #albumActionModal .folder-fields{gap:10px}}
.folder-security-note{font-size:11px;color:#a05c25;line-height:1.5}
html body main.demo-layout .album-main .library-selection:not(.is-stuck) { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 0; }
html body main.demo-layout .album-main .library-selection.is-stuck { background: rgba(245,247,250,.55); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border-radius: 12px; }
html body #albumGrid .folder-card.has-cover .folder-symbol { display: block; position: absolute; top: 12px; left: 10px; z-index: 2; width: 24px; height: 18px; background: #c4ddf7; border: 1px solid #80a9d0; box-shadow: 0 1px 4px #5556; }
html body #albumGrid .folder-card, html body #albumGrid .album-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
html body .photo-context { max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; overscroll-behavior: contain; }
html body .photo-context button.hidden { display: none; }
html body #albumGrid .folder-card { display:block; padding:0; text-align:left; background:#fff; overflow:hidden; min-height:0; align-content:normal; }
html body #albumGrid .folder-card .album-cover { position:relative; aspect-ratio:1; display:grid; place-items:center; overflow:hidden; background:#f2f6fc; }
html body #albumGrid .folder-card .album-cover img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
html body #albumGrid .folder-card .folder-symbol { position:relative; top:auto; left:auto; width:38px; height:29px; background:#c4ddf7; border:1px solid #9bbbdc; box-shadow:none; }
html body #albumGrid .folder-card .folder-symbol[hidden] { display:none; }
html body #albumGrid .folder-card .album-info { padding:8px; }
html body #albumGrid .folder-card strong,html body #albumGrid .folder-card small { background:transparent; padding:0; display:block; text-align:left; }
html body #albumGrid.is-list .folder-card { display:flex; align-items:center; gap:12px; border:0; border-bottom:1px solid #e0e4e9; border-radius:0; min-height:72px; }
html body #albumGrid.is-list .folder-card .album-cover { width:64px; height:64px; flex:0 0 64px; }
html body #albumGrid.is-list .folder-card .album-info { flex:1; min-width:0; }
html body .upload-option-row { align-items:start; }
html body .upload-option-row > label { display:flex; flex-direction:column; justify-content:flex-start; gap:7px; }
html body #uploadCreateFolder { width:100%; margin:0; font-size:12px; min-height:32px; }
html body #albumGrid .folder-card .folder-lock { font-size:20px; line-height:1; width:28px; height:28px; padding:4px; display:grid; place-items:center; background:rgba(255,255,255,.3); border-radius:6px; top:6px; right:6px; }
html body #albumGrid .folder-card.password-protected .album-cover > img { filter:blur(3px); transform:scale(1.04); opacity:.7; }
html body .pending-cover-button { flex:0 0 64px; width:64px; min-height:36px; padding:4px; font-size:11px; color:#087ef5; background:#edf5ff; border-radius:6px; }
html body .pending-cover-button[aria-pressed=true] { color:#fff; background:#087ef5; }
html body .edit-album-command { display:inline-flex; align-items:center; justify-content:center; background:#edf5ff; color:#087ef5; padding:7px 12px; border-radius:6px; font-size:12px; margin:4px 0; min-height:34px; }
html body .upload-fixed-header #uploadStatus { position:static; width:100%; grid-column:1 / -1; flex-basis:100%; margin:6px 0 0; font-size:12px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
html body .upload-fixed-header { flex-wrap:wrap; }
html body.album-dialog-open{position:fixed!important;width:100%;overflow:hidden!important}
#albumActionModal{overscroll-behavior:none;touch-action:pan-y}
#albumActionModal .modal-card{max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}
#albumGrid [data-file-id],#albumGrid [data-file-id] *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.album-toast{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:90%;padding:9px 14px;background:#24272ddd;color:white;border-radius:7px;font-size:13px;z-index:2000;pointer-events:none;opacity:0;transition:opacity .45s}
.album-toast.visible{opacity:1}
.album-cover-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.album-cover-picker.hidden{display:none}
.album-cover-picker button{padding:3px;aspect-ratio:1;min-width:0;border:2px solid transparent;background:#f1f3f5;border-radius:6px;font-size:12px}
.album-cover-picker button[aria-pressed=true]{border-color:#087ef5}
.album-cover-picker img{width:100%;height:100%;object-fit:cover;border-radius:3px}
.album-share-command{width:32px;height:32px;flex:none;padding:0;background:#eef0f4;color:#333;border-radius:6px;font-size:20px;line-height:1;letter-spacing:0}
html body #albumGrid .folder-card.password-protected .album-cover > img{filter:blur(1.3px);opacity:.85}
html body .album-toolbar .album-share-command{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:28px;min-height:28px;padding:0;background:transparent;color:#596579;font-size:18px;line-height:1;align-self:center}
.album-share-control{position:relative;display:inline-flex;align-items:center;flex:none}
.album-share-control[hidden],.album-share-menu[hidden]{display:none}
.album-share-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:80;min-width:100px;padding:4px;background:#fff;border:1px solid #e4e7ec;border-radius:8px;box-shadow:0 6px 20px #00000018}
.album-share-menu button{width:100%;min-height:36px;border:0;background:transparent;color:#596579;text-align:center}
html body .folder-fields .folder-parent-field > span { top:10px; left:0; right:0; text-align:center; }
html body .folder-fields .folder-parent-field select { text-align:center; text-align-last:center; padding-top:27px!important; padding-bottom:9px!important; }
@media(max-width:650px){html body .album-main .library-selection:not(.selection-active) #createAlbum{grid-column:2/5}}
