/* /Components/Browser/AlbumBrowserComponent.razor.rz.scp.css */
.album-browser[b-xlvdb3cdel] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    --cell-gap: 5px;
}

/* ── Breadcrumbs ── */
.ab-breadcrumbs[b-xlvdb3cdel] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #888;
    border-bottom: 1px solid #2a2a40;
    flex-shrink: 0;
}
.ab-crumb-trail[b-xlvdb3cdel] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    overflow: hidden;
}
.ab-header-right[b-xlvdb3cdel] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}
.ab-crumb[b-xlvdb3cdel] {
    background: none;
    border: none;
    color: #9b59b6;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
}
.ab-crumb:hover[b-xlvdb3cdel] { text-decoration: underline; }
.ab-crumb.current[b-xlvdb3cdel] {
    color: #ccc;
    cursor: default;
}
.ab-crumb.current:hover[b-xlvdb3cdel] { text-decoration: none; }
.ab-sep[b-xlvdb3cdel] { color: #555; }

/* ── Toolbar ── */
.ab-toolbar[b-xlvdb3cdel] {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #1e1e30;
    flex-shrink: 0;
}
.ab-toolbar-left[b-xlvdb3cdel] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ab-toolbar-right[b-xlvdb3cdel] {
    display: flex;
    align-items: center;
}
.ab-search[b-xlvdb3cdel] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    width: 180px;
}
.ab-search[b-xlvdb3cdel]::placeholder { color: #666; }
.ab-sort[b-xlvdb3cdel] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
}
.ab-count[b-xlvdb3cdel] {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}
.ab-expand-btn[b-xlvdb3cdel] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
}
.ab-expand-btn:hover[b-xlvdb3cdel] {
    background: #2a2a40;
    color: #ddd;
}

/* ── Select / open mode ── */
.ab-mode-btn[b-xlvdb3cdel] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
    cursor: pointer;
}
.ab-mode-btn:hover:not(:disabled)[b-xlvdb3cdel] {
    background: #2a2a40;
    color: #ddd;
}
.ab-mode-btn.active[b-xlvdb3cdel] {
    background: #2c5d82;
    border-color: #3498db;
    color: #fff;
}
.ab-mode-btn:disabled[b-xlvdb3cdel] {
    opacity: 0.4;
    cursor: not-allowed;
}
.ab-clear-sel[b-xlvdb3cdel] {
    color: #3498db;
    white-space: nowrap;
}

/* ── Grid viewport (scrollable, takes remaining space) ── */
.ab-grid-viewport[b-xlvdb3cdel] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--cell-gap);

    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
}



/* ── Row ── */
.ab-row[b-xlvdb3cdel] {
    display: flex;
    gap: var(--cell-gap);
    box-sizing: border-box;
}

/* ── Sort-header group boundary ── */
.ab-group-header[b-xlvdb3cdel] {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.35rem;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ccc;
    border-bottom: 1px solid #2a2a40;
}

/* ── Cell ── */
.ab-cell[b-xlvdb3cdel] {
    width: fit-content;

    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    background: #1e1e30;
}
.ab-cell:hover[b-xlvdb3cdel] { border-color: #9b59b6; }

/* Amber, deliberately not the blue the Contributor panel highlights with (RightSidebar #3498db) or the
   green the contribute flow uses — a tile can be selected and highlighted at once, and two blues would be
   indistinguishable. Selected also wins over hover: during a drag the pointer sits on a tile it has just
   selected, and losing the marker under the cursor makes a sweep impossible to follow. */
.ab-cell.ab-selected[b-xlvdb3cdel],
.ab-cell.ab-selected:hover[b-xlvdb3cdel] {
    border-color: #f39c12;
    box-shadow: inset 0 0 0 2px rgba(243, 156, 18, 0.4);
}

/* Without this a sweep is a text selection to the browser, painting a blue smear across the grid. */
.album-browser.selecting .ab-cell[b-xlvdb3cdel] {
    user-select: none;
    -webkit-user-select: none;
}

/* Left alone, pressing on a photo starts a native image drag, which kills the pointer stream mid-sweep.
   `-webkit-user-drag` alone doesn't cover it — Firefox doesn't implement it — so the img is taken out of
   hit-testing entirely while selecting and the enclosing cell receives the pointer instead. The thumbnail
   is rendered by a child component, hence ::deep to reach past the isolation scope. */
.album-browser.selecting[b-xlvdb3cdel]  img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* ── Folder rows (sub-albums) ── */
.ab-folder-section[b-xlvdb3cdel] {
    flex-shrink: 0;
    border-bottom: 1px solid #2a2a40;
}
.ab-folder-cell[b-xlvdb3cdel] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

/* ── Empty states ── */
.ab-empty[b-xlvdb3cdel] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 3rem 1rem;
    color: #aaa;
    text-align: center;
}

.ab-empty-inline[b-xlvdb3cdel] {
    flex-direction: row;
    padding: 0.75rem 1rem;
}

.ab-empty-title[b-xlvdb3cdel] {
    margin: 0;
    font-size: 1.1rem;
    color: #ddd;
}

.ab-empty-hint[b-xlvdb3cdel] {
    margin: 0;
    font-size: 0.85rem;
}

.ab-empty-btn[b-xlvdb3cdel] {
    margin-top: 0.5rem;
    background: #2a2a40;
    border: 1px solid #556;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
}

.ab-empty-inline .ab-empty-btn[b-xlvdb3cdel] {
    margin-top: 0;
}

.ab-filter-badge[b-xlvdb3cdel] {
    display: inline-block;
    min-width: 1.2em;
    margin-left: 0.3em;
    padding: 0 0.35em;
    border-radius: 0.6em;
    background: #a05070;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: center;
}

/* Keyboard focus on a grid tile (tiles are focusable buttons; see picstoryGridKeys in index.html). */
.ab-cell:focus-visible[b-xlvdb3cdel] {
    outline: 3px solid #4da3ff;
    outline-offset: 1px;
    z-index: 1;
}

/* Press-and-hold feedback: the hold that switches between open and select takes 600 ms, which felt like
   nothing was happening. The pressed tile dips slightly while it's held. */
.ab-cell:active[b-xlvdb3cdel] {
    transform: scale(0.97);
    transition: transform 600ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .ab-cell:active[b-xlvdb3cdel] { transform: none; }
}
/* /Components/Browser/FaceGridPanel.razor.rz.scp.css */
.face-grid-panel[b-yi1il036e2] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    height: 100%;
    overflow-y: auto;
}

.fgp-header[b-yi1il036e2] {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.fgp-title[b-yi1il036e2] {
    font-size: 1.1rem;
    font-weight: 600;
}

.fgp-clear-sel[b-yi1il036e2] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #3498db;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
}
.fgp-clear-sel:hover[b-yi1il036e2] {
    background: #2a2a40;
    color: #5dade2;
}

.empty[b-yi1il036e2] {
    padding: 12px;
    color: #888;
    font-size: 0.85rem;
}

.fgp-filter-bar[b-yi1il036e2] {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 8px 10px;
    background: var(--bg-input, #2d2d44);
    border-radius: 6px;
}

.fgp-filter-row[b-yi1il036e2] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 220px;
}

