@import url("/gallery-readable.css");
@import url("/galleries-readable.css");
@import url("/utility-readable.css");
@import url("/client-readable.css");
@import url("/interface-controls.css");
@import url("/interface-typography.css");
@import url("/interface-colors.css");
@import url("/interface-responsive.css");
.album-browser { margin:16px 0 22px; min-width:0; }
.album-breadcrumbs { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-height:32px; margin-bottom:12px; font-size:12px; color:var(--muted); }
.album-breadcrumbs button { appearance:none; border:0; background:none; padding:5px 0; color:inherit; font:inherit; cursor:pointer; }
.album-breadcrumbs button:hover { color:var(--text); text-decoration:underline; }
.album-breadcrumbs [aria-current] { color:var(--text); overflow-wrap:anywhere; }
.album-browser-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.album-browser-card { display:flex; align-items:center; gap:12px; width:100%; min-width:0; max-width:420px; padding:10px; background:var(--surface); border:1px solid var(--border); border-radius:7px; color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.album-browser-card:hover { background:var(--surface-alt); border-color:var(--muted); }
.album-browser-card:focus-visible { outline:2px solid var(--text); outline-offset:3px; }
.album-browser-cover { width:64px; height:52px; border-radius:4px; background:var(--accent-soft); color:var(--muted); overflow:hidden; display:grid; place-items:center; flex-shrink:0; }
.album-browser-cover img { width:100%; height:100%; object-fit:cover; }
.album-browser-cover>svg { width:24px; height:24px; }
.album-browser-copy { display:grid; gap:5px; min-width:0; flex:1; }
.album-browser-copy strong { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.album-browser-copy small { color:var(--muted); font-size:11px; }
.album-browser-card>svg { width:15px; height:15px; transform:rotate(-90deg); flex-shrink:0; color:var(--muted); }
.album-browser-actions { display:flex; justify-content:flex-end; gap:8px; margin:0 0 12px; }
.client-main>.album-browser { margin-top:16px; }
@media(max-width:600px) { .album-browser-grid { grid-template-columns:1fr; } .album-browser-card { max-width:none; } .album-browser-copy strong { font-size:14px; } .album-breadcrumbs { font-size:12px; } }
.album-browser-entry { min-width:0; border:1px solid var(--border); border-radius:7px; overflow:hidden; }
.album-browser-entry>.album-browser-card { max-width:none; border:0; border-radius:0; }
.album-browser-tools { display:flex; gap:3px; flex-wrap:wrap; align-items:center; padding:6px; border-top:1px solid var(--border); }
.album-browser-tools .btn { padding:5px 8px; font-size:11px; }
.album-browser-card[draggable="true"] { cursor:grab; }
.album-browser-card[draggable="true"]:active { cursor:grabbing; }
.album-dragging { opacity:.45; }
.album-drop-target { outline:2px solid var(--accent,var(--text)); outline-offset:3px; background:var(--accent-soft) !important; }
.album-drop-order { outline:2px dashed var(--text); outline-offset:3px; }
.album-breadcrumbs [data-album-drop] { display:inline-flex; align-items:center; min-height:36px; padding:6px 8px; border-radius:3px; }
.album-breadcrumbs [data-album-drop=""] { min-width:148px; text-align:left; }
.album-drag-hint { margin:10px 0 0; font-size:11px; line-height:1.5; }
.album-drag-status { margin:0; font-size:12px; line-height:1.5; color:var(--text); }
.album-drag-status:not(:empty) { margin-top:8px; }
.photo-album-drop-target { outline:2px solid var(--accent,var(--text)); outline-offset:3px; background:var(--accent-soft) !important; }
.photo-album-drop-actions { display:flex; justify-content:flex-end; margin:-2px 0 10px; }
.photo-album-drop-actions .btn { min-height:36px; padding:6px 16px; font-size:12px; }
.album-hover-pending { outline:2px dashed var(--accent,var(--text)); outline-offset:3px; }
.album-hover-panel { position:fixed; z-index:80; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; padding:16px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); box-shadow:0 12px 45px #0003; }
.album-hover-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; font-weight:600; }
.album-hover-heading>span { font-size:10px; color:var(--muted); font-weight:400; }
.album-hover-current { display:grid; gap:6px; min-height:62px; padding:10px; margin:12px 0; border:1px dashed var(--border); border-radius:5px; }
.album-hover-current strong { font-size:14px; overflow-wrap:anywhere; }
.album-hover-current>span { font-size:11px; color:var(--muted); line-height:1.5; }
.album-hover-panel .album-browser { margin:8px 0 0; }
.album-hover-panel .album-browser-card { max-width:none; }
.album-hover-panel .album-drag-hint { display:none; }
.album-hover-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.move-undo-notice { position:fixed; z-index:120; bottom:24px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:18px; width:max-content; max-width:calc(100vw - 32px); padding:14px 16px 14px 20px; border:1px solid var(--border); border-radius:7px; background:var(--text); color:var(--surface); box-shadow:0 8px 30px #0002; font-size:13px; line-height:1.5; }
.move-undo-message { min-width:0; max-width:520px; overflow-wrap:anywhere; }
.move-undo-notice button { border:0; background:transparent; color:inherit; font:inherit; font-weight:600; cursor:pointer; padding:8px; flex-shrink:0; min-height:36px; }
.move-undo-notice [data-move-undo] { text-decoration:underline; text-underline-offset:4px; }
.move-undo-notice [data-move-undo-dismiss] { font-size:22px; font-weight:400; padding:3px 8px; }
.move-undo-notice button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.move-undo-notice button:disabled { opacity:.55; cursor:wait; }
@media(max-width:600px) { .move-undo-notice { bottom:16px; gap:8px; padding:10px 8px 10px 14px; font-size:12px; } }
.gallery-album-bar { position:sticky; top:0; z-index:25; background:var(--surface); margin:0 -18px 20px; padding:14px 18px; border-bottom:1px solid var(--border); display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.gallery-album-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:6px; flex:1; min-width:0; }
.gallery-album-tab { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:7px 10px; max-width:100%; border:1px solid transparent; border-radius:5px; color:var(--muted); background:transparent; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.gallery-album-tab strong { font-weight:400; overflow-wrap:anywhere; min-width:0; }
.gallery-album-tab svg { width:15px; height:15px; flex-shrink:0; }
.gallery-album-tab:hover { color:var(--text); background:var(--surface-alt); }
.gallery-album-tab[aria-current=page] { color:var(--text); background:var(--accent-soft); border-color:var(--border); }
.gallery-album-tab[aria-current=page] strong { font-weight:500; }
.gallery-album-count { flex-shrink:0; color:var(--muted); font-size:10px; }
.gallery-album-tab[draggable=true] { cursor:grab; }
.gallery-album-tab:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.gallery-album-create { flex-shrink:0; font-size:11px; min-height:36px; padding:7px 9px; }
.gallery-album-bar .album-drag-status:not(:empty) { flex-basis:100%; margin:0; }
.gallery-photo-toolbar h2 { white-space:normal; min-width:0; overflow-wrap:anywhere; }
@media(max-width:760px) { .gallery-album-bar { margin-left:-14px; margin-right:-14px; padding-left:14px; padding-right:14px; } }
@media(max-width:600px) { .gallery-album-bar { gap:8px; } .gallery-album-tab { font-size:11px; padding:7px 8px; } }

/* Keep actions beside the destination, never nested inside its drag button. */
.gallery-album-entry { display:inline-flex; align-items:center; min-width:0; max-width:100%; border:1px solid var(--border); border-radius:6px; }
.gallery-album-entry .gallery-album-tab { border-radius:5px 0 0 5px; }
.gallery-album-entry-actions { display:flex; align-items:center; padding:0 3px; gap:1px; }
.gallery-album-entry-actions .icon-button { width:28px; height:30px; padding:6px; color:var(--muted); }
.gallery-album-entry-actions .icon-button:hover { color:var(--text); background:var(--surface-alt); }
.gallery-album-tabs { max-height:min(35vh,240px); overflow:auto; }
@media(max-width:600px) { .gallery-album-tabs { flex-basis:100%; } }
