    .browse-hero { margin: 18px 0 24px; }
    .browse-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
    .browse-hero p { color: var(--text-dim); font-size: 14px; margin: 0; }

    /* -- Toolbar panel: bundles search, the list/grid switch, and both filter
       rows into one full-width bordered panel instead of a loose stack of
       left-aligned controls — search/toggle share a row (search grows to fill
       the space, toggle pinned to the far right), filters get their own row
       underneath so their pills have room to breathe across the full width. -- */
    .browse-toolbar-panel {
        background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
        padding: 16px 18px; margin-bottom: 22px;
    }
    .browse-toolbar-row { display: flex; align-items: center; gap: 14px; }
    .browse-search-wrap { position: relative; flex: 1; }
    .browse-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
    .browse-search-wrap input {
        width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: 9px;
        background: var(--panel-alt); color: var(--text); font-size: 14px; font-family: var(--sans); box-sizing: border-box;
    }
    .browse-search-wrap input:focus { outline: none; border-color: var(--accent); }

    .browse-view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
    .browse-view-btn {
        display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
        background: var(--panel); border: none; color: var(--text-dim); cursor: pointer; transition: .15s;
    }
    .browse-view-btn:not(:last-child) { border-right: 1px solid var(--border); }
    .browse-view-btn:hover { color: var(--text); }
    .browse-view-btn.active { background: var(--accent); color: var(--accent-contrast); }

    .browse-filters-row {
        display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
        margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
    }
    .browse-filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .browse-filter-group-label { font-size: 11.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0; }
    .browse-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
    .browse-filter-pill {
        padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-alt);
        color: var(--text-dim); font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; font-family: var(--sans);
    }
    .browse-filter-pill:hover { border-color: var(--accent); color: var(--text); }
    .browse-filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

    .browse-section { margin-top: 26px; }
    .browse-section-title { font-size: 13.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
    .browse-list { display: flex; flex-direction: column; gap: 6px; }
    .browse-row {
        display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
        background: var(--panel); border: 1px solid var(--border); border-radius: 9px;
        padding: 10px 12px; cursor: pointer; font-family: var(--sans);
        transition: border-color .15s, background .15s;
    }
    .browse-row:hover { border-color: var(--accent); background: var(--panel-alt); }
    .browse-row-icon {
        flex-shrink: 0; display: flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border-radius: 7px; background: var(--panel-alt); color: var(--text-dim);
    }
    /* The grid's animated icons (52×50) shrunk into the row's 32×32 box. */
    .browse-row-icon-anim { overflow: visible; background: transparent; }
    .browse-row-icon-anim > * { transform: scale(.62); transform-origin: center center; margin-bottom: 0 !important; }
    .browse-row-text { flex: 1; min-width: 0; }
    .browse-row-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .browse-row-sub { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* -- List view has room to spare (see .browse-toolbar-panel comment above),
       so the extra info shown as a hover flyout in grid view (and on the
       homepage) is shown inline here instead — no hover needed. Hidden below
       900px, where that room disappears. -- */
    .browse-row-meta { display: flex; gap: 22px; flex-shrink: 0; }
    /* Fixed width (not min/max) so a long value in one row doesn't shift that
       column out of line with the same column in every other row. */
    .browse-row-meta-item { display: flex; flex-direction: column; gap: 1px; width: 130px; flex-shrink: 0; }
    .browse-row-meta-label { font-size: 9.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
    .browse-row-meta-value { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    @media (max-width: 900px) { .browse-row-meta { display: none; } }
    /* Fixed width, right-aligned: "Öffentlich" vs "Eigene" vs "Geteilt" are
       different lengths, so without a fixed width here the badges column (and
       everything to its left, since .browse-row-text absorbs the difference)
       shifted depending on which badge a given row happened to have. */
    .browse-row-badges { display: flex; justify-content: flex-end; gap: 6px; width: 150px; flex-shrink: 0; }
    .browse-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .2px; white-space: nowrap; }
    .browse-badge-type { background: var(--panel-alt); color: var(--text-dim); border: 1px solid var(--border); }
    .browse-badge-public { background: var(--note-bg); color: var(--accent-warm); border: 1px solid var(--note-border); }
    .browse-badge-own { background: var(--panel-alt); color: var(--text-dim); border: 1px solid var(--border); }
    .browse-badge-shared { background: var(--panel-alt); color: var(--accent); border: 1px solid var(--border); }
    .browse-badge-external { background: transparent; color: var(--accent-warm); border: 1px solid var(--note-border); }

    /* -- Grid ("Kästen") view: same card look as the homepage's vault grid
       (rounded panel, centered icon, hover lift), simplified — no folder-icon
       hover animation, since this grid mixes vaults/docs/users rather than
       vaults alone. -- */
    .browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .browse-card {
        position: relative; z-index: 1;
        display: flex; flex-direction: column; align-items: center; text-align: center;
        background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
        padding: 18px 12px 14px; cursor: pointer; font-family: var(--sans);
        transition: border-color .15s, transform .15s, box-shadow .15s;
    }
    .browse-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); z-index: 30; }
    .browse-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    /* -- Info flyout for grid cards, same pattern as the homepage's
       .vault-info-flyout: appears to the side on hover without disturbing
       neighbouring cards' layout, flips left near the right edge of the
       viewport (see attachFlyoutFlip below). -- */
    .browse-card-flyout {
        position: absolute; top: 0; left: 100%; margin-left: 10px; width: calc(100% - 6px); height: 100%;
        background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 14px;
        text-align: left; box-sizing: border-box;
        opacity: 0; pointer-events: none; transform: translateX(-6px);
        transition: opacity .18s ease, transform .18s ease;
        box-shadow: 0 12px 28px rgba(0,0,0,.2);
        display: flex; flex-direction: column; justify-content: center; gap: 10px;
    }
    .browse-card:hover .browse-card-flyout { opacity: 1; pointer-events: auto; transform: translateX(0); }
    .browse-card.flip-left .browse-card-flyout { left: auto; right: 100%; margin-left: 0; margin-right: 10px; transform: translateX(6px); }
    .browse-card.flip-left:hover .browse-card-flyout { transform: translateX(0); }
    .browse-card-flyout-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .browse-card-flyout-label { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); font-weight: 700; }
    .browse-card-flyout-value { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    @media (max-width: 700px) {
        .browse-card-flyout {
            position: static; margin: 10px 0 0; width: 100%; height: auto;
            opacity: 1; transform: none; box-shadow: none; display: none;
        }
        .browse-card:hover .browse-card-flyout { display: flex; }
    }
    .browse-card-icon {
        display: flex; align-items: center; justify-content: center;
        width: 52px; height: 52px; border-radius: 12px; background: var(--panel-alt); color: var(--text-dim);
        margin-bottom: 10px; flex-shrink: 0;
    }
    /* A "Benutzer" result gets a round, colored-initials avatar (see UserAvatar.applyTo
       in browse.js) instead of the square generic-icon box every other card uses. */
    .browse-card-icon.directory-avatar { border-radius: 50%; font-size: 16px; font-weight: 700; color: #fff; text-transform: uppercase; }
    .browse-card-title {
        font-weight: 600; font-size: 13px; color: var(--text); max-width: 100%;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .browse-card-sub {
        font-size: 11px; color: var(--text-dim); margin-top: 3px; max-width: 100%;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .browse-card-badges { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }


    .browse-empty-hint {
        text-align: center; color: var(--text-dim); font-size: 13.5px;
        border: 1px dashed var(--border); border-radius: 10px; padding: 28px; margin-top: 20px;
    }

    /* -- Right-click "open in…" menu for vault/document rows -- */
    .open-context-menu {
        position: fixed; z-index: 2000; min-width: 170px;
        background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
        box-shadow: 0 10px 28px rgba(0,0,0,.28); padding: 6px;
    }
    .open-context-menu button {
        display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--text);
        padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: var(--sans);
    }
    .open-context-menu button:hover { background: var(--panel-alt); }
