.hffu{position:relative;max-width:760px;padding:24px;border:1px solid #e2e2e2;border-radius:12px;background:#fff;box-sizing:border-box}.hffu *{box-sizing:border-box}.hffu-title{margin:0 0 22px}.hffu-field,.hffu-step{margin:0 0 20px}.hffu label,.hffu-step>label{display:block;margin:0 0 7px;font-weight:600}.hffu select,.hffu input[type=text],.hffu input[type=password]{width:100%;min-height:46px;padding:9px 12px;border:1px solid #cfcfcf;border-radius:7px;background:#fff;font-size:16px}.hffu-choice{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:420px;margin:0 auto}.hffu-choice-button{width:100%;min-height:54px;border:1px solid #bbb;border-radius:8px;font-size:17px;font-weight:600;cursor:pointer;padding:12px 20px}
.hffu .hffu-choice-button{background:#fff!important;color:#222!important;}.hffu-choice-button:hover{background:#f5f5f5}.hffu-folder-row{display:flex;gap:10px;align-items:center}.hffu-folder-row select{flex:1}.hffu-button{border:1px solid #b8b8b8;border-radius:7px;min-height:44px;padding:9px 14px;font-size:15px;cursor:pointer}.hffu-button-primary{border-color:#222}.hffu-button-danger{border-color:#a61b1b}
/* Qualified with the .hffu root (not just the bare class) so these beat a theme's own
   button color reset even when the theme's rule also uses !important: with two rules of
   equal !important weight, the more specific selector wins regardless of load order. */
.hffu .hffu-button{background:#fff!important;color:#222!important;}
.hffu .hffu-button:hover{background:#f4f4f4!important;}
.hffu .hffu-button-primary{background:#222!important;color:#fff!important;}
.hffu .hffu-button-primary:hover{background:#000!important;}
.hffu .hffu-button-danger{background:#a61b1b!important;color:#fff!important;}
.hffu .hffu-button-danger:hover{background:#8f1616!important;}.hffu-folder-row .button{white-space:nowrap}.hffu-new-folder-box{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}.hffu-new-folder-box input{flex:1 1 auto;min-width:0}.hffu-new-folder-actions{display:flex;gap:8px}.hffu-dropzone{position:relative;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:24px;text-align:center;border:2px dashed #c8c8c8;border-radius:12px;background:#fafafa;cursor:pointer;transition:.15s ease}.hffu-dropzone:hover,.hffu-dropzone:focus,.hffu-dropzone.is-dragging{border-color:#777;background:#f3f3f3;outline:none}.hffu-dropzone span{color:#666;font-size:14px}.hffu-drop-icon{font-size:34px;line-height:1}.hffu-drop-title{font-size:17px}.hffu-files{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hffu-files-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:12px}.hffu-file{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #e3e3e3;border-radius:8px;background:#fff;min-width:0}.hffu-file img{width:58px;height:58px;flex:0 0 58px;object-fit:cover;border-radius:6px}.hffu-file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.hffu-file-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hffu-file-info span{font-size:12px;color:#777}.hffu-remove{border:0;background:transparent;cursor:pointer;font-size:24px;line-height:1;color:#777;padding:5px}.hffu-remove:hover{color:#000}.hffu-actions{margin-top:20px}.hffu-upload{min-height:46px;padding-left:20px!important;padding-right:20px!important}.hffu-status,.hffu-remove-status{min-height:22px;margin-top:12px;font-size:14px}.hffu-status-success,.hffu-remove-status.success{color:#237a3b}.hffu-status-error,.hffu-remove-status.error{color:#b42318}.hffu-status-warning{color:#8a5a00}.hffu-status-working{color:#555}.hffu-progress-wrap{margin-top:16px}.hffu-progress{height:10px;background:#e8e8e8;border-radius:999px;overflow:hidden}.hffu-progress span{display:block;height:100%;width:0;background:#333;transition:width .1s linear}.hffu-progress-text{font-size:12px;text-align:right;margin-top:5px;color:#555}.hffu-notice{padding:14px 16px;border-radius:8px}.hffu-notice.hffu-error{background:#fff2f2;color:#8a1c1c;border:1px solid #f0c5c5}.hffu-busy{opacity:.85}.hffu-help{color:#666;margin-top:-10px}.hffu-album-tools{display:flex;gap:8px;margin:0 0 10px}.hffu-albums-list{border:1px solid #ddd;border-radius:8px;overflow:hidden;margin-bottom:18px}.hffu-album-item{display:grid!important;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;padding:12px 14px;margin:0!important;padding-left:calc(14px + (var(--hffu-depth, 0) * 24px));border-bottom:1px solid #eee;font-weight:400!important;cursor:pointer}.hffu-album-item:last-child{border-bottom:0}.hffu-album-item:hover{background:#fafafa}.hffu-album-name{font-weight:600}.hffu-album-item small{color:#777}.hffu-empty{padding:16px;color:#666}.hffu-delete-options{border:1px solid #ddd;border-radius:8px;padding:14px;margin:0 0 18px}.hffu-delete-options legend{padding:0 6px;font-weight:600}.hffu-delete-options label{font-weight:400;margin:0 0 10px}.hffu-delete-options label:last-child{margin-bottom:0}.hffu-subfolder-option{margin-top:12px;padding-top:12px;border-top:1px solid #eee}.hffu-login{max-width:480px;margin:0 auto;padding:24px;border:1px solid #ddd;border-radius:12px;background:#fff}.hffu-login-inner h3{margin-top:0}.hffu-login-inner>p{color:#666}.hffu-login-field{margin-bottom:14px}.hffu-remember{font-weight:400!important;margin:0 0 16px!important}.hffu-login-form .hffu-button{width:100%}.hffu-login-status{min-height:22px;margin-top:10px;color:#b42318}.hffu-lost-password{display:block;margin-top:14px;text-align:center;font-size:14px}.hffu-notice{margin-bottom:15px}.hffu-panel[hidden],.hffu-step[hidden],.hffu-choice[hidden],.hffu-progress-wrap[hidden],.hffu-new-folder-box[hidden],.hffu-albums-step[hidden]{display:none!important}@media(max-width:600px){.hffu{padding:16px}.hffu-folder-row,.hffu-new-folder-box{flex-direction:column;align-items:stretch}.hffu-folder-row .button,.hffu-new-folder-actions .hffu-button{width:100%}.hffu-new-folder-actions{flex-direction:column}.hffu-files-list{grid-template-columns:1fr}.hffu-album-tools{flex-direction:column}.hffu-album-tools .hffu-button{width:100%}}

.hffu-new-folder-context{flex:0 0 100%;width:100%;padding:10px 12px;border:1px solid #e5e5e5;border-radius:7px;background:#f7f7f7;font-size:14px;color:#555}.hffu-new-folder-context strong{color:#222}.hffu-button:disabled{opacity:.55;cursor:not-allowed}.hffu-button:disabled:hover{background:inherit}

/* 0.2.9: left-align album/folder names while preserving nested hierarchy. */
.hffu-album-item{padding-left:14px!important;}
.hffu-album-name{display:block;min-width:0;text-align:left;padding-left:calc(var(--hffu-depth, 0) * 24px);}
.hffu-album-item small{display:block;text-align:right;white-space:nowrap;}

/* 0.2.10: navigation back to the main Add/Remove menu. */
.hffu-back-menu{display:block;margin:0 0 18px auto;}
@media(max-width:600px){.hffu-back-menu{width:100%;margin:0 0 14px;}}

/* 0.2.23: "Form Alignment" positions the whole form box on the page (left/center/right).
   It must never change the alignment of anything *inside* the form — labels, buttons,
   and fields always stay left-aligned regardless of this setting. */
.hffu.hffu-form-align-left{margin-left:0;margin-right:auto;}
.hffu.hffu-form-align-center{margin-left:auto;margin-right:auto;}
.hffu.hffu-form-align-right{margin-left:auto;margin-right:0;}

/* 0.2.13: admin-controlled form outline visibility. */
.hffu-outline-hidden{border:0!important;}
/* 0.2.15: individual photo deletion UI */
.hffu-remove-mode-switch{display:flex;justify-content:center;gap:8px;margin:0 0 18px;}
.hffu-remove-mode{min-width:150px;}
.hffu-remove-mode-active{background:#222;color:#fff;border-color:#222;}.hffu-remove-mode-active:hover{background:#f4f4f4;color:#222;border-color:#222;}
.hffu-photo-album{border:1px solid #ddd;border-radius:8px;margin:0 0 10px;overflow:hidden;}
.hffu-photo-album-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fafafa;}
.hffu-photo-album-header strong{flex:1;text-align:left;}
.hffu-photo-album-toggle{white-space:nowrap;}
/* One photo per row (not a multi-column grid), left-aligned, with an
   admin-configurable thumbnail size (--hffu-photo-thumb-size, set from JS
   using the "Photo thumbnail size" setting). display:flex + !important
   guards this against theme CSS (Divi, Avada, etc.) that broadly resets
   label/input/img display and positioning. */
.hffu-photo-list{display:flex!important;flex-direction:column!important;gap:10px;padding:10px;}
.hffu-photo-item{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:14px;width:100%;border:1px solid #e5e5e5;border-radius:7px;padding:12px;background:#fff;box-sizing:border-box;}
.hffu-photo-item img{width:var(--hffu-photo-thumb-size,120px);height:var(--hffu-photo-thumb-size,120px);flex:0 0 var(--hffu-photo-thumb-size,120px);object-fit:cover;border-radius:6px;background:#eee;}
.hffu-photo-item-info{min-width:0;flex:1 1 auto;text-align:left!important;}
.hffu-photo-item-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;text-align:left!important;}
.hffu-photo-item-info small{display:block;color:#777;margin-top:3px;text-align:left!important;}
.hffu-photo-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px;}
.hffu-photo-delete-warning{padding:10px 12px;border:1px solid #ead5a0;background:#fff8df;border-radius:7px;color:#765b00;margin:0 0 12px;}
.hffu-photo-empty{padding:12px;color:#777;text-align:left;}
@media(max-width:600px){.hffu-remove-mode-switch{flex-direction:column;}.hffu-remove-mode{width:100%;}.hffu-photo-item img{width:var(--hffu-photo-thumb-size,88px);height:var(--hffu-photo-thumb-size,88px);flex-basis:var(--hffu-photo-thumb-size,88px);}}

/* Defensive reset: some themes (Divi, Avada, etc.) globally restyle checkboxes
   with position:absolute/opacity:0 for their own custom toggle graphics. That
   collides with our plain checkboxes here and makes them appear detached from
   their row. Force plain, in-flow native checkboxes inside this plugin's UI. */
.hffu input[type=checkbox]{position:static!important;float:none!important;display:inline-block!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;opacity:1!important;vertical-align:middle!important;flex:0 0 18px;}

/* 0.2.23: front-end drag-to-reorder photos UI (replaces the old rename-based ordering). */
.hffu-reorder-photo-list{padding:10px;display:flex!important;flex-direction:column!important;gap:10px}
.hffu-reorder-item{display:flex!important;flex-direction:row!important;align-items:center!important;text-align:left!important;gap:14px;width:100%;border:1px solid #e5e5e5;border-radius:7px;padding:12px;background:#fff;box-sizing:border-box;touch-action:pan-y}
.hffu-reorder-position{flex:0 0 24px;font-size:12px;font-weight:600;color:#888;text-align:center}
.hffu-reorder-handle{flex:0 0 auto;cursor:grab;touch-action:none;font-size:20px;line-height:1;color:#888;padding:6px;background:transparent;border:0;user-select:none}
.hffu-reorder-handle:hover{color:#333}
.hffu-reorder-item img{width:var(--hffu-photo-thumb-size,120px);height:var(--hffu-photo-thumb-size,120px);flex:0 0 var(--hffu-photo-thumb-size,120px);object-fit:cover;border-radius:6px;background:#eee}
.hffu-reorder-photo-info{min-width:0;flex:1 1 auto;text-align:left!important}
.hffu-reorder-photo-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;text-align:left!important}
.hffu-reorder-item.hffu-dragging{opacity:.55;background:#f5f5f5;border-color:#bbb}
.hffu-reorder-status{min-height:22px;margin-top:12px;font-size:14px;color:#237a3b}
.hffu-remove-mode-switch{flex-wrap:wrap}
@media(max-width:600px){.hffu-reorder-item img{width:var(--hffu-photo-thumb-size,88px);height:var(--hffu-photo-thumb-size,88px);flex-basis:var(--hffu-photo-thumb-size,88px);}}

/* CSS display:grid overrides the browser's default [hidden] behavior. Explicitly restore it. */
.hffu-photo-list[hidden],
.hffu-reorder-photo-list[hidden]{display:none!important;}

/* 0.2.28: unified "Manage Photos & Albums" screen — search/expand-collapse toolbar,
   a single nested tree of albums (replacing the old Remove Albums / Delete Photos /
   Reorder Photos tabs), per-album kebab menu, and inline photo rename/reorder/move/delete. */
/* Search sits on its own full-width row, with the action buttons always on the row
   below — a fixed two-row layout rather than one that only wraps at narrow widths. */
.hffu-manage-toolbar{display:flex;flex-direction:column;gap:10px;margin:0 0 14px;}
.hffu-manage-search{width:100%;min-width:0;}
.hffu-album-search{width:100%;min-height:44px;padding:9px 12px;border:1px solid #cfcfcf;border-radius:7px;font-size:15px;}
.hffu-manage-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;}
.hffu-manage-tree{border:1px solid #ddd;border-radius:8px;overflow:hidden;margin-bottom:16px;}
.hffu-tree-row{display:flex!important;align-items:center!important;gap:10px;padding:12px 14px;padding-left:calc(14px + (var(--hffu-depth, 0) * 22px));border-bottom:1px solid #eee;background:#fff;}
.hffu-manage-tree>.hffu-tree-row:last-child,.hffu-manage-tree>.hffu-tree-photos:last-child+.hffu-tree-row{border-bottom:1px solid #eee;}
/* Everything but the checkbox, move arrows and kebab: title line + photo-count line,
   the whole thing clickable/tappable to open that album's own photos (see the click
   and keydown handlers in createAlbumRow) — a bigger, easier target than a bare arrow. */
.hffu-tree-content{flex:1 1 auto;min-width:0;cursor:pointer;padding:2px 0;}
.hffu-tree-content:focus-visible{outline:2px solid #4a90d9;outline-offset:2px;border-radius:4px;}
.hffu-tree-title-row{display:flex;align-items:center;gap:8px;}
.hffu-tree-name{flex:1 1 auto;min-width:0;font-weight:600;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Points right when collapsed, down when this album's photos are showing. */
.hffu-tree-chevron{flex:0 0 auto;color:#888;font-size:12px;}
.hffu-tree-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:3px;}
.hffu-tree-count{flex:0 0 auto;color:#777;font-size:13px;white-space:nowrap;}
/* A separate, explicit control from the title above — expands/collapses just this
   album's own subfolders (collapsed by default), and must not also open its photos,
   so its click handler stops the click from reaching .hffu-tree-content. */
.hffu-tree-subfolders{flex:0 0 auto;border:1px solid #d5d5d5;border-radius:14px;padding:3px 10px;font-size:12px;line-height:1.6;cursor:pointer;}
.hffu .hffu-tree-subfolders{background:#fff!important;color:#444!important;}
.hffu .hffu-tree-subfolders:hover{background:#f4f4f4!important;}
/* Match the up/down move buttons' 30x30 footprint so the checkbox sits at the same
   size and vertically centers with them and the title, instead of looking like a
   stray, undersized native checkbox next to much larger buttons. Needs the extra
   .hffu ancestor + !important to beat the 18px checkbox-sizing rule above, same
   specificity trick used elsewhere in this file. */
.hffu input[type=checkbox].hffu-tree-select{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important;margin:0!important;}
/* Shown checked-but-faded on a subfolder whose parent album is already selected for
   export — that subfolder is included automatically, so its own box isn't actionable.
   Needs !important + the extra .hffu ancestor to beat the opacity:1!important rule
   above (a same-specificity !important loses to a higher-specificity one, not to
   source order), the same trick used for the white-button CSS. */
.hffu input[type=checkbox].hffu-tree-select-implied{opacity:.4!important;cursor:default;}
.hffu-tree-kebab-wrap{position:relative;flex:0 0 auto;}
.hffu-tree-kebab{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:6px 8px;color:#555;border-radius:6px;}
.hffu-tree-kebab:hover{background:#f0f0f0;}
.hffu-tree-menu{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.12);z-index:50;min-width:140px;overflow:hidden;}
.hffu-tree-menu button{display:block;width:100%;text-align:left;padding:10px 14px;border:0;background:#fff;cursor:pointer;font-size:14px;}
.hffu-tree-menu button:hover{background:#f5f5f5;}
.hffu-tree-menu-danger{color:#a61b1b;}
.hffu-tree-rename-wrap{flex:1 1 auto;display:flex!important;align-items:center;gap:6px;min-width:0;}
.hffu-tree-rename-input{flex:1 1 auto;min-height:36px;padding:6px 10px;border:1px solid #cfcfcf;border-radius:6px;font-size:14px;}
.hffu-tree-photos{padding:10px 14px 16px;background:#fafafa;border-bottom:1px solid #eee;}
.hffu-photo-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px;}
.hffu-manage-photo-rows{display:flex!important;flex-direction:column!important;gap:10px;}
/* Desktop: checkbox, up/down arrows and thumbnail on the left; name (above) and size
   (below) stacked in one column to the right of the thumbnail; confirm/cancel on
   the far right, vertically centered across both text lines. */
.hffu-manage-photo-row{display:grid!important;grid-template-columns:auto auto var(--hffu-photo-thumb-size,120px) minmax(0,1fr) auto auto;grid-template-areas:"handle cb thumb name confirm cancel" "handle cb thumb size confirm cancel";align-items:center;column-gap:12px;row-gap:2px;width:100%;min-width:0;max-width:100%;border:1px solid #e5e5e5;border-radius:7px;padding:10px;background:#fff;box-sizing:border-box;touch-action:pan-y;text-align:left!important;overflow:hidden;}
.hffu-manage-photo-row .hffu-manage-photo-check{grid-area:cb;}
.hffu-manage-photo-thumb{grid-area:thumb;width:var(--hffu-photo-thumb-size,120px);height:var(--hffu-photo-thumb-size,120px);object-fit:cover;border-radius:6px;background:#eee;}
.hffu-manage-photo-name{grid-area:name;width:100%;min-width:0;min-height:38px;padding:6px 10px;border:1px solid #cfcfcf;border-radius:6px;font-size:14px;box-sizing:border-box;}
.hffu-manage-photo-size{grid-area:size;color:#777;}
.hffu-manage-photo-row .hffu-inline-confirm{grid-area:confirm;}
.hffu-manage-photo-row .hffu-inline-cancel{grid-area:cancel;}
.hffu-inline-confirm,.hffu-inline-cancel{flex:0 0 auto;border:1px solid #ccc;background:#fff;border-radius:6px;width:34px;height:34px;font-size:15px;line-height:1;cursor:pointer;}
.hffu-inline-confirm{color:#237a3b;border-color:#bfe3c8;}
.hffu-inline-confirm:hover{background:#eefaf1;}
.hffu-inline-cancel{color:#a61b1b;border-color:#f0c5c5;}
.hffu-inline-cancel:hover{background:#fff2f2;}
.hffu-tree-photo-status{min-height:20px;margin-top:10px;font-size:13px;color:#237a3b;}
.hffu-empty{padding:14px;color:#666;}
/* Small modal used for Move photos/album and Delete album confirmation. */
.hffu-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px;z-index:9999;}
.hffu-modal{background:#fff;border-radius:10px;max-width:420px;width:100%;max-height:85vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);}
.hffu-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #eee;}
.hffu-modal-header h4{margin:0;font-size:16px;}
.hffu-modal-close{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:#666;padding:2px 6px;}
.hffu-modal-body{padding:16px 18px;}
.hffu-modal-body label{font-weight:400;}
.hffu-modal-body select,.hffu-modal-body input[type=text]{width:100%;min-height:44px;padding:9px 12px;border:1px solid #cfcfcf;border-radius:7px;font-size:15px;}
.hffu-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid #eee;}
.hffu-picker-new-folder{margin-top:14px;}
.hffu-picker-new-folder>div{margin-top:8px;display:flex;flex-direction:column;gap:8px;}
.hffu-picker-status{font-size:13px;color:#b42318;min-height:18px;}
/* Import modal: file picker + batch-progress bar shown while a zip is imported. */
.hffu-modal-body input[type=file]{width:100%;padding:9px 0;font-size:14px;}
.hffu-import-progress{margin-top:14px;}
.hffu-import-progress-bar{display:block;width:100%;height:10px;border-radius:6px;background:#eee;overflow:hidden;}
.hffu-import-progress-bar>span{display:block;height:100%;width:0;background:#2f7a3d;border-radius:6px;transition:width .2s ease;}
.hffu-import-progress-text{margin-top:6px;font-size:13px;color:#555;}
.hffu-tree-row{position:relative;}
/* Per-row up/down arrow buttons for reordering albums and photos. */
.hffu-arrow-btn{flex:0 0 auto;border:1px solid #d5d5d5;border-radius:6px;width:30px;height:30px;font-size:13px;line-height:1;cursor:pointer;padding:0;}
.hffu .hffu-arrow-btn{background:#fff!important;color:#444!important;}
.hffu .hffu-arrow-btn:hover{background:#f4f4f4!important;}
.hffu-arrow-btn:disabled{opacity:.35;cursor:not-allowed;}
.hffu-arrow-btn-group{display:flex;flex-direction:row;gap:4px;order:-1;}
.hffu-manage-photo-row .hffu-arrow-btn-group{grid-area:handle;}
/* A dimmed overlay with a "working" message shown over the whole form while a Manage
   screen action (rename, move, delete, reorder, create folder) is saving, so it's clear
   something is happening instead of the form just sitting there unresponsive. */
.hffu.hffu-dimmed>*:not(.hffu-working-overlay){opacity:.35;filter:saturate(55%);pointer-events:none;transition:opacity .15s ease;}
.hffu-working-overlay{position:absolute;inset:0;z-index:60;display:none;align-items:center;justify-content:center;padding:20px;pointer-events:none;}
.hffu-working-box{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #ddd;border-radius:10px;padding:14px 20px;box-shadow:0 12px 34px rgba(0,0,0,.2);font-size:15px;font-weight:600;color:#222;}
.hffu-working-spinner{flex:0 0 auto;width:18px;height:18px;border:2px solid #d8d8d8;border-top-color:#333;border-radius:50%;animation:hffu-spin .7s linear infinite;}
@keyframes hffu-spin{to{transform:rotate(360deg);}}

@media(max-width:600px){
  .hffu-manage-toolbar{flex-direction:column;align-items:stretch;}
  .hffu-manage-toolbar-actions{flex-direction:column;}
  .hffu-manage-toolbar-actions .hffu-button{width:100%;}
  .hffu-photo-toolbar{flex-direction:column;}
  .hffu-photo-toolbar .hffu-button{width:100%;}
  /* Three rows: (1) checkbox/handle/thumbnail/size, (2) the filename box at full
     width so long names scroll inside the box instead of overflowing the card,
     (3) confirm/cancel left-aligned underneath the filename. */
  .hffu-manage-photo-row{grid-template-columns:auto auto var(--hffu-photo-thumb-size,88px) minmax(0,1fr);grid-template-areas:"handle cb thumb size" "name name name name" "confirm cancel . .";row-gap:8px;column-gap:10px;}
  .hffu-manage-photo-thumb{width:var(--hffu-photo-thumb-size,88px);height:var(--hffu-photo-thumb-size,88px);}
  .hffu-manage-photo-size{white-space:nowrap;font-size:12px;}
  .hffu-manage-photo-row .hffu-inline-confirm,.hffu-manage-photo-row .hffu-inline-cancel{justify-self:start;}
  .hffu-inline-confirm,.hffu-inline-cancel{width:34px;height:34px;font-size:14px;}
  .hffu-modal{max-width:none;}
}