.fgp-filter-label[b-yi1il036e2] {
    color: var(--color-muted, #888);
    font-size: 0.78rem;
    white-space: nowrap;
}

.fgp-filter-row input[type="range"][b-yi1il036e2] {
    flex: 1;
    accent-color: #3498db;
}

.fgp-grid[b-yi1il036e2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 10px;
}

.fgp-tile[b-yi1il036e2] {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    user-select: none;
}

.fgp-tile-selected[b-yi1il036e2] {
    border-color: #3498db;
}

.fgp-tile-placeholder[b-yi1il036e2] {
    width: 100%;
    height: 100%;
    background: #222;
}

.fgp-open-btn[b-yi1il036e2] {
    position: absolute;
    top: 4px;
    right: 6px;
    padding: 1px 5px;
    border: none;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
}

.fgp-open-btn:hover[b-yi1il036e2] {
    background: rgba(0, 0, 0, 0.8);
}

.fgp-confidence[b-yi1il036e2] {
    position: absolute;
    bottom: 4px;
    right: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    pointer-events: none;
}

.fgp-preview-backdrop[b-yi1il036e2] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.fgp-preview-box[b-yi1il036e2] {
    max-width: min(80vw, 700px);
    max-height: min(80vh, 700px);
}

.fgp-preview-frame[b-yi1il036e2] {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.fgp-preview-img[b-yi1il036e2] {
    display: block;
    max-width: min(80vw, 700px);
    max-height: min(80vh, 700px);
    border-radius: 6px;
}

.fgp-preview-highlight[b-yi1il036e2] {
    position: absolute;
    /* outline, not border: this app resets box-sizing to border-box globally (app.css), which draws a
       border inward from the box's declared edges — cutting into the face instead of framing it. outline
       is always drawn outside the box regardless of box-sizing, and doesn't add to its size at all, so the
       exact face rectangle underneath stays fully visible. outline-offset pushes it out one extra pixel so
       it clears the dark contrast ring below rather than overlapping it. */
    outline: 3px solid #3ec6ff;
    outline-offset: 1px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.fgp-preview-loading[b-yi1il036e2] {
    padding: 24px 32px;
    background: #222;
    color: #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
}

.load-more[b-yi1il036e2] {
    align-self: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    border: 1px solid var(--border-input, #444);
    border-radius: 6px;
    background: var(--bg-input, #2d2d44);
    color: var(--color-text, #ccc);
    cursor: pointer;
}

.load-more:hover:not(:disabled)[b-yi1il036e2] {
    background: var(--bg-hover, #3d3d55);
}

.load-more:disabled[b-yi1il036e2] {
    opacity: 0.5;
    cursor: default;
}

/* Same pan/zoom technique as ImageAlbumThumbnail.razor.css — each component keeps its own scoped copy per
   this codebase's CSS-isolation convention. --ow/--oh match the 160px tile size used above directly, no
   extra scale-down transform (contrast the old left-panel face grid's 120->60px halving). */
.pz-container[b-yi1il036e2] {
    width: calc(var(--ow) * 1px);
    height: calc(var(--oh) * 1px);
    position: relative;
    overflow: hidden;
}

.pz-surface[b-yi1il036e2] {
    position: absolute;
    -webkit-user-drag: none;
    user-drag: none;
    --scale: max( calc(var(--ow) / var(--iw)), calc(var(--oh) / var(--ih)) );
    --final-scale: calc(var(--scale) * var(--zoom-extra));
    --fitted-width: calc(var(--iw) * var(--final-scale) * 1px);
    --fitted-height: calc(var(--ih) * var(--final-scale) * 1px);
    width: var(--fitted-width);
    height: var(--fitted-height);
    --overflow-x: calc(var(--fitted-width) - var(--ow) * 1px);
    --overflow-y: calc(var(--fitted-height) - var(--oh) * 1px);
    left: calc(var(--overflow-x) * -1 * var(--pan-x));
    top: calc(var(--overflow-y) * -1 * var(--pan-y));
}
/* /Components/Browser/FilterAndSort.razor.rz.scp.css */
/* ── Summary ── */
.fs-summary[b-hh7cd2cezu] {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #888;
    border-bottom: 1px solid #1e1e30;
}
.fs-count[b-hh7cd2cezu] {
    white-space: nowrap;
}

/* ── Reduced bar ── */
.fs-reduced[b-hh7cd2cezu] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #1e1e30;
}

.fs-group[b-hh7cd2cezu] {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
}

.fs-tags[b-hh7cd2cezu] {
    overflow: hidden;
    max-width: 260px;
}

/* ── Toggle buttons ── */
.fs-toggle[b-hh7cd2cezu] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.fs-toggle:hover[b-hh7cd2cezu] {
    background: #2a2a40;
    color: #ddd;
}
.fs-toggle.active[b-hh7cd2cezu] {
    background: #9b59b6;
    color: #fff;
    border-color: #9b59b6;
}
.fs-toggle.partial[b-hh7cd2cezu] {
    background: #6b3a7d;
    color: #ddd;
    border-color: #9b59b6;
}

.fs-toggle-sm[b-hh7cd2cezu] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 3px;
    color: #aaa;
    padding: 0.1rem 0.35rem;
    font-size: 0.65rem;
    cursor: pointer;
    margin-left: 0.3rem;
}
.fs-toggle-sm.active[b-hh7cd2cezu] {
    background: #9b59b6;
    color: #fff;
    border-color: #9b59b6;
}

.fs-tag[b-hh7cd2cezu] {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

/* ── Inputs ── */
.fs-search[b-hh7cd2cezu] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    width: 150px;
    flex-shrink: 1;
    min-width: 80px;
}
.fs-search[b-hh7cd2cezu]::placeholder { color: #555; }
.fs-search:disabled[b-hh7cd2cezu] {
    opacity: 0.4;
    cursor: not-allowed;
}

.fs-select[b-hh7cd2cezu] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Expand button ── */
.fs-expand-btn[b-hh7cd2cezu] {
    background: #1e1e30;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}
.fs-expand-btn:hover[b-hh7cd2cezu] {
    background: #2a2a40;
    color: #ddd;
}

.fs-expand-row[b-hh7cd2cezu] {
    display: flex;
    justify-content: flex-end;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #1e1e30;
}

/* ── Full bar ── */
.fs-full[b-hh7cd2cezu] {
    border-bottom: 1px solid #1e1e30;
    overflow: hidden;
    height: 292px;
}

.fs-full-columns[b-hh7cd2cezu] {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    height: 100%;
    overflow-x: auto;
}

.fs-col[b-hh7cd2cezu] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 100px;
}

.fs-col-label[b-hh7cd2cezu] {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid #2a2a40;
    display: flex;
    align-items: center;
}

/* Tags column */
.fs-col-tags[b-hh7cd2cezu] {
    min-width: 180px;
    max-width: 250px;
}
.fs-tag-grid[b-hh7cd2cezu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    overflow-y: auto;
    max-height: 240px;
}

.fs-empty[b-hh7cd2cezu] {
    font-size: 0.7rem;
    color: #555;
    font-style: italic;
}

/* Timeline column */
.fs-col-timeline[b-hh7cd2cezu] {
    min-width: 380px;
}
.fs-timeline-row[b-hh7cd2cezu] {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    height: 24px;
}
.fs-timeline-year[b-hh7cd2cezu] {
    font-size: 0.6rem;
    color: #666;
    width: 30px;
    flex-shrink: 0;
    text-align: right;
}
.fs-timeline-bar[b-hh7cd2cezu] {
    display: flex;
    flex: 1;
    align-items: flex-end;
    height: 20px;
    background: #1a1a2e;
    border-radius: 2px;
    overflow: hidden;
}
.fs-timeline-month[b-hh7cd2cezu] {
    display: flex;
    align-items: flex-end;
    border-right: 1px solid #2a2a40;
    flex-shrink: 0;
}
.fs-timeline-month:last-child[b-hh7cd2cezu] {
    border-right: none;
}
.fs-timeline-day[b-hh7cd2cezu] {
    position: relative;
    width: 1px;
    background: #9b59b6;
    flex-shrink: 0;
}
.fs-timeline-day.selected[b-hh7cd2cezu] {
    background: #e0c8ea;
    box-shadow: 0 0 0 1px rgba(224, 200, 234, 0.4);
}

/* Range-boundary markers — grabbable handles wider than the 1px day bar underneath them, so the start/end
   of an existing selection can be picked up and dragged to any other day without re-drawing the whole
   range. Extend a couple pixels above/below the bar so they're easier to grab than the bar itself. */
.fs-timeline-marker[b-hh7cd2cezu] {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 50%;
    width: 7px;
    transform: translateX(-50%);
    background: #9b59b6;
    border: 1px solid #e0c8ea;
    border-radius: 2px;
    cursor: ew-resize;
    z-index: 2;
}
.fs-timeline-marker:hover[b-hh7cd2cezu],
.fs-timeline-marker:active[b-hh7cd2cezu] {
    background: #e0c8ea;
}

.fs-checkbox-label[b-hh7cd2cezu] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #aaa;
    cursor: pointer;
    margin-top: 0.15rem;
}
.fs-checkbox-label input[b-hh7cd2cezu] {
    cursor: pointer;
}

/* Timeline drag-select overlay */
.fs-timeline-bar[b-hh7cd2cezu] {
    position: relative;
    cursor: crosshair;
    user-select: none;
}
.fs-timeline-selection[b-hh7cd2cezu] {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(155, 89, 182, 0.28);
    border-left: 1px solid #9b59b6;
    border-right: 1px solid #9b59b6;
    pointer-events: none;
}
.fs-timeline-clear[b-hh7cd2cezu] {
    font-size: 0.65rem;
    color: #9b59b6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.2rem;
    flex-shrink: 0;
}
.fs-timeline-clear:hover[b-hh7cd2cezu] {
    color: #d0a8e0;
}

/* Geo column */
.fs-col-geo[b-hh7cd2cezu] {
    min-width: 410px;
}
.fs-geo-map[b-hh7cd2cezu] {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333;
}

/* ── Clear filters ── */
.fs-reset[b-hh7cd2cezu] {
    flex-shrink: 0;
    background: #3a2430;
    border: 1px solid #a05070;
    border-radius: 4px;
    color: #f0c0d0;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.fs-reset:hover[b-hh7cd2cezu] {
    background: #4a2c3c;
}

.fs-full-actions[b-hh7cd2cezu] {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.5rem 0;
}
/* /Components/Browser/FlowAlbumThumbnailFrame.razor.rz.scp.css */
.flow-frame[b-4naol7azqy] {
    position: relative;
    overflow: hidden;
    width: calc(var(--ow) * 1px);
    height: calc(var(--oh) * 1px);
    box-sizing: border-box;
    border-width: 2px;
}

.ff-content[b-4naol7azqy] {
    width: 100%;
    height: 100%;
}

.ff-text[b-4naol7azqy] {
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 0px 3px rgba(0, 0, 0, 2000);
    /* positioning*/
    position: absolute;
    left: calc(var(--hpos) * 100%);
    top: calc(var(--vpos) * 100%);
    transform: translate(calc(var(--hpos) * -100%), calc(var(--vpos) * -100%));
}

.ff-icon[b-4naol7azqy] {
    cursor: pointer;
}

.ff-tags[b-4naol7azqy] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
}

.ff-tag[b-4naol7azqy] {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Someone else's tag on a shared item — visible, but dashed so whose tag it is stays obvious at a
   glance (Picstory.Specification.md). Not to be confused with the frame's own dashed OutlineStyle. */
.ff-tag-other[b-4naol7azqy] {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.6);
}

.ff-tag-delete[b-4naol7azqy] {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.ff-tag-add[b-4naol7azqy] {
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
}

.ff-tag-input[b-4naol7azqy] {
    font-size: 10px;
    padding: 2px 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    outline: none;
    width: 60px;
}

.ff-kv[b-4naol7azqy] {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px;
    border-radius: 3px;
}

.ff-kv-section + .ff-kv-section[b-4naol7azqy] {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 4px;
}

.ff-kv-row[b-4naol7azqy] {
    display: flex;
}

.ff-kv-key[b-4naol7azqy] {
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-kv-val[b-4naol7azqy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Browser/FolderAlbumThumbnail.razor.rz.scp.css */
.folder-album-thumbnail[b-l2vlzh042i] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.15s;
}
.folder-album-thumbnail:hover[b-l2vlzh042i] {
    background: #252540;
}

.fat-covers[b-l2vlzh042i] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    flex: 1;
    gap: 2px;
    padding: 4px;
    min-height: 0;
}
.fat-covers img[b-l2vlzh042i] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.fat-label[b-l2vlzh042i] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem;
    gap: 0.3rem;
}
.fat-name[b-l2vlzh042i] {
    font-size: 0.8rem;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fat-count[b-l2vlzh042i] {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}
/* /Components/Browser/ImageAlbumThumbnail.razor.rz.scp.css */
.image-album-thumbnail[b-zim8f224uz] {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.iat-image-surface[b-zim8f224uz] {
    position: absolute;
    width: 100%;
    height: 100%;
}

.iat-image-surface img[b-zim8f224uz] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Video tiles ─────────────────────────────────────────────────── */

/* Shown when a video has no poster frame (not yet transcoded, or FFmpeg unavailable). */
.iat-video-placeholder[b-zim8f224uz] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #888;
    font-size: 2rem;
}

/* Overlaid on a poster frame. */
.iat-video-badge[b-zim8f224uz] {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.4;
    pointer-events: none;
}

.iat-video-duration[b-zim8f224uz] {
    font-variant-numeric: tabular-nums;
}




/*
Pan Zoom Example
<div class="pz-container" style="--ow: 300; --oh: 300; --iw: 867; --ih: 579;     --pan-x: 0; --pan-y: 0; --zoom-extra: 1;">
  <img
    class="pz-surface"
    style=""
    src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1600&auto=format&fit=crop"
  >
</div>
*/

/* Setting the outer  */
.pz-container[b-zim8f224uz] {
    width: calc(var(--ow) * 1px);
    height: calc(var(--oh) * 1px);
    position: relative;
    overflow: hidden;
}


/* FIT CALCULATION */
.pz-surface[b-zim8f224uz] {
    position: absolute;
    /*
        cover scale:
        max(
          ow / iw,
          oh / ih
        )
    */
    --scale: max( calc(var(--ow) / var(--iw)), calc(var(--oh) / var(--ih)) );
    --final-scale: calc(var(--scale) * var(--zoom-extra));
    /*
        final rendered size
    */
    --fitted-width: calc(var(--iw) * var(--final-scale) * 1px);
    --fitted-height: calc(var(--ih) * var(--final-scale) * 1px);
    width: var(--fitted-width);
    height: var(--fitted-height);
    /*
        pan range:
        how much larger than outer
    */
    --overflow-x: calc(var(--fitted-width) - var(--ow) * 1px);
    --overflow-y: calc(var(--fitted-height) - var(--oh) * 1px);
    /*
        pan interpolation
    */
    left: calc(var(--overflow-x) * -1 * var(--pan-x));
    top: calc(var(--overflow-y) * -1 * var(--pan-y));
}

/* ── Loading / failed placeholders ─────────────────────────────────── */
.iat-skeleton[b-zim8f224uz] {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1c1c26 0%, #262634 50%, #1c1c26 100%);
    background-size: 200% 100%;
    animation: iat-shimmer-b-zim8f224uz 1.4s ease-in-out infinite;
}

@keyframes iat-shimmer-b-zim8f224uz {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .iat-skeleton[b-zim8f224uz] { animation: none; }
}

.iat-failed[b-zim8f224uz] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1a1a1a;
    color: #888;
    font-size: 0.75rem;
}

.iat-retry[b-zim8f224uz] {
    background: #2a2a3a;
    border: 1px solid #555;
    border-radius: 4px;
    color: #ddd;
    font-size: 0.75rem;
    padding: 2px 8px;
    cursor: pointer;
}

/* Face boxes ride on a copy of the image's surface (see .pz-surface above). */
.pz-faces[b-zim8f224uz] {
    pointer-events: none;
}
/* /Components/Browser/UploadPanel.razor.rz.scp.css */
.upload-area[b-60d7zg8yt3] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-input[b-60d7zg8yt3] {
    display: none;
}

.upload-btn[b-60d7zg8yt3] {
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

.upload-progress-list[b-60d7zg8yt3] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px 0;
}

.upload-progress-item[b-60d7zg8yt3] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #ccc;
}

.upload-name[b-60d7zg8yt3] {
    flex: 0 0 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-bar[b-60d7zg8yt3] {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.upload-bar-fill[b-60d7zg8yt3] {
    height: 100%;
    background: #7c5cbf;
    transition: width 0.2s;
}

.upload-pct[b-60d7zg8yt3] {
    flex: 0 0 30px;
    text-align: right;
    font-size: 0.7rem;
}

.upload-progress-item.error[b-60d7zg8yt3] {
    color: #e57373;
}

.upload-progress-item.done[b-60d7zg8yt3] {
    color: #81c784;
}

.upload-progress-item.processing .upload-pct[b-60d7zg8yt3] {
    color: #4fc3f7;
}

.bar-processing[b-60d7zg8yt3] {
    background: #4fc3f7;
    animation: pulse-bar-b-60d7zg8yt3 1.5s infinite;
}

@keyframes pulse-bar-b-60d7zg8yt3 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.upload-error[b-60d7zg8yt3] {
    flex: 1;
    font-size: 0.7rem;
    color: #e57373;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-hint[b-60d7zg8yt3] {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #999;
}

.upload-summary[b-60d7zg8yt3] {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #ccc;
}

.upload-bar-total[b-60d7zg8yt3] {
    margin-top: 0.25rem;
}

.upload-actions[b-60d7zg8yt3] {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.retry-btn[b-60d7zg8yt3] {
    flex-shrink: 0;
    padding: 0 0.4rem;
}
/* /Components/Common/FaceBoxes.razor.rz.scp.css */
.fb-face[b-ogiup3rg4x] {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.fb-unknown[b-ogiup3rg4x] {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.6);
}

.fb-highlight[b-ogiup3rg4x] {
    border: 3px solid #ffcc00;
}

.fb-name[b-ogiup3rg4x] {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 3px);
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}
/* /Components/Common/MediaFieldBoxes.razor.rz.scp.css */
.mfb[b-huyzdv2tme] {
    position: absolute;
    inset: 0;
    container-type: size;
    pointer-events: none;
    overflow: hidden;
}

.mfb-box[b-huyzdv2tme] {
    position: absolute;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 1px rgba(0, 0, 0, 0.9);
}

.mfb-align-left[b-huyzdv2tme] { justify-content: flex-start; text-align: left; }
.mfb-align-center[b-huyzdv2tme] { justify-content: center; text-align: center; }
.mfb-align-right[b-huyzdv2tme] { justify-content: flex-end; text-align: right; }

.mfb-text[b-huyzdv2tme] {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The backing hugs the text rather than filling the whole box. */
.mfb-bg .mfb-text[b-huyzdv2tme] {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 0.25em;
    padding: 0.05em 0.35em;
    text-shadow: none;
}

.mfb-label[b-huyzdv2tme] {
    opacity: 0.7;
}

.mfb-tags[b-huyzdv2tme] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    justify-content: inherit;
    align-content: flex-end;
    width: 100%;
    height: 100%;
}

.mfb-tag[b-huyzdv2tme] {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.15em 0.55em;
    border-radius: 0.3em;
    white-space: nowrap;
    text-shadow: none;
}

/* Someone else's tag on a shared item — visible, but dashed (Picstory.Specification.md's tag rule). */
.mfb-tag-other[b-huyzdv2tme] {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.6);
}

/* ── Preferences preview ── */

.mfb-editable[b-huyzdv2tme] {
    pointer-events: auto;
}

.mfb-editable .mfb-box[b-huyzdv2tme] {
    outline: 1px dashed rgba(255, 255, 255, 0.55);
    cursor: move;
    touch-action: none;
    user-select: none;
}

.mfb-editable .mfb-selected[b-huyzdv2tme] {
    outline: 2px solid #4da3ff;
    background: rgba(77, 163, 255, 0.12);
}

.mfb-placeholder .mfb-text[b-huyzdv2tme] {
    opacity: 0.55;
    font-style: italic;
}

.mfb-handle[b-huyzdv2tme] {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: #4da3ff;
    cursor: nwse-resize;
}
/* /Components/Common/SidebarShell.razor.rz.scp.css */
/* Sidebar Shell */
.sidebar-shell[b-szt4mselr2] {
    --row-item-height: 38px;
    --rail-width: 48px;
    --panel-width: 220px;
    --icon-size: 1.1rem;

    --bg-base: #1a1a2e;
    --bg-rail: #16162a;
    --bg-hover: #2d2d44;
    --bg-active: #3d2d54;
    --bg-input: #2d2d44;
    --color-text: #ccc;
    --color-text-active: #d4a5f5;
    --color-muted: #888;
    --color-dim: #666;
    --border-color: #2a2a40;
    --border-input: #444;

    --radius-sm: 4px;
    --radius-md: 6px;
    --font-sm: 0.75rem;
    --font-base: 0.82rem;

    display: flex;
    height: 100%;
}

/* Rail — fixed-width container, flyout expands beyond it on hover */
.rail[b-szt4mselr2] {
    width: var(--rail-width);
    background: var(--bg-rail);
    z-index: 100;
}

/* Flyout — holds rail buttons, collapses to rail-width, expands on hover */
.rail-flyout[b-szt4mselr2] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
    background: var(--bg-rail);
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-color);
    
}

/* Left flyout */
.left .rail-flyout[b-szt4mselr2] {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Right flyout */
.right .rail-flyout[b-szt4mselr2] {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* flyout mechanism - start */
.rail-flyout[b-szt4mselr2] {
    overflow-x: hidden;
    min-width: var(--rail-width);
    width: fit-content;
    max-width: var(--rail-width);
    transition: max-width 250ms ease;
}


.rail.expanded .rail-flyout[b-szt4mselr2] {
    max-width: 30em;
    transition: max-width 250ms ease;
}

/* Left flyout: expand rightward */
.left .rail-flyout[b-szt4mselr2] {
    transform: translateX(calc(0% + 0px));
}

/* Right flyout: expand leftward */
.right .rail-flyout[b-szt4mselr2] {
    transform: translateX(calc(-100% + var(--rail-width)));
}
/* flyout mechanism - end */

/* Item justification — icons hug the rail edge */
.left .rail-btn[b-szt4mselr2] {
    justify-content: left;
}
.right .rail-btn[b-szt4mselr2] {
    justify-content: right;
}

/* Rail button — icon + hidden label */
.rail-btn[b-szt4mselr2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--row-item-height);
    padding: 0 0.3rem;
    margin: 0 0.25rem;
    border: none;
    background: transparent;
    color: var(--color-text);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.rail-btn:hover[b-szt4mselr2] { background: var(--bg-hover); }
.rail-btn.active[b-szt4mselr2] { background: var(--bg-active); color: var(--color-text-active); }

.rail-icon[b-szt4mselr2] {
    font-size: var(--icon-size);
    width: calc(var(--rail-width) - 0.5rem - 0.6rem);
    min-width: calc(var(--rail-width) - 0.5rem - 0.6rem);
    text-align: center;
    flex-shrink: 0;
}

/* Label — visible but clipped by flyout max-width, revealed on hover */
.rail-label[b-szt4mselr2] {
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Side-specific borders ── */
.left .rail[b-szt4mselr2] {
    border-right: 1px solid var(--border-color);
}
.right .rail[b-szt4mselr2] {
    border-left: 1px solid var(--border-color);
}

.left .panel-content[b-szt4mselr2] {
    border-right: 1px solid var(--border-color);
}
.right .panel-content[b-szt4mselr2] {
    border-left: 1px solid var(--border-color);
}

/* Panel content */
.panel-content[b-szt4mselr2] {
    width: var(--panel-width);
    min-width: var(--panel-width);
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header[b-szt4mselr2] {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.panel-title[b-szt4mselr2] {
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 600;
}
.panel-body[b-szt4mselr2] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Search panel */
[b-szt4mselr2] .search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    color: #e0e0e0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
[b-szt4mselr2] .search-input::placeholder { color: var(--color-dim); }
[b-szt4mselr2] .search-results { display: flex; flex-direction: column; gap: 0.25rem; }
[b-szt4mselr2] .search-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    text-align: left;
}
[b-szt4mselr2] .search-result:hover { background: var(--bg-hover); }
[b-szt4mselr2] .search-result img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
[b-szt4mselr2] .search-result-info { display: flex; flex-direction: column; }
[b-szt4mselr2] .search-result-info .name { font-size: var(--font-sm); }
[b-szt4mselr2] .search-result-info .meta { font-size: 0.65rem; color: var(--color-muted); }
[b-szt4mselr2] .search-empty { color: var(--color-dim); font-size: 0.8rem; text-align: center; padding: 1rem; }

/* Places panel */
[b-szt4mselr2] .place-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
}
[b-szt4mselr2] .place-item:hover { background: var(--bg-hover); }
[b-szt4mselr2] .place-item.active { background: var(--bg-active); color: var(--color-text-active); }
[b-szt4mselr2] .place-icon { font-size: 0.85rem; }
[b-szt4mselr2] .place-count { margin-left: auto; color: var(--color-dim); font-size: 0.7rem; }

/* Context panels (right side) */
[b-szt4mselr2] .context-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[b-szt4mselr2] .context-tabs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

[b-szt4mselr2] .context-tab {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: background 0.15s;
}
[b-szt4mselr2] .context-tab:hover { background: var(--bg-hover); }
[b-szt4mselr2] .context-tab.active { background: #7c3aed; border-color: #7c3aed; color: white; }

[b-szt4mselr2] .context-tree {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.25rem;
}

[b-szt4mselr2] .context-node {
    display: flex;
    flex-direction: column;
}

[b-szt4mselr2] .context-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-align: left;
    width: 100%;
}
[b-szt4mselr2] .context-item:hover { background: var(--bg-hover); }
[b-szt4mselr2] .context-item.active { background: var(--bg-active); color: var(--color-text-active); }

[b-szt4mselr2] .context-icon { font-size: 0.85rem; flex-shrink: 0; }
[b-szt4mselr2] .context-count { margin-left: auto; color: var(--color-dim); font-size: 0.7rem; }

[b-szt4mselr2] .context-sub {
    margin-left: 1rem;
}

/* Shown instead of an empty tree, e.g. no shared album this user can contribute to. */
[b-szt4mselr2] .context-empty {
    margin: 0.4rem 0.5rem;
    color: var(--color-dim);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Bulk share/unshare row above the "by virtual album" tree, and the bulk-unshare row above the
   contributor list — both label themselves against the current selection (§9). */
[b-szt4mselr2] .context-bulk-row {
    display: flex;
    gap: 0.4rem;
    margin: 0.25rem 0.5rem 0.4rem;
}

[b-szt4mselr2] .context-bulk-btn {
    flex: 1;
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
    transition: background 0.15s;
}
[b-szt4mselr2] .context-bulk-btn:hover:not(:disabled) { background: var(--bg-hover); }
[b-szt4mselr2] .context-bulk-btn:disabled { opacity: 0.5; cursor: default; }
[b-szt4mselr2] .context-bulk-btn.primary { border-color: #7c3aed; color: #d4a5f5; }
[b-szt4mselr2] .context-bulk-btn.danger { border-color: #844; color: #f5a5a5; }

/* The help icon next to the bulk buttons is Components/Shared/HelpPopover.razor, which carries its own
   scoped styling — nothing to add here. */

/* ── Narrow viewports (phones/small tablets) ──
   The rail+panel pair goes off-canvas by default and slides in over the content when MobileOpen is set —
   toggled from MainView's header buttons. Above this width the fixed 48px rail + 220px panel just sit in
   the normal flex layout as before; below it, permanently reserving that much of a ~375px-wide screen for
   navigation chrome left too little room for photos. */
@media (max-width: 768px) {
    .sidebar-shell[b-szt4mselr2] {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 50;
        transition: transform 220ms ease;
        max-width: 100%;
    }

    .sidebar-shell.left[b-szt4mselr2] {
        left: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.45);
    }

    .sidebar-shell.right[b-szt4mselr2] {
        right: 0;
        transform: translateX(100%);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.45);
    }

    .sidebar-shell.mobile-open[b-szt4mselr2] {
        transform: translateX(0);
    }

    /* Fixed --panel-width (220px) can exceed a phone's viewport; cap it to a fraction of the screen so
       the drawer never runs edge-to-edge with no visible content behind it. */
    .sidebar-shell .panel-content[b-szt4mselr2] {
        width: min(78vw, 300px);
        min-width: 0;
    }
}
/* /Components/LeftPanel/FaceBrowserPanel.razor.rz.scp.css */
/* This panel now renders a plain category list using MainView.razor.css's ::deep .context-item/.context-tree
   styles (the same convention TagManagerPanel and ContextAlbumNode use), so there is nothing left to scope
   here. The face-tile grid and its pan/zoom crop technique moved to Components/Browser/FaceGridPanel.razor,
   which shows the selected bucket's faces in the *main* pane instead of this left-panel list. */
/* /Components/LeftPanel/SettingsPanel.razor.rz.scp.css */
.settings-group[b-6pzkxpubvf] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
    padding: 0.6rem 0.5rem 0.2rem;
}

.settings-group:first-child[b-6pzkxpubvf] {
    padding-top: 0.1rem;
}
/* /Components/Lightbox/Lightbox.razor.rz.scp.css */
.lb-overlay[b-2ja0pejmn8] {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    outline: none;
    overflow: hidden;
}

.lb-media[b-2ja0pejmn8] {
    position: absolute;
    inset: 0;
}

/* ── Content sections ── */

/* ── Data layer (display profile fields) ──
   Over the media, under the click zones: the fields themselves never take clicks, so a click on top of
   a field still reaches the zone underneath. */
.lb-data[b-2ja0pejmn8] {
    position: absolute;
    inset: 0;
    z-index: 10004;
    pointer-events: none;
}

.lb-selected-badge[b-2ja0pejmn8] {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10007;
    padding: 4px 10px;
    border-radius: 14px;
    background: #2f7de1;
    color: #fff;
    font-size: 13px;
    pointer-events: none;
}

/* ── Click zones (invisible by default) ── */

.lb-zone[b-2ja0pejmn8] {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10005;
    cursor: pointer;
}

.lb-zone-left[b-2ja0pejmn8] {
    left: 0;
    width: 33.333%;
}

.lb-zone-center[b-2ja0pejmn8] {
    left: 33.333%;
    width: 33.334%;
}

.lb-zone-right[b-2ja0pejmn8] {
    right: 0;
    width: 33.333%;
}

/* Hover hint */
.lb-zone-hint:hover[b-2ja0pejmn8] {
    background: rgba(128, 128, 128, 0.15);
}

/* ── Corner zones ── */

.lb-corner[b-2ja0pejmn8] {
    position: absolute;
    z-index: 10006;
    cursor: pointer;
    /* edge = min(20vw, 20vh) */
    width: min(20vw, 20vh);
    height: min(20vw, 20vh);
}

.lb-corner-tl[b-2ja0pejmn8] { top: 0; left: 0; }
.lb-corner-tr[b-2ja0pejmn8] { top: 0; right: 0; }
.lb-corner-bl[b-2ja0pejmn8] { bottom: 0; left: 0; }
.lb-corner-br[b-2ja0pejmn8] { bottom: 0; right: 0; }

.lb-corner.lb-zone-hint:hover[b-2ja0pejmn8] {
    background: rgba(128, 128, 128, 0.2);
}

/* ── Visible controls (close / prev / next / counter / details) ──
   Above the click zones (10005) and corners (10006), below the flyout (10008) so an open flyout covers the
   right-hand buttons rather than the other way round. Faded out by lightboxGestures.js after a few idle
   seconds; always shown while one of them has keyboard focus. */

.lb-controls[b-2ja0pejmn8] {
    position: absolute;
    inset: 0;
    z-index: 10007;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lb-controls-visible .lb-controls[b-2ja0pejmn8],
.lb-controls:focus-within[b-2ja0pejmn8] {
    opacity: 1;
}

.lb-btn[b-2ja0pejmn8] {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.lb-btn:hover:not(:disabled)[b-2ja0pejmn8] {
    background: rgba(0, 0, 0, 0.8);
}

.lb-btn:disabled[b-2ja0pejmn8] {
    opacity: 0.3;
    cursor: default;
}

.lb-btn:focus-visible[b-2ja0pejmn8] {
    outline: 2px solid #4da3ff;
    outline-offset: 2px;
}

.lb-btn-close[b-2ja0pejmn8] { top: 12px; right: 12px; }
.lb-btn-info[b-2ja0pejmn8] { top: 12px; right: 64px; font-size: 20px; }
.lb-btn-prev[b-2ja0pejmn8] { left: 12px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lb-btn-next[b-2ja0pejmn8] { right: 12px; top: 50%; transform: translateY(-50%); font-size: 32px; }

.lb-counter[b-2ja0pejmn8] {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    pointer-events: none;
}

.lb-edge-hint[b-2ja0pejmn8] {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    z-index: 10007;
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    pointer-events: none;
}

@media (hover: none) {
    /* Touch devices: no hover to reveal them, and swipes already navigate, so keep the buttons a bit
       smaller and further into the corners. */
    .lb-btn[b-2ja0pejmn8] { width: 40px; height: 40px; }
}

/* While faded out the buttons must not swallow clicks meant for the zones/photo underneath. */
.lb-overlay:not(.lb-controls-visible) .lb-controls:not(:focus-within) .lb-btn[b-2ja0pejmn8] {
    pointer-events: none;
}
/* /Components/Lightbox/LightboxFlyout.razor.rz.scp.css */
.lb-flyout[b-lynwjm4l5q] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    z-index: 10008;
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 12px;
    pointer-events: auto;
}

.lb-flyout-open[b-lynwjm4l5q] {
    transform: translateX(0);
}

.lb-flyout-close[b-lynwjm4l5q] {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.lb-flyout-close:hover[b-lynwjm4l5q] {
    opacity: 0.7;
}

.lb-flyout-actions[b-lynwjm4l5q] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.lb-flyout-action[b-lynwjm4l5q] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #eee;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.lb-flyout-action:hover[b-lynwjm4l5q] {
    background: rgba(255, 255, 255, 0.15);
}

.lb-flyout-action.danger[b-lynwjm4l5q] {
    border-color: rgba(231, 76, 60, 0.6);
    color: #e74c3c;
}

.lb-flyout-action.danger:hover[b-lynwjm4l5q] {
    background: rgba(231, 76, 60, 0.2);
}

.lb-flyout-action-icon[b-lynwjm4l5q] {
    font-size: 0.95rem;
}

.lb-flyout-divider[b-lynwjm4l5q] {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
}

.lb-flyout-list[b-lynwjm4l5q] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.lb-flyout-item[b-lynwjm4l5q] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #ccc;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.lb-flyout-item:hover[b-lynwjm4l5q] {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lb-flyout-item.active[b-lynwjm4l5q] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lb-flyout-icon[b-lynwjm4l5q] {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.lb-flyout-action.armed[b-lynwjm4l5q] {
    background: #8b1e2c;
    color: #fff;
    font-weight: 600;
}

.lb-flyout-hint[b-lynwjm4l5q] {
    opacity: 0.6;
    font-size: 0.8em;
}
/* /Components/Lightbox/LightboxImage.razor.rz.scp.css */
.lb-image[b-rjdvnuuwcd] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* A size container, so the contained image below can be capped in cqw/cqh — lengths that don't
       depend on its own wrapper. */
    container-type: size;
}

/* ── Face highlight overlay ──────────────────────────────────────
   .lb-image-frame wraps the <img> so the highlight box's percentage coordinates resolve against the actual
   displayed image, not the (possibly letterboxed) .lb-image container — see Lightbox.razor's
   HighlightedPerson and MainViewState.HighlightedFaceId. Sizing differs per display mode below. */
.lb-image-frame[b-rjdvnuuwcd] {
    position: relative;
}

/* ── Cover: fill entire area, crop overflow ── */
.lb-cover .lb-image-frame[b-rjdvnuuwcd] {
    width: 100%;
    height: 100%;
}

.lb-cover img[b-rjdvnuuwcd] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Original: native pixel size, centered, scroll if larger ── */
.lb-original[b-rjdvnuuwcd] {
    overflow: auto;
}

.lb-original .lb-image-frame[b-rjdvnuuwcd] {
    width: 100%;
    height: 100%;
}

.lb-original img[b-rjdvnuuwcd] {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

/* ── Contain: fit within, preserve aspect ratio ──
   The frame shrink-wraps the image, so the face boxes' percentages resolve against the displayed photo and
   not the letterboxed container. The cap has to sit on the image itself, in container units: capping both
   frame and image with max-width/max-height: 100% only works on the axis that ends up limiting. When the
   height limits (a wide window, a portrait photo), the image's max-height: 100% refers to the frame's
   auto height and does nothing, the frame takes the image's unscaled width, and every face box shifts
   sideways — while vertically they stayed right. */
.lb-contain .lb-image-frame[b-rjdvnuuwcd] {
    display: inline-block;
    line-height: 0;
}

.lb-contain img[b-rjdvnuuwcd] {
    display: block;
    max-width: 100cqw;
    max-height: 100cqh;
    width: auto;
    height: auto;
}

/* ── Thumbnail stand-in ──
   The full photo (max 2048 px) is fitted to the screen by the max-width/max-height above; the small thumbnail
   would sit at its own size, so it is stretched to fit the same way instead. */
.lb-thumb[b-rjdvnuuwcd] {
    width: 100%;
    height: 100%;
}

.lb-thumb img[b-rjdvnuuwcd] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lb-cover .lb-thumb img[b-rjdvnuuwcd] {
    object-fit: cover;
}

/* ── Loading / error overlay ── */
.lb-image-status[b-rjdvnuuwcd] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
    color: #ddd;
}

.lb-image-error[b-rjdvnuuwcd] {
    pointer-events: auto;
    z-index: 10007; /* above the click zones, so "Try again" is reachable */
}

.lb-spinner[b-rjdvnuuwcd] {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin-b-rjdvnuuwcd 0.8s linear infinite;
}

@keyframes lb-spin-b-rjdvnuuwcd {
    to { transform: rotate(360deg); }
}

.lb-retry[b-rjdvnuuwcd] {
    padding: 6px 16px;
    border: 1px solid #888;
    border-radius: 4px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .lb-spinner[b-rjdvnuuwcd] { animation-duration: 2.5s; }
}

/* Don't flash a spinner for images that come straight from the cache. */
.lb-image-status:not(.lb-image-error)[b-rjdvnuuwcd] {
    animation: lb-delayed-show-b-rjdvnuuwcd 0.01s linear 250ms both;
}

@keyframes lb-delayed-show-b-rjdvnuuwcd {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* /Components/Lightbox/LightboxVideo.razor.rz.scp.css */
.lb-video[b-te9bmtg0p2] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lb-vid-cover video[b-te9bmtg0p2] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-vid-original[b-te9bmtg0p2] {
    overflow: auto;
}

.lb-vid-original video[b-te9bmtg0p2] {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.lb-vid-contain video[b-te9bmtg0p2] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* /Components/Lightbox/LightboxVideoControls.razor.rz.scp.css */
.lb-video-controls[b-vn5gj9xmgh] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10015;
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 12px;
    color: #fff;
}

.lvc-seek[b-vn5gj9xmgh] {
    width: 100%;
    margin-bottom: 6px;
}

.lvc-seek input[type="range"][b-vn5gj9xmgh] {
    width: 100%;
    accent-color: #fff;
}

.lvc-bar[b-vn5gj9xmgh] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lvc-playback[b-vn5gj9xmgh] {
    display: flex;
    gap: 4px;
}

.lvc-playback button[b-vn5gj9xmgh],
.lvc-dismiss[b-vn5gj9xmgh] {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
}

.lvc-playback button:hover[b-vn5gj9xmgh],
.lvc-dismiss:hover[b-vn5gj9xmgh] {
    opacity: 0.7;
}

.lvc-time[b-vn5gj9xmgh] {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lvc-audio[b-vn5gj9xmgh] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lvc-audio button[b-vn5gj9xmgh] {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.lvc-audio input[type="range"][b-vn5gj9xmgh] {
    width: 80px;
    accent-color: #fff;
}

.lvc-speed select[b-vn5gj9xmgh] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 12px;
}

.lvc-dismiss[b-vn5gj9xmgh] {
    margin-left: auto;
}
/* /Components/NotificationPanel.razor.rz.scp.css */
.notification-panel[b-wyffoj6p52] {
    position: relative;
    display: inline-block;
}

.notification-badge[b-wyffoj6p52] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    padding: 4px 8px;
}

.notif-active-dot[b-wyffoj6p52] {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #4fc3f7;
    border-radius: 50%;
    animation: pulse-b-wyffoj6p52 1.5s infinite;
}

.notif-error-dot[b-wyffoj6p52] {
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #e57373;
    border-radius: 50%;
}

@keyframes pulse-b-wyffoj6p52 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.notif-dropdown[b-wyffoj6p52] {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--surface, #1e1e1e);
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    min-width: 280px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    padding: 8px 0;
}

.notif-empty[b-wyffoj6p52] {
    padding: 16px;
    text-align: center;
    opacity: 0.6;
}

.notif-item[b-wyffoj6p52] {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border, #333);
}

    .notif-item:hover[b-wyffoj6p52] {
        background: rgba(255,255,255,0.05);
    }

    .notif-item.active .notif-status[b-wyffoj6p52] {
        color: #4fc3f7;
    }

    .notif-item.done .notif-status[b-wyffoj6p52] {
        color: #81c784;
    }

    .notif-item.error .notif-status[b-wyffoj6p52] {
        color: #e57373;
    }

.notif-item.processing .notif-status[b-wyffoj6p52] {
    color: #4fc3f7;
}

.notif-error-text[b-wyffoj6p52] {
    font-size: 0.75rem;
}

.notif-file[b-wyffoj6p52] {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-album[b-wyffoj6p52] {
    grid-column: 1;
    font-size: 0.75rem;
    opacity: 0.6;
}

.notif-status[b-wyffoj6p52] {
    grid-row: 1 / 4;
    grid-column: 2;
    align-self: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Row 3 in column 1, under notif-album/notif-message — added alongside the file name and status so every
   row type (upload, toast, server) shows when it happened, not just the server-backed one. */
.notif-time[b-wyffoj6p52] {
    grid-column: 1;
    font-size: 0.68rem;
    opacity: 0.5;
}

.notif-clear[b-wyffoj6p52] {
    display: block;
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    font-size: 0.8rem;
}

    .notif-clear:hover[b-wyffoj6p52] {
        color: var(--text, #fff);
    }

/* General notification specific styles */
.notif-dismiss[b-wyffoj6p52] {
    grid-row: 1 / 4;
    grid-column: 2;
    background: none;
    border: none;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
    align-self: center;
}

    .notif-dismiss:hover[b-wyffoj6p52] {
        color: var(--text, #fff);
    }

.notif-message[b-wyffoj6p52] {
    grid-column: 1;
    font-size: 0.75rem;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Severity colors for general notifications */
.notif-item-error .notif-file[b-wyffoj6p52] {
    color: #e57373;
    font-weight: 600;
}

.notif-item-warning .notif-file[b-wyffoj6p52] {
    color: #ffb74d;
}

.notif-item-success .notif-file[b-wyffoj6p52] {
    color: #81c784;
}
/* /Components/Preferences/DisplayProfileSettingsPage.razor.rz.scp.css */
/* A page in the main pane (picked from the left rail's Settings panel), no longer a modal overlay. */
.prefs-page[b-q1il23s1ks] {
    height: 100%;
    overflow-y: auto;
    color: #ddd;
    /* The page shares the window with both sidebars, so it stacks on its own width, not the viewport's. */
    container-type: inline-size;
}

.prefs-panel[b-q1il23s1ks] {
    width: min(1180px, 100%);
    display: flex;
    flex-direction: column;
}

.prefs-header[b-q1il23s1ks] {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 16px 4px;
}

.prefs-header h2[b-q1il23s1ks] {
    font-size: 1.15rem;
    margin: 0;
}

.prefs-unsaved[b-q1il23s1ks] {
    font-size: 0.8rem;
    color: #d9b44a;
}

.prefs-icon-btn[b-q1il23s1ks] {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.prefs-icon-btn:hover[b-q1il23s1ks] {
    color: #fff;
    background: #2d2d44;
}

.prefs-body[b-q1il23s1ks] {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 16px;
    padding: 12px 16px 16px;
}

@container (max-width: 720px) {
    .prefs-body[b-q1il23s1ks] {
        grid-template-columns: 1fr;
    }
}

.prefs-help[b-q1il23s1ks],
.prefs-desc[b-q1il23s1ks],
.prefs-note[b-q1il23s1ks] {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 8px;
}

.prefs-note[b-q1il23s1ks] {
    margin: 8px 16px 0;
    color: #d9b44a;
}

.prefs-edit-col .prefs-note[b-q1il23s1ks] {
    margin: 4px 0 8px;
}

.prefs-preview[b-q1il23s1ks] {
    position: relative;
    width: 100%;
    max-height: 62vh;
    margin: 0 auto;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}


[b-q1il23s1ks] .prefs-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prefs-preview-thumb[b-q1il23s1ks]  .prefs-preview-img {
    object-fit: cover;
}

.prefs-preview-faces[b-q1il23s1ks] {
    position: absolute;
    inset: 0;
}

.prefs-preview-lightbox .prefs-preview-faces[b-q1il23s1ks] {
    inset: auto;
}

.prefs-preview-empty[b-q1il23s1ks] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: #777;
    font-size: 0.85rem;
}

.prefs-h[b-q1il23s1ks] {
    font-size: 0.9rem;
    margin: 14px 0 6px;
    color: #fff;
}

.prefs-h small[b-q1il23s1ks] {
    color: #888;
    font-weight: normal;
}

.prefs-fields[b-q1il23s1ks] {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #3a3a55;
    border-radius: 4px;
}

.prefs-fields:empty[b-q1il23s1ks] {
    display: none;
}

.prefs-field[b-q1il23s1ks] {
    display: flex;
    align-items: center;
}

.prefs-field.active[b-q1il23s1ks] {
    background: #2f4a72;
}

.prefs-field-name[b-q1il23s1ks] {
    flex: 1;
    text-align: left;
    background: none;
    border: none;
    color: inherit;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.prefs-box-editor[b-q1il23s1ks] {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #3a3a55;
    border-radius: 4px;
    background: #252538;
}

.prefs-row[b-q1il23s1ks] {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.prefs-grid[b-q1il23s1ks] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.prefs-grid label[b-q1il23s1ks] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prefs-check[b-q1il23s1ks] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin: 4px 0;
}

.prefs-same[b-q1il23s1ks] {
    font-weight: 600;
}

.prefs-key[b-q1il23s1ks] {
    display: flex;
    align-items: center;
    gap: 2px;
}

.prefs-key input[b-q1il23s1ks] {
    cursor: pointer;
    caret-color: transparent;
}

.prefs-errors[b-q1il23s1ks] {
    color: #ff8a8a;
    font-size: 0.85rem;
    margin: 10px 0 0;
    padding-left: 18px;
}

.prefs-status[b-q1il23s1ks] {
    color: #9fd59f;
    font-size: 0.85rem;
    margin: 10px 0 0;
}

.prefs-actions[b-q1il23s1ks] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.form-control[b-q1il23s1ks],
.form-select[b-q1il23s1ks] {
    background-color: #15151f;
    color: #ddd;
    border-color: #3a3a55;
}
/* /Components/Preferences/SelectionSettingsPage.razor.rz.scp.css */
.settings-page[b-ip8nwsq4d4] {
    height: 100%;
    overflow-y: auto;
    padding: 12px 16px 16px;
    color: #ddd;
    max-width: 720px;
}

.settings-header h2[b-ip8nwsq4d4] {
    font-size: 1.15rem;
    margin: 0 0 12px;
}

.settings-section[b-ip8nwsq4d4] {
    padding: 10px 12px;
    border: 1px solid #3a3a55;
    border-radius: 6px;
    background: #1e1e2e;
}

.settings-check[b-ip8nwsq4d4] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.settings-check input[b-ip8nwsq4d4] {
    margin-top: 0.2rem;
}

.settings-desc[b-ip8nwsq4d4] {
    font-size: 0.8rem;
    color: #999;
    margin: 6px 0 0 24px;
}

.settings-note[b-ip8nwsq4d4] {
    font-size: 0.8rem;
    color: #d9b44a;
    margin: 0 0 10px;
}

.settings-status[b-ip8nwsq4d4] {
    color: #9fd59f;
    font-size: 0.85rem;
    margin: 10px 0 0;
}

.settings-error[b-ip8nwsq4d4] {
    color: #ff8a8a;
    font-size: 0.85rem;
    margin: 10px 0 0;
}
/* /Components/RightPanel/AlbumManagePanel.razor.rz.scp.css */
.album-manage-panel[b-8l6247yp80] {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amp-section[b-8l6247yp80] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.amp-heading[b-8l6247yp80] {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.amp-row[b-8l6247yp80] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amp-label[b-8l6247yp80] {
    flex: 1;
    color: #ccc;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amp-inline-form[b-8l6247yp80] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.amp-input[b-8l6247yp80] {
    background: #1e1e2e;
    border: 1px solid #444;
    color: #ccc;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 3px;
    flex: 1;
    min-width: 0;
}
.amp-input:focus[b-8l6247yp80] { outline: 1px solid #7c5cbf; border-color: #7c5cbf; }

.amp-btn[b-8l6247yp80] {
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.amp-btn:hover[b-8l6247yp80] { background: #2d2d44; }
.amp-btn.primary[b-8l6247yp80] { border-color: #7c5cbf; color: #d4a5f5; }
.amp-btn.primary:hover[b-8l6247yp80] { background: #3d2d54; }
.amp-btn.danger[b-8l6247yp80] { border-color: #844; color: #f5a5a5; }
.amp-btn.danger:hover[b-8l6247yp80] { background: #442d2d; }

/* Explains why a shared album has no Upload section, and what Add Photos does instead. */
.amp-hint[b-8l6247yp80] {
    margin: 0 0 0.5rem;
    color: #999;
    font-size: 0.75rem;
    line-height: 1.4;
}

.amp-hint strong[b-8l6247yp80] {
    color: #ccc;
}

.amp-danger-box[b-8l6247yp80] {
    background: #2a1a1a;
    border: 1px solid #844;
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #f5a5a5;
}

.amp-divider[b-8l6247yp80] {
    border: none;
    border-top: 1px solid #333;
    margin: 0.25rem 0;
}
/* /Components/RightPanel/ContextAlbumNode.razor.rz.scp.css */
.context-node[b-9w3jf498qc] {
    display: flex;
    flex-direction: column;
}

.context-item[b-9w3jf498qc] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: left;
    width: 100%;
}
.context-item:hover[b-9w3jf498qc] { background: #2d2d44; }
.context-item.active[b-9w3jf498qc] { background: #3d2d54; color: #d4a5f5; }

.context-icon[b-9w3jf498qc] { font-size: 0.85rem; flex-shrink: 0; }
.context-count[b-9w3jf498qc] { margin-left: auto; color: #666; font-size: 0.7rem; }

[b-9w3jf498qc] .context-sub {
    margin-left: 1rem;
}
/* /Components/RightPanel/FacePanel.razor.rz.scp.css */
.face-panel[b-37ka2i5i4z] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.face-panel-input[b-37ka2i5i4z] {
    padding: 4px 8px;
}

.face-panel-help[b-37ka2i5i4z] {
    margin: 0;
    padding: 6px 8px;
    background: var(--bg-input, #2d2d44);
    border-radius: 4px;
    color: var(--color-muted, #888);
    font-size: 0.72rem;
    line-height: 1.4;
}

.face-panel-actions[b-37ka2i5i4z] {
    display: flex;
    gap: 8px;
}

.face-panel-delete-row[b-37ka2i5i4z] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.face-panel-confirm-text[b-37ka2i5i4z] {
    flex-basis: 100%;
    font-size: 0.8rem;
    color: #f0c0c0;
}

.face-panel-delete[b-37ka2i5i4z] {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px solid #a33;
    background: transparent;
    color: #e07070;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.face-panel-delete:hover:not(:disabled)[b-37ka2i5i4z] {
    background: #a33;
    color: #fff;
}

.face-panel-delete:disabled[b-37ka2i5i4z] {
    opacity: 0.5;
    cursor: default;
}

.face-panel-delete-error[b-37ka2i5i4z] {
    margin: 0;
    color: #e07070;
    font-size: 0.72rem;
    line-height: 1.4;
}

/* Reject ("No match") and Unassign are both destructive/undo-ish actions on the current selection — same
   red treatment for both, so they read as a pair rather than one looking incidental. */
.face-panel-reject[b-37ka2i5i4z],
.face-panel-unassign[b-37ka2i5i4z] {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px solid #a33;
    background: transparent;
    color: #e07070;
    border-radius: 4px;
    cursor: pointer;
}

.face-panel-reject:hover:not(:disabled)[b-37ka2i5i4z],
.face-panel-unassign:hover:not(:disabled)[b-37ka2i5i4z] {
    background: #a33;
    color: #fff;
}

.face-panel-reject:disabled[b-37ka2i5i4z],
.face-panel-unassign:disabled[b-37ka2i5i4z] {
    opacity: 0.5;
    cursor: default;
}

/* Name list — mirrors TagManagerPanel.razor.css's tag-mgr-* rules. CSS isolation scopes classes to the
   .razor file that emits the markup, not the class name, so these are a local copy rather than something
   reused from TagManagerPanel's own stylesheet. */
.face-panel-name-list[b-37ka2i5i4z] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-height: 240px;
    overflow-y: auto;
}

.tag-mgr-row[b-37ka2i5i4z] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.3rem;
    border-radius: var(--radius-sm, 4px);
}

.tag-mgr-row-new[b-37ka2i5i4z] {
    border: 1px dashed var(--border-input, #444);
    margin-bottom: 0.4rem;
}

/* `all: unset` first: these are plain <button> elements, and something in this app (Bootstrap's CSS is
   loaded globally, unscoped) was winning a specificity tie against the scoped rules below and leaving the
   browser's native button chrome (white background, grey border, black text) showing through instead of
   any of this. Resetting to a blank slate before re-declaring only what's wanted removes the tie entirely
   rather than trying to out-specificity something unverified. */
.tag-mgr-btn[b-37ka2i5i4z] {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1;
    border: 1px solid var(--border-input, #444);
    background: var(--bg-input, #2d2d44);
    color: var(--color-text, #ccc);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    font-size: 0.85rem;
}
.tag-mgr-btn:hover:not(:disabled)[b-37ka2i5i4z] { background: var(--bg-hover, #3d3d55); }
.tag-mgr-btn:disabled[b-37ka2i5i4z] { opacity: 0.4; cursor: default; }

/* Same bordered-box shape as .face-panel-unassign/.face-panel-reject (neutral, not red — these aren't
   destructive actions) so every button in this panel reads as one consistent style instead of the name
   list looking like plain flat rows next to two "real" buttons. */
.tag-mgr-label-btn[b-37ka2i5i4z] {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-input, #444);
    background: var(--bg-input, #2d2d44);
    color: var(--color-text, #ccc);
    cursor: pointer;
    text-align: left;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-mgr-label-btn:hover:not(:disabled)[b-37ka2i5i4z] { background: var(--bg-hover, #3d3d55); }
.tag-mgr-label-btn:disabled[b-37ka2i5i4z] { opacity: 0.4; cursor: default; }

.tag-mgr-label[b-37ka2i5i4z] {
    flex: 1;
    font-size: 0.8rem;
    color: var(--color-muted, #888);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/RightPanel/TagManagerPanel.razor.rz.scp.css */
/* Uses the custom properties defined on .sidebar-shell (SidebarShell.razor.css) — they inherit down the
   DOM regardless of Blazor's CSS isolation, so no duplication is needed here. */

.tag-mgr-controls[b-k49c7bua9f] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.tag-mgr-select[b-k49c7bua9f] {
    width: 100%;
    background: var(--bg-input, #2d2d44);
    border: 1px solid var(--border-input, #444);
    border-radius: var(--radius-sm, 4px);
    padding: 0.35rem 0.5rem;
    color: #e0e0e0;
    font-size: 0.8rem;
}

.tag-mgr-list[b-k49c7bua9f] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tag-mgr-row[b-k49c7bua9f] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.3rem;
    border-radius: var(--radius-sm, 4px);
}

.tag-mgr-row.active[b-k49c7bua9f] {
    background: #3d2d54;
}

.tag-mgr-row-new[b-k49c7bua9f] {
    border: 1px dashed var(--border-input, #444);
    margin-bottom: 0.4rem;
}

.tag-mgr-btn[b-k49c7bua9f] {
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1;
    border: 1px solid var(--border-input, #444);
    background: var(--bg-input, #2d2d44);
    color: var(--color-text, #ccc);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    font-size: 0.85rem;
}
.tag-mgr-btn:hover:not(:disabled)[b-k49c7bua9f] { background: var(--bg-hover, #3d3d55); }
.tag-mgr-btn:disabled[b-k49c7bua9f] { opacity: 0.4; cursor: default; }

.tag-mgr-label-btn[b-k49c7bua9f] {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    color: var(--color-text, #ccc);
    cursor: pointer;
    text-align: left;
    padding: 0.15rem 0.25rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-mgr-label-btn:hover[b-k49c7bua9f] { background: var(--bg-hover, #3d3d55); }

.tag-mgr-label[b-k49c7bua9f] {
    flex: 1;
    font-size: 0.8rem;
    color: var(--color-muted, #888);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/RightPanel/VirtualAlbumAccessPanel.razor.rz.scp.css */
.vam-panel[b-p3dcnbzpox] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Blazor CSS isolation scopes rules to the component that declares them, so classes shared by name with
   AlbumManagePanel.razor.css (amp-danger-box, amp-hint, amp-row, amp-btn) do not carry their styling over
   into this component's own render tree. Duplicated here rather than reused via ::deep, to keep this
   component stylable on its own. */
.amp-hint[b-p3dcnbzpox] {
    margin: 0;
    color: #999;
    font-size: 0.75rem;
    line-height: 1.4;
}

.amp-row[b-p3dcnbzpox] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amp-danger-box[b-p3dcnbzpox] {
    background: #2a1a1a;
    border: 1px solid #844;
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #f5a5a5;
}

.amp-btn[b-p3dcnbzpox] {
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.amp-btn:hover[b-p3dcnbzpox] {
    background: #2d2d44;
}

.vam-filter-row[b-p3dcnbzpox] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vam-filter[b-p3dcnbzpox] {
    background: #1e1e2e;
    border: 1px solid #444;
    color: #ccc;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 3px;
    flex: 1;
    min-width: 0;
}
.vam-filter:focus[b-p3dcnbzpox] {
    outline: 1px solid #7c5cbf;
    border-color: #7c5cbf;
}

/* ── Help tooltip ──────────────────────────────────────────────── */

/* The icon/tooltip shell itself is Components/Shared/HelpPopover.razor now — see its own .razor.css.
   Only the glyph styling for this panel's specific tooltip content stays here, since that markup is
   authored in this file and keeps this file's CSS-isolation scope even when rendered inside HelpPopover. */
.vam-help-glyph[b-p3dcnbzpox] {
    display: inline-block;
    width: 1.2em;
}

/* ── Rows ──────────────────────────────────────────────────────── */

.vam-list[b-p3dcnbzpox] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 320px;
    overflow-y: auto;
}

.vam-row[b-p3dcnbzpox] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
}

.vam-username[b-p3dcnbzpox] {
    flex: 1;
    color: #ccc;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vam-buttons[b-p3dcnbzpox] {
    display: flex;
    gap: 3px;
}

.vam-icon-btn[b-p3dcnbzpox] {
    background: transparent;
    border: 1px solid #3a3a50;
    border-radius: 3px;
    font-size: 0.85rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    opacity: 0.35;
    filter: grayscale(60%);
    transition: opacity 0.1s ease, filter 0.1s ease;
}

.vam-icon-btn:hover:not(:disabled)[b-p3dcnbzpox] {
    opacity: 0.75;
    filter: grayscale(20%);
    background: #2d2d44;
}

.vam-icon-btn.active[b-p3dcnbzpox] {
    opacity: 1;
    filter: none;
    border-color: #7c5cbf;
    background: #3d2d54;
}

.vam-icon-btn:disabled[b-p3dcnbzpox] {
    cursor: default;
}
/* /Components/Shared/HelpPopover.razor.rz.scp.css */
.help-popover[b-6xrnfuohhl] {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-self: center;
    outline: none;
}

.help-popover-icon[b-6xrnfuohhl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--border-input, #444);
    color: var(--color-dim, #666);
    font-size: 0.7rem;
    cursor: pointer;
    user-select: none;
}
.help-popover-icon:hover[b-6xrnfuohhl] {
    border-color: #7c3aed;
    color: #d4a5f5;
}

/* --bg-input etc. come from .sidebar-shell (SidebarShell.razor.css), which every current caller renders
   inside — custom properties inherit through the DOM regardless of Blazor's per-component CSS scoping.
   Fallbacks are here so this still looks right if a future caller renders outside that tree. */
.help-popover-tooltip[b-6xrnfuohhl] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    background: var(--bg-input, #2d2d44);
    border: 1px solid var(--border-input, #444);
    border-radius: var(--radius-sm, 4px);
    padding: 8px 10px;
    font-size: 0.75rem;
    color: var(--color-text, #ccc);
    line-height: 1.4;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.help-popover-tooltip strong[b-6xrnfuohhl] {
    color: var(--color-text-active, #d4a5f5);
}

.help-popover-tooltip ul[b-6xrnfuohhl] {
    margin: 4px 0 0;
    padding-left: 1.1rem;
}

.help-popover-tooltip li[b-6xrnfuohhl] {
    margin-bottom: 4px;
}

.help-popover-tooltip li:last-child[b-6xrnfuohhl] {
    margin-bottom: 0;
}

/* Hover shows it for mouse users; the click-driven class covers keyboard/touch, where hover never fires. */
.help-popover:hover .help-popover-tooltip[b-6xrnfuohhl],
.help-popover-tooltip-forced[b-6xrnfuohhl] {
    visibility: visible;
    opacity: 1;
}
/* /Components/Shared/InlineCreateControl.razor.rz.scp.css */
.inline-create[b-mwo2wv3ber] {
    display: flex;
    flex-direction: column;
}

[b-mwo2wv3ber] .inline-create-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-mwo2wv3ber] .inline-create-input {
    background: #1e1e2e;
    border: 1px solid #444;
    color: #ccc;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 3px;
    flex: 1;
    min-width: 0;
}
[b-mwo2wv3ber] .inline-create-input:focus { outline: 1px solid #7c5cbf; border-color: #7c5cbf; }

[b-mwo2wv3ber] .inline-create-btn {
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}
[b-mwo2wv3ber] .inline-create-btn:hover { background: #2d2d44; }
[b-mwo2wv3ber] .inline-create-btn.primary { border-color: #7c5cbf; color: #d4a5f5; }
[b-mwo2wv3ber] .inline-create-btn.primary:hover { background: #3d2d54; }
/* /Components/Shared/ToastHost.razor.rz.scp.css */
.toast-host[b-vjvsv0c253] {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 20000; /* above the lightbox (10000) so an Undo from inside it is visible */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: min(560px, calc(100vw - 32px));
}

.toast-item[b-vjvsv0c253] {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px 10px 16px;
    border-radius: 8px;
    background: #23233a;
    border-left: 4px solid #4da3ff;
    color: #eee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    font-size: 0.9rem;
}

.toast-success[b-vjvsv0c253] { border-left-color: #2ecc71; }
.toast-warning[b-vjvsv0c253] { border-left-color: #f0ad4e; }
.toast-error[b-vjvsv0c253] { border-left-color: #e74c3c; }

.toast-message[b-vjvsv0c253] {
    flex: 1;
}

.toast-action[b-vjvsv0c253] {
    background: none;
    border: 1px solid #4da3ff;
    border-radius: 4px;
    color: #8ec5ff;
    padding: 2px 10px;
    cursor: pointer;
    font-weight: 600;
}

.toast-close[b-vjvsv0c253] {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
}

.toast-action:focus-visible[b-vjvsv0c253],
.toast-close:focus-visible[b-vjvsv0c253] {
    outline: 2px solid #4da3ff;
    outline-offset: 2px;
}
/* /Components/UserMenu.razor.rz.scp.css */
.user-menu[b-coan104h0r] {
    position: relative;
    display: inline-block;
}

.user-menu-toggle[b-coan104h0r] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #2d2d44;
    border: none;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #bbb;
    cursor: pointer;
}
.user-menu-toggle:hover[b-coan104h0r],
.user-menu-toggle[aria-expanded="true"][b-coan104h0r] { background: #3a3a55; color: #e0e0e0; }
.user-menu-toggle:focus-visible[b-coan104h0r] { outline: 2px solid #9b59b6; outline-offset: 2px; }

.user-menu-caret[b-coan104h0r] { font-size: 0.7rem; opacity: 0.8; }

/* Invisible full-screen layer that closes the menu on any outside click. */
.user-menu-catcher[b-coan104h0r] {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.user-menu-dropdown[b-coan104h0r] {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    min-width: 140px;
    background: var(--surface, #1e1e1e);
    border: 1px solid var(--border, #333);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    padding: 4px 0;
    z-index: 1000;
}

.user-menu-item[b-coan104h0r] {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #e0e0e0;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}
.user-menu-item:hover[b-coan104h0r],
.user-menu-item:focus-visible[b-coan104h0r] { background: #2d2d44; outline: none; }
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-wv4g7x85h7] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wv4g7x85h7] {
    flex: 1;
}

.sidebar[b-wv4g7x85h7] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-wv4g7x85h7] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-wv4g7x85h7]  a, .top-row[b-wv4g7x85h7]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-wv4g7x85h7]  a:hover, .top-row[b-wv4g7x85h7]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-wv4g7x85h7]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-wv4g7x85h7] {
        justify-content: space-between;
    }

    .top-row[b-wv4g7x85h7]  a, .top-row[b-wv4g7x85h7]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-wv4g7x85h7] {
        flex-direction: row;
    }

    .sidebar[b-wv4g7x85h7] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-wv4g7x85h7] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-wv4g7x85h7]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-wv4g7x85h7], article[b-wv4g7x85h7] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-dd0or974pa] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-dd0or974pa] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-dd0or974pa] {
    font-size: 1.1rem;
}

.bi[b-dd0or974pa] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-dd0or974pa] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-dd0or974pa] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-dd0or974pa] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-dd0or974pa] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-dd0or974pa] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-dd0or974pa] {
        padding-bottom: 1rem;
    }

    .nav-item[b-dd0or974pa]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-dd0or974pa]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-dd0or974pa]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-dd0or974pa] {
        display: none;
    }

    .collapse[b-dd0or974pa] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-dd0or974pa] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/MainView.razor.rz.scp.css */
.shell[b-l9vmht9mt3] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
    background: #121212;
}

/* Header */
.header[b-l9vmht9mt3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a40;
}
.header-left[b-l9vmht9mt3] { display: flex; align-items: center; gap: 1rem; }
.logo[b-l9vmht9mt3] { margin: 0; font-size: 1.25rem; font-weight: 700; color: #9b59b6; }
.user-select[b-l9vmht9mt3] {
    background: #2d2d44;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Body */
.body[b-l9vmht9mt3] {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative; /* anchors .panel-backdrop and the absolutely-positioned mobile drawers */
}

/* Header buttons that open the left/right drawers below SidebarShell's mobile breakpoint. Hidden above
   it — both sidebars are already visible in the normal flex layout there, so there is nothing to toggle. */
.panel-toggle[b-l9vmht9mt3] {
    display: none;
    background: none;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
}
.panel-toggle:hover[b-l9vmht9mt3] { background: #2d2d44; }

/* Dims and blocks the content behind an open mobile drawer; tapping it closes whichever panel is open. */
.panel-backdrop[b-l9vmht9mt3] {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40; /* below SidebarShell's mobile-open z-index (50), above .main */
}

@media (max-width: 768px) {
    .panel-toggle[b-l9vmht9mt3] {
        display: inline-flex;
        align-items: center;
    }
}

/* Main */
.main[b-l9vmht9mt3] {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
}

/* Wraps the grid / face grid so it can be made inert under the lightbox overlay (MainView.razor);
   passes the full height through to .album-browser's height: 100%. */
.main-content[b-l9vmht9mt3] {
    height: 100%;
}

/* Toolbar */
.toolbar[b-l9vmht9mt3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.toolbar h2[b-l9vmht9mt3] {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge[b-l9vmht9mt3] {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-weight: 600;
}
.badge.virtual[b-l9vmht9mt3] {
    background: #7c3aed;
    color: white;
}

/* Album grid */
.album-grid[b-l9vmht9mt3] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Photo grid */
.photo-grid[b-l9vmht9mt3] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
}

/* Empty */
.empty[b-l9vmht9mt3] {
    text-align: center;
    color: #666;
    padding: 3rem;
    font-size: 0.95rem;
}


/* Breadcrumb */
.breadcrumb[b-l9vmht9mt3] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #888;
}
.breadcrumb button[b-l9vmht9mt3] {
    background: none;
    border: none;
    color: #9b59b6;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
}
.breadcrumb button:hover[b-l9vmht9mt3] { text-decoration: underline; }
.breadcrumb .sep[b-l9vmht9mt3] { color: #555; }
.breadcrumb .current[b-l9vmht9mt3] { color: #ccc; }

/* Album card */
.album-card[b-l9vmht9mt3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e1e30;
    border: 1px solid #2a2a40;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 160px;
}
.album-card:hover[b-l9vmht9mt3] { background: #2a2a44; }
.album-card .icon[b-l9vmht9mt3] { font-size: 1.5rem; }
.album-card .name[b-l9vmht9mt3] { font-size: 0.9rem; }
.album-card.virtual[b-l9vmht9mt3] { border-color: #7c3aed44; }

/* Photo card */
.photo-card[b-l9vmht9mt3] {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, opacity 0.15s;
    background: #1e1e30;
}
.photo-card:hover[b-l9vmht9mt3] { border-color: #9b59b6; }
.photo-card.highlighted[b-l9vmht9mt3] { border-color: #2ecc71; box-shadow: 0 0 8px #2ecc7155; }
.photo-card.dimmed[b-l9vmht9mt3] { opacity: 0.35; }
.photo-card img[b-l9vmht9mt3] {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.photo-card .photo-label[b-l9vmht9mt3] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 0.5rem 0.5rem 0.35rem;
    font-size: 0.7rem;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}
.photo-card .owner-tag[b-l9vmht9mt3] {
    background: #2d2d44;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.6rem;
}

/* Lightbox */
.lightbox-overlay[b-l9vmht9mt3] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}
.lightbox[b-l9vmht9mt3] {
    background: #1e1e30;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
}
.lightbox img[b-l9vmht9mt3] {
    width: 100%;
    display: block;
}
.lightbox-info[b-l9vmht9mt3] {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lightbox-info .details[b-l9vmht9mt3] {
    font-size: 0.85rem;
}
.lightbox-info .details .filename[b-l9vmht9mt3] { font-weight: 600; }
.lightbox-info .details .owner[b-l9vmht9mt3] { color: #888; font-size: 0.75rem; }
.lightbox-actions[b-l9vmht9mt3] {
    display: flex;
    gap: 0.4rem;
}
.lightbox-actions button[b-l9vmht9mt3] {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2d2d44;
    color: #ccc;
    cursor: pointer;
    font-size: 0.8rem;
}
.lightbox-actions button:hover[b-l9vmht9mt3] { background: #3d3d55; }
.lightbox-actions button.danger[b-l9vmht9mt3] { border-color: #e74c3c55; color: #e74c3c; }
.lightbox-actions button.danger:hover[b-l9vmht9mt3] { background: #e74c3c22; }

/* Metadata panel */
.lightbox-meta[b-l9vmht9mt3] {
    border-top: 1px solid #2a2a40;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}
.meta-row[b-l9vmht9mt3] {
    display: flex;
    gap: 0.5rem;
}
.meta-label[b-l9vmht9mt3] {
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

/* Right-side context panel tree styles (rendered as RenderFragment in page scope) */
[b-l9vmht9mt3] .context-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[b-l9vmht9mt3] .context-tabs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

[b-l9vmht9mt3] .context-tab {
    padding: 0.3rem 0.6rem;
    border: 1px solid #444;
    background: #2d2d44;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
}
[b-l9vmht9mt3] .context-tab:hover { background: #3d3d54; }
[b-l9vmht9mt3] .context-tab.active { background: #7c3aed; border-color: #7c3aed; color: white; }

[b-l9vmht9mt3] .context-tree {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.25rem;
}

[b-l9vmht9mt3] .context-node {
    display: flex;
    flex-direction: column;
}

[b-l9vmht9mt3] .context-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: left;
    width: 100%;
}
[b-l9vmht9mt3] .context-item:hover { background: #2d2d44; }
[b-l9vmht9mt3] .context-item.active { background: #3d2d54; color: #d4a5f5; }

[b-l9vmht9mt3] .context-icon { font-size: 0.85rem; flex-shrink: 0; }
[b-l9vmht9mt3] .context-count { margin-left: auto; color: #666; font-size: 0.7rem; }

[b-l9vmht9mt3] .context-sub {
    margin-left: 1rem;
}

/* ── Drag-and-drop upload overlay ── */
.drop-overlay[b-l9vmht9mt3] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 15000;
    align-items: center;
    justify-content: center;
    background: rgba(10, 20, 40, 0.75);
    border: 3px dashed #4da3ff;
}

.drop-overlay.active[b-l9vmht9mt3] {
    display: flex;
}

.drop-overlay-message[b-l9vmht9mt3] {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none;
}

/* The transparent input that actually receives the drop. ::deep because InputFile renders the <input>
   itself, outside this component's CSS scope. */
.drop-overlay[b-l9vmht9mt3]  .drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: copy;
}

.drop-overlay[b-l9vmht9mt3]  .drop-input.used {
    display: none;
}
