/* Workspace route-tail rules after the shared header-actions layer. */
body.user-body-workspace {
    --zn-workspace-share-access-background: var(--zn-member-bg-pane, var(--zn-member-bg-page, #ffffff));
    --zn-workspace-share-toggle-track: var(--zn-member-bg-surface);
    --zn-workspace-share-toggle-track-active: var(--zn-member-text-link);
    --zn-workspace-share-toggle-knob: var(--zn-member-bg-card);
}

body.user-body-workspace .attachment-action-modal-panel {
    gap: 14px;
}

body.user-body-workspace .attachment-action-choice-list {
    display: grid;
    gap: 8px;
    max-height: min(360px, 42vh);
    overflow: auto;
    padding: 2px 4px 2px 0;
}

body.user-body-workspace .attachment-action-choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 8px;
    background: var(--zn-member-bg-card);
    color: var(--zn-member-text-primary);
    overflow: hidden;
}

body.user-body-workspace .attachment-action-choice:has(input:checked) {
    border-color: var(--zn-member-accent-border-muted);
    background: color-mix(in srgb, var(--zn-member-accent-surface) 12%, var(--zn-member-bg-card));
}

body.user-body-workspace .attachment-action-choice input[type="radio"],
body.user-body-workspace .attachment-action-choice input[type="checkbox"] {
    appearance: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    border: 2px solid var(--zn-workspace-select-border);
    border-radius: 999px;
    background: var(--zn-workspace-select-background);
    box-shadow: none;
}

body.user-body-workspace .attachment-action-choice input[type="radio"]:checked,
body.user-body-workspace .attachment-action-choice input[type="checkbox"]:checked {
    border-color: var(--zn-workspace-select-active-border);
    background: var(--zn-workspace-select-active-background);
}

body.user-body-workspace .attachment-action-choice span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

body.user-body-workspace .attachment-action-choice strong,
body.user-body-workspace .attachment-action-choice small {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.user-body-workspace .attachment-action-choice strong {
    color: var(--zn-member-text-primary);
    font-size: 0.9rem;
    line-height: 1.18;
}

body.user-body-workspace .attachment-action-choice small {
    margin-top: 2px;
    color: var(--zn-member-text-secondary);
    font-size: 0.72rem;
    line-height: 1.2;
}

body.user-body-workspace .workspace-move-choice-list {
    grid-auto-rows: max-content;
    align-content: start;
}

body.user-body-workspace .workspace-move-choice-list .attachment-action-choice {
    height: auto;
    overflow: visible;
}

body.user-body-workspace .workspace-move-choice-list .attachment-action-choice span {
    overflow: visible;
}

body.user-body-workspace .attachment-action-modal-copy {
    overflow-wrap: anywhere;
}

body.user-body-workspace .workspace-rename-modal-panel {
    width: min(520px, calc(100vw - 32px));
}

body.user-body-workspace .workspace-rename-field {
    display: grid;
    gap: 8px;
}

body.user-body-workspace .workspace-rename-field .form-input {
    width: 100%;
    min-width: 0;
}

body.user-body-workspace .workspace-rename-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body.user-body-workspace .workspace-rename-modal-actions .secondary-button,
body.user-body-workspace .workspace-rename-modal-actions .primary-button {
    min-width: 108px;
}

@media (max-width: 760px) {

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-browser {
        padding-top: 0;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-left-workflow {


        margin: 12px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
        box-sizing: border-box;
        max-height: calc(100dvh - 116px);
        overflow: hidden;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-panel {
        height: auto;
        max-height: calc(100dvh - 116px);
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-panel > .workspace-calendar-action-shell,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-edit-shell {
        flex: 1 1 auto;
        max-height: calc(100dvh - 168px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participants {

        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-layout {
        height: auto;
        grid-template-rows: auto;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-main {
        display: none;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-upcoming {
        width: 100%;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-upcoming .workspace-calendar-panel {
        max-height: none;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-upcoming-list {
        grid-template-columns: minmax(0, 1fr);
        max-height: none;
    }}

@media (max-width: 980px) {

    body.user-body-workspace .user-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.user-body-workspace .topbar-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-calendar-layout {
        grid-template-columns: 1fr;
    }

    .workspace-calendar-main {
        min-height: auto;
    }

    .workspace-calendar-toolbar,
    .workspace-calendar-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .workspace-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .workspace-calendar-controls {
        justify-content: flex-start;
    }

    .workspace-action-bar {
        grid-template-columns: 1fr;
    }

    .workspace-create-folder-form,
    .workspace-upload-dropzone {
        align-items: stretch;
    }

    .workspace-create-folder-form {
        flex-direction: column;
    }

    

    .workspace-project-controls,
    .workspace-upload-controls {
        flex-direction: column;
        align-items: stretch;
    }

    

    

    }

@media (max-width: 760px) {

    body.user-body-messaging .attachment-viewer,
    body.user-body-workspace .attachment-viewer {
        padding: 10px;
    }

    body.user-body-messaging .attachment-viewer-panel,
    body.user-body-workspace .attachment-viewer-panel {
        width: min(100vw - 20px, 760px);
        max-height: 90vh;
    }

    body.user-body-messaging .attachment-viewer-body,
    body.user-body-workspace .attachment-viewer-body {
        padding: 8px;
    }

    body.user-body-messaging .attachment-viewer-fallback,
    body.user-body-workspace .attachment-viewer-fallback {
        min-height: calc(90vh - 96px);
        padding: 18px;
    }

    body.user-body-messaging .attachment-viewer-fallback-action,
    body.user-body-workspace .attachment-viewer-fallback-action {
        width: 100%;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] {
        align-items: flex-start;
        justify-items: center;
        padding:
            max(54px, calc(env(safe-area-inset-top) + 22px))
            max(14px, env(safe-area-inset-right))
            max(14px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-panel {
        width: min(100%, 420px);
        max-width: 100%;
        height: min(720px, calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom))));
        max-height: calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom)));
        border-radius: 16px;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-header {
        min-height: 58px;
        padding: 8px 12px;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-actions {
        gap: 8px;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-download,
    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-share,
    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-close {
        min-width: 46px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-body {
        display: grid;
        min-height: 0;
        padding: 10px;
        overflow: hidden;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .workspace-preview-pdf-fallback {
        min-height: 0;
        height: 100%;
        justify-content: center;
        padding: 18px;
    }

    body.user-body-workspace .attachment-viewer[data-viewer-kind="pdf"] .attachment-viewer-fallback-actions {
        flex-direction: column;
    }

    body.user-body-workspace .user-shell {
        padding: 0;
        gap: 0;
    }

    body.user-body-workspace .user-topbar {
        padding:
            calc(14px + var(--safe-top))
            max(16px, env(safe-area-inset-right))
            10px
            max(16px, env(safe-area-inset-left));
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border-bottom: 1px solid var(--zn-member-border);
        background: var(--zn-member-bg-card);
        backdrop-filter: blur(16px);
    }

    body.user-body-workspace .topbar-controls {
        justify-content: space-between;
        gap: 8px;
    }

    body.user-body-workspace .topbar-user-card {
        display: none;
    }

    body.user-body-workspace .workspace-layout {
        margin: 0;
    }

    body.user-body-workspace .flash-banner {
        margin: 10px 12px 0;
        width: auto;
        border-radius: 18px;
    }

    body.user-body-workspace .workspace-browser {
        padding: 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }

    body.user-body-workspace .user-kicker {
        display: none;
    }

    body.user-body-workspace .topbar-title-mark {
        margin-top: 0;
    }

    body.user-body-workspace .topbar-title h1 {
        font-size: 1.08rem;
    }

    body.user-body-workspace .user-app-nav {
        gap: 6px;
    }

    body.user-body-workspace .user-app-nav-link {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    

    body.user-body-workspace .workspace-breadcrumbs,
    body.user-body-workspace .workspace-section,
    body.user-body-workspace .workspace-upload-form,
    body.user-body-workspace .workspace-calendar-main,
    body.user-body-workspace .workspace-subtabs {
        border-radius: 18px;
    }

    body.user-body-workspace .workspace-subtabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.user-body-workspace .workspace-calendar-controls {
        gap: 6px;
    }

    body.user-body-workspace .workspace-calendar-timezone,
    body.user-body-workspace .workspace-calendar-range {
        white-space: normal;
    }

    body.user-body-workspace .workspace-world-timer-drawer {
        position: fixed;
        inset: auto 12px 12px 12px;
        width: auto;
        max-height: min(78vh, 680px);
        border-radius: 20px;
        z-index: 1100;
    }

    body.user-body-workspace .workspace-world-timer-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.user-body-workspace .workspace-world-timer-time {
        grid-column: 2;
        justify-items: start;
    }

    body.user-body-workspace .workspace-calendar-form-row {
        grid-template-columns: 1fr;
    }

    }

body.user-body-meetings .topbar-title,
body.user-body-workspace .topbar-title {
    width: 100%;
    align-items: flex-start;
}

body.user-body-meetings .topbar-title-copy,
body.user-body-workspace .topbar-title-copy {
    width: min(760px, 100%);
    flex: 1 1 760px;
}

body.user-body-meetings .surface-switcher-user,
body.user-body-workspace .surface-switcher-user {
    width: min(760px, 100%);
    max-width: 760px;
}

body.user-body-meetings .surface-switcher-user .surface-switcher-link,
body.user-body-workspace .surface-switcher-user .surface-switcher-link {
    flex: 1 1 92px;
    min-width: 72px;
    min-height: 58px;
    border-radius: 18px;
}

@media (max-width: 760px) {
    body.user-body-meetings .meeting-participant-drawer,
    body.user-body-workspace .workspace-calendar-participant-drawer {
        align-items: flex-start;
        justify-content: center;
        padding:
            max(54px, calc(env(safe-area-inset-top) + 22px))
            max(14px, env(safe-area-inset-right))
            max(14px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
        box-sizing: border-box;
    }

    body.user-body-meetings .meeting-participant-drawer-panel,
    body.user-body-workspace .workspace-calendar-participant-drawer-panel {
        width: min(100%, 420px);
        max-width: 100%;
        height: min(640px, calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom))));
        max-height: calc(100dvh - max(54px, calc(env(safe-area-inset-top) + 22px)) - max(14px, env(safe-area-inset-bottom)));
        margin: 0;
        padding: 14px;
        border-radius: 16px;
        overflow: hidden;
    }

    body.user-body-meetings .meeting-participant-drawer-header,
    body.user-body-workspace .workspace-calendar-participant-drawer-header {
        min-height: 46px;
        align-items: center;
    }

    body.user-body-meetings .meeting-participant-drawer-close,
    body.user-body-workspace .workspace-calendar-participant-drawer-close {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    body.user-body-meetings .meeting-participant-search,
    body.user-body-workspace .workspace-calendar-participant-search {
        flex-basis: 48px;
        min-height: 48px;
    }

    body.user-body-meetings .meeting-participant-list,
    body.user-body-workspace .workspace-calendar-participant-list {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-meetings .meeting-participant-drawer-footer,
    body.user-body-workspace .workspace-calendar-participant-drawer-footer {
        flex: 0 0 auto;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-left-workflow,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-panel,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-panel > .workspace-calendar-action-shell,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-edit-shell,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-row,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participants,
    body.user-body-workspace:has(.workspace-calendar-shell) .form-field,
    body.user-body-workspace:has(.workspace-calendar-shell) .form-input,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participant-drawer-open,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-submit {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-form-panel > .workspace-calendar-action-shell,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-edit-shell {
        overflow-x: hidden;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participants {
        max-height: none;
        overflow: visible;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participant-picker-header {
        min-width: 0;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-participant-picker-actions {
        min-width: 0;
        flex: 0 0 auto;
    }

    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-calendar-left-workflow {
        width: auto;
        max-width: none;
        margin-right: max(16px, env(safe-area-inset-right));
        margin-left: max(16px, env(safe-area-inset-left));
    }}

.user-body-pdf-reader {
    overflow: hidden;
    background: #05070c;
}

.user-body-pdf-reader .user-shell {
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.workspace-pdf-reader {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #05070c;
    color: #f8fafc;
}

.workspace-pdf-reader-header {
    min-height: calc(58px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding:
        calc(10px + env(safe-area-inset-top))
        max(14px, env(safe-area-inset-right))
        10px
        max(14px, env(safe-area-inset-left));
    background: rgba(5, 7, 12, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.workspace-pdf-reader-header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 760;
}

.workspace-pdf-reader-back,
.workspace-pdf-reader-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    text-decoration: none;
    font-weight: 760;
}

.workspace-pdf-reader-back {
    padding: 0 14px;
}

.workspace-pdf-reader-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.workspace-pdf-reader-action {
    width: 44px;
    padding: 0;
}

.workspace-pdf-reader-action svg {
    width: 19px;
    height: 19px;
}

.workspace-pdf-reader-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #111;
    display: none;
}

.workspace-pdf-reader-mobile {
    min-height: 0;
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding:
        16px
        max(16px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    background: #0b0d12;
}

.workspace-pdf-reader-page-list {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.workspace-pdf-reader-page {
    margin: 0;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.workspace-pdf-reader-page img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.workspace-pdf-reader-page figcaption {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.78rem;
    font-weight: 760;
}

.workspace-pdf-reader-mobile-fallback {
    min-height: calc(100dvh - 120px);
    display: grid;
    align-content: center;
    gap: 12px;
    text-align: center;
    color: #f8fafc;
}

.workspace-pdf-reader-mobile-fallback strong {
    font-size: 1.05rem;
    font-weight: 820;
}

.workspace-pdf-reader-mobile-fallback p {
    margin: 0;
    color: rgba(248, 250, 252, 0.72);
}

.workspace-pdf-reader-mobile-fallback a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 760;
}

@media (max-width: 760px) {
    .workspace-pdf-reader {
        background: #0b0d12;
    }

    .workspace-pdf-reader-header {
        position: sticky;
        top: max(14px, env(safe-area-inset-top));
        z-index: 20;
        margin:
            0
            max(8px, env(safe-area-inset-right))
            8px
            max(8px, env(safe-area-inset-left));
        min-height: 58px;
        padding: 7px 8px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
    }

    .workspace-pdf-reader-back,
    .workspace-pdf-reader-action {
        min-width: 48px;
        min-height: 48px;
    }

    .workspace-pdf-reader-mobile {
        padding:
            18px
            max(10px, env(safe-area-inset-right))
            max(18px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
        scroll-padding-top: calc(82px + env(safe-area-inset-top));
        background: #0b0d12;
    }

    .workspace-pdf-reader-page-list {
        display: grid;
        gap: 14px;
    }

    .workspace-pdf-reader-page {
        margin: 0;
        display: grid;
        gap: 8px;
        justify-items: center;
    }

    .workspace-pdf-reader-page img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    }

    .workspace-pdf-reader-page figcaption {
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(248, 250, 252, 0.78);
        font-size: 0.78rem;
        font-weight: 760;
    }

    .workspace-pdf-reader-mobile-fallback {
        min-height: calc(100dvh - 120px);
        display: grid;
        align-content: center;
        gap: 12px;
        text-align: center;
        color: #f8fafc;
    }

    .workspace-pdf-reader-mobile-fallback strong {
        font-size: 1.05rem;
        font-weight: 820;
    }

    .workspace-pdf-reader-mobile-fallback p {
        margin: 0;
        color: rgba(248, 250, 252, 0.72);
    }

    .workspace-pdf-reader-mobile-fallback a {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        color: #f8fafc;
        text-decoration: none;
        font-weight: 780;
    }}

/* Workspace PWA shell */
body.user-body-workspace {
    overflow: hidden;
}

body.user-body-workspace .user-shell {
    height: var(--app-vh);
    min-height: 0;
    overflow: hidden;
    padding:
        max(14px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(14px, var(--safe-bottom))
        max(18px, env(safe-area-inset-left));
}

body.user-body-workspace .workspace-layout {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 14px;
}

body.user-body-workspace .workspace-left-panel,
body.user-body-workspace .workspace-browser {
    min-width: 0;
    height: 100%;
    min-height: 0;
}

body.user-body-workspace .workspace-hub {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 12px 14px 14px;
}

body.user-body-workspace .workspace-home-header {
    flex: 0 0 auto;
    padding: 6px 6px 14px 4px;
}

body.user-body-workspace .workspace-brand-row {
    grid-template-columns: 46px minmax(0, 1fr) auto 42px;
    gap: 12px;
}

body.user-body-workspace .workspace-brand-row h1 {
    font-size: 1.04rem;
    letter-spacing: 0;
}

body.user-body-workspace .workspace-hub .surface-switcher-user {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
}

body.user-body-workspace .workspace-hub .surface-switcher-user .surface-switcher-link {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
}

body.user-body-workspace .workspace-hub .surface-switcher-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}


body.user-body-workspace .workspace-browser {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    border-radius: var(--user-radius-lg);
    background: var(--zn-workspace-panel-background);
    border: 1px solid var(--zn-workspace-panel-border);
}











.workspace-identity-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

body.user-body-workspace:has(.workspace-calendar-shell) .workspace-layout {
    display: grid;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 14px;
}

body.user-body-workspace:has(.workspace-calendar-shell) .workspace-browser {
    flex: initial;
}

body.user-body-workspace .workspace-hub .workspace-subtabs {
    width: 100%;
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
}

body.user-body-workspace .workspace-hub .workspace-subtab {
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.86rem;
}

body.user-body-meetings .meeting-hub .workspace-subtabs {
    width: 100%;
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
}

body.user-body-meetings .meeting-hub .workspace-subtab {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 14px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.workspace-sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workspace-sidebar-tools .pane-kicker {
    margin-top: 4px;
    margin-bottom: 2px;
}

.workspace-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
}

.workspace-tool-card {
    min-width: 0;
    min-height: 72px;
    display: grid;
    grid-template-rows: 24px auto;
    place-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-workspace-tool-background);
    color: var(--zn-workspace-tool-text);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 1px 0 color-mix(in srgb, white 8%, transparent);
}

.workspace-tool-card span {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tool-card small {
    display: none;
}

.workspace-tool-card:hover,
.workspace-tool-card:focus-visible,
.workspace-tool-card.is-active {
    border-color: var(--zn-workspace-tool-active-border);
    background: var(--zn-workspace-tool-active-background);
    color: var(--zn-workspace-tool-active-text);
    outline: none;
}

.workspace-tool-share {
    min-width: 0;
    position: relative;
}

.workspace-tool-share > summary {
    width: 100%;
    list-style: none;
}

.workspace-tool-share > summary::-webkit-details-marker {
    display: none;
}

.workspace-tool-share .workspace-share-popover {
    position: absolute;
    z-index: 150;
    top: 0;
    left: 0;
    width: calc(200% + 10px);
    max-height: min(430px, calc(100vh - 240px));
    margin: 0;
    overflow: auto;
    transform: none;
    padding: 16px;
    background: var(--zn-workspace-share-access-background);
    box-shadow: var(--zn-member-shadow-card);
}

.workspace-tool-share .workspace-share-header {
    align-items: flex-start;
}

.workspace-tool-share .workspace-share-close {
    display: grid;
}

.workspace-tool-share .workspace-share-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.workspace-tool-share .workspace-share-scope {
    margin: 12px 0;
}

.workspace-tool-share .workspace-share-form .form-input,
.workspace-tool-share .workspace-share-actions {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.workspace-tool-share .workspace-permission-toggle {
    min-width: 0;
    justify-content: flex-start;
}

.workspace-tool-share .workspace-share-backdrop {
    display: none;
}

.workspace-finder-share:not(.workspace-tool-share) .workspace-share-popover {
    z-index: 150;
    left: 50%;
    right: auto;
    width: min(490px, calc(100vw - 96px));
    padding: 18px;
    transform: translateX(-50%);
    background: var(--zn-workspace-share-access-background);
    box-shadow: var(--zn-member-shadow-card);
}

.workspace-finder-share:not(.workspace-tool-share) .workspace-share-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

.workspace-finder-share:not(.workspace-tool-share) .workspace-share-scope {
    margin: 12px 0 14px;
}

.workspace-finder-share:not(.workspace-tool-share) .workspace-share-form .form-input,
.workspace-finder-share:not(.workspace-tool-share) .workspace-share-actions {
    grid-column: 1 / -1;
    width: 100%;
}

.workspace-finder-share:not(.workspace-tool-share) .workspace-share-form .form-input {
    min-height: 52px;
    margin-bottom: 8px;
    padding-inline: 14px;
    font-size: 0.94rem;
}

.workspace-share-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 10px;
    margin-top: 4px;
}

.workspace-share-actions .workspace-share-cancel,
.workspace-share-actions .workspace-share-button {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 48px;
}

.workspace-share-form .workspace-permission-toggle {
    min-height: 50px;
}

.workspace-share-form .workspace-permission-toggle > span {
    min-height: 50px;
    position: relative;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
}

.workspace-share-form .workspace-permission-toggle > span::before {
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: var(--zn-workspace-share-toggle-track);
    box-shadow: inset 0 0 0 1px var(--zn-member-border);
}

.workspace-share-form .workspace-permission-toggle > span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--zn-workspace-share-toggle-knob);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--zn-member-bg-app) 28%, transparent);
    transform: translateY(-50%);
    transition: transform 140ms ease, background 140ms ease;
}

.workspace-share-form .workspace-permission-toggle input[type="checkbox"]:checked + span::before {
    border-color: var(--zn-workspace-share-toggle-track-active);
    background: var(--zn-workspace-share-toggle-track-active);
}

.workspace-share-form .workspace-permission-toggle input[type="checkbox"]:checked + span::after {
    background: var(--zn-member-accent-contrast, #ffffff);
    transform: translate(14px, -50%);
}

.workspace-tool-card .workspace-tool-icon,
.workspace-tool-card svg {
    color: var(--zn-workspace-tool-icon);
    stroke: currentColor;
}

.workspace-tool-card:hover .workspace-tool-icon,
.workspace-tool-card.is-active .workspace-tool-icon {
    color: var(--zn-workspace-tool-active-icon);
}

.workspace-tool-card:hover svg,
.workspace-tool-card.is-active svg {
    color: var(--zn-workspace-tool-active-icon);
    stroke: currentColor;
}

.workspace-tool-card:disabled,
.workspace-tool-card.is-disabled {
    color: var(--zn-member-text-muted);
    cursor: not-allowed;
    opacity: 0.58;
}

.workspace-tool-card.is-disabled:hover {
    border-color: var(--zn-member-border);
    background: var(--zn-member-bg-surface-hover);
}

.workspace-file-open-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
}

.workspace-tool-icon {
    width: 24px;
    height: 24px;
    color: var(--zn-member-accent-text);
}

.workspace-tool-permission-alert {
    margin: 10px 0 0;
    padding: 9px 10px;
    border: 1px solid color-mix(in srgb, var(--zn-warning-border) 70%, transparent);
    border-radius: var(--user-radius-sm);
    color: var(--zn-member-warning-text);
    background: color-mix(in srgb, var(--zn-warning-soft) 74%, transparent);
    font-size: 0.82rem;
    line-height: 1.35;
}

.workspace-tool-permission-alert[hidden] {
    display: none;
}

.workspace-sidebar-search {
    margin-top: 6px;
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-surface);
    color: var(--zn-member-text-muted);
}

.workspace-sidebar-search-icon {
    width: 19px;
    height: 19px;
}

.workspace-sidebar-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--zn-member-text-primary);
    font-size: 0.84rem;
}

.workspace-current-path {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--zn-member-bg-surface) 74%, transparent);
    color: var(--zn-member-text-link);
    font-size: 0.82rem;
    line-height: 1.35;
}

.workspace-current-path-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--zn-member-text-secondary);
}

.workspace-sidebar-nav-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 10px;
}

.workspace-sidebar-back-pill {
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--zn-member-border);
    border-radius: 999px;
    background: var(--zn-member-bg-surface);
    color: var(--zn-member-text-link);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.workspace-sidebar-back-pill:hover,
.workspace-sidebar-back-pill:focus-visible {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-primary);
    outline: none;
}

.workspace-sidebar-back-pill.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.workspace-sidebar-back-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.workspace-owner-section {
    display: grid;
    gap: 12px;
}

.workspace-owner-section + .workspace-owner-section {
    padding-top: 4px;
}

.workspace-owner-section-heading {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.workspace-owner-section-heading h2 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: 0.92rem;
    line-height: 1.2;
}

.workspace-owner-section-heading span {
    flex: 0 0 auto;
    color: var(--zn-member-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.workspace-owner-section-empty {
    min-height: 112px;
}

body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser:has(.workspace-owner-landing) {
    height: calc(var(--app-vh) - max(14px, env(safe-area-inset-top)) - max(14px, var(--safe-bottom)));
    max-height: calc(var(--app-vh) - max(14px, env(safe-area-inset-top)) - max(14px, var(--safe-bottom)));
    overflow: hidden;
}

body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-owner-landing {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 18px;
    padding-bottom: 18px;
}

body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-owner-section-heading {
    padding-right: 4px;
}

.workspace-owner-card-shared,
.workspace-folder-row:has(.workspace-shared-badge) {
    border-color: var(--zn-workspace-shared-border);
    background:
        linear-gradient(180deg, var(--zn-workspace-shared-background), transparent 54%),
        var(--zn-workspace-item-background);
}

.workspace-shared-badge {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid var(--zn-workspace-shared-border);
    border-radius: 999px;
    background: var(--zn-workspace-shared-background);
    color: var(--zn-workspace-shared-text);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.workspace-row-more {
    position: relative;
}

.workspace-explorer-row:has(.workspace-row-more[open]) {
    position: relative;
    z-index: 90;
}

.workspace-row-more[open] {
    z-index: 95;
}

.workspace-row-more > summary::-webkit-details-marker {
    display: none;
}

.workspace-row-more-trigger {
    min-width: 64px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 999px;
    background: var(--zn-member-bg-surface);
    color: var(--zn-member-text-link);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.workspace-row-more-compact-label {
    display: none;
}

.workspace-row-more-trigger:hover,
.workspace-row-more-trigger:focus-visible,
.workspace-row-more[open] > .workspace-row-more-trigger {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-primary);
    outline: none;
}

.workspace-row-more-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    right: 0;
    width: min(220px, calc(100vw - 42px));
    max-height: min(360px, calc(100vh - 140px));
    overflow-y: auto;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-card);
    box-shadow: var(--zn-member-shadow);
}

.workspace-row-more-menu[popover]:not(.is-workspace-more-menu-positioned) {
    visibility: hidden;
}

.workspace-explorer-row:nth-last-child(-n + 2) .workspace-row-more-menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.workspace-sidebar-folder-explorer .workspace-explorer-row:nth-last-child(-n + 2) .workspace-row-more-menu {
    top: calc(100% + 8px);
    bottom: auto;
}

.workspace-row-menu-item {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--zn-member-text-primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.workspace-row-menu-item:hover,
.workspace-row-menu-item:focus-visible,
.workspace-file-properties[open] > .workspace-row-menu-item {
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-link);
    outline: none;
}

.workspace-row-menu-danger {
    color: var(--zn-member-danger-text);
}

.workspace-row-menu-note {
    display: block;
    padding: 6px 10px;
    color: var(--zn-member-text-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.workspace-row-menu-separator {
    height: 1px;
    margin: 3px 4px;
    background: var(--zn-member-border);
}

.workspace-row-menu-section {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.workspace-row-menu-section:has(> .workspace-row-menu-submenu > .workspace-row-menu-submenu-trigger[data-workspace-submenu-direction="left"])
    > .workspace-menu-form > .workspace-row-menu-item::before,
.workspace-row-menu-section:has(> .workspace-row-menu-submenu > .workspace-row-menu-submenu-trigger[data-workspace-submenu-direction="left"])
    > .workspace-row-menu-item:not(.workspace-row-menu-submenu-trigger)::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-right: 8px;
}

.workspace-row-menu-section:has(> .workspace-row-menu-submenu > .workspace-row-menu-submenu-trigger:is(
    [data-workspace-submenu-direction="right"],
    [data-workspace-submenu-direction="up"],
    [data-workspace-submenu-direction="down"]
))
    > .workspace-menu-form > .workspace-row-menu-item::after,
.workspace-row-menu-section:has(> .workspace-row-menu-submenu > .workspace-row-menu-submenu-trigger:is(
    [data-workspace-submenu-direction="right"],
    [data-workspace-submenu-direction="up"],
    [data-workspace-submenu-direction="down"]
))
    > .workspace-row-menu-item:not(.workspace-row-menu-submenu-trigger)::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-left: auto;
}

.workspace-row-more-menu .workspace-menu-form,
.workspace-row-more-menu .workspace-file-properties {
    width: 100%;
    min-width: 0;
}

.workspace-row-menu-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.workspace-file-properties-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-left: auto;
    color: var(--zn-member-text-muted);
    transition: color 180ms ease;
}

:is(
    [data-workspace-submenu-direction="left"],
    .workspace-file-properties-view[data-workspace-submenu-direction="left"] + .workspace-file-properties-sidebar
) > .workspace-file-properties-chevron {
    order: -1;
    margin-right: 8px;
    margin-left: 0;
    transform: rotate(180deg);
}

:is(
    [data-workspace-submenu-direction="down"],
    .workspace-file-properties-view[data-workspace-submenu-direction="down"] + .workspace-file-properties-sidebar
) > .workspace-file-properties-chevron {
    transform: rotate(90deg);
}

:is(
    [data-workspace-submenu-direction="up"],
    .workspace-file-properties-view[data-workspace-submenu-direction="up"] + .workspace-file-properties-sidebar
) > .workspace-file-properties-chevron {
    transform: rotate(-90deg);
}

.workspace-file-properties[open] > .workspace-file-properties-trigger .workspace-file-properties-chevron {
    color: var(--zn-member-text-link);
}

.workspace-row-more-menu .workspace-icon,
.workspace-row-more-menu .workspace-icon-danger {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.workspace-file-properties-options {
    position: fixed;
    inset: auto;
    z-index: 111;
    width: 178px;
    max-width: calc(100vw - 16px);
    margin: 0;
    padding: 6px;
    border: 1px solid var(--zn-member-border-strong);
    border-radius: 12px;
    background: var(--zn-member-bg-pane);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--zn-member-bg-app) 44%, transparent);
    color: var(--zn-member-text-primary);
}

.workspace-file-properties-options:popover-open {
    display: grid;
    gap: 2px;
}

.workspace-file-properties-options .workspace-row-menu-item {
    width: 100%;
}

.workspace-file-properties-view[aria-expanded="true"] {
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-link);
}

.workspace-row-more-menu .workspace-file-properties-panel {
    position: fixed;
    inset: auto;
    z-index: 112;
    width: min(450px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    border: 1px solid var(--zn-member-border-strong);
    border-radius: 14px;
    background: var(--zn-member-bg-pane);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--zn-member-bg-app) 48%, transparent);
    color: var(--zn-member-text-primary);
    container-type: inline-size;
}

.workspace-file-properties-panel:popover-open {
    display: block;
}

.workspace-file-inspector-content {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.workspace-file-inspector-section h4 {
    margin: 0;
}

.workspace-file-inspector-sections {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.workspace-file-inspector-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--zn-member-border);
    border-radius: 10px;
    background: var(--zn-member-bg-card);
}

.workspace-file-inspector-section h4 {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--zn-member-text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.workspace-file-inspector-section dl {
    display: block;
    margin: 0;
}

.workspace-file-inspector-row {
    min-width: 0;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(82px, 120px) minmax(0, 34ch);
    justify-content: start;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--zn-member-border);
}

.workspace-file-inspector-row dt,
.workspace-file-inspector-row dd {
    min-width: 0;
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.workspace-file-inspector-row dt {
    color: var(--zn-member-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
}

.workspace-file-inspector-row dd {
    color: var(--zn-member-text-primary);
    font-size: 0.76rem;
    font-weight: 450;
}

body.user-body-workspace [data-workspace-app] {
    --workspace-properties-drawer-duration: 360ms;
    --workspace-properties-drawer-easing: cubic-bezier(0.22, 1, 0.36, 1);
    --workspace-properties-drawer-width: min(clamp(360px, 35vw, 500px), calc(100vw - 24px));
}

.workspace-finder-compact-menu,
.workspace-finder-header-actions-menu > .workspace-finder-compact-menu-panel {
    display: contents;
}

.workspace-finder-compact-menu-trigger {
    display: none;
}

.workspace-finder-toolbar-menu-label,
.workspace-finder-toolbar-menu-header {
    display: none;
}

.workspace-finder-search-row {
    display: contents;
}

.workspace-selection-actions-menu:has(> .workspace-toolbar-selection-actions[hidden])
    > .workspace-finder-compact-menu-trigger {
    display: none !important;
}

.workspace-toolbar-selection-actions[hidden] {
    display: none !important;
}

.workspace-file-properties-drawer {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: var(--z-layer-drawer, 1300);
    width: var(--workspace-properties-drawer-width);
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    container-type: inline-size;
    border: 1px solid var(--zn-member-accent-border-strong);
    border-radius: 16px;
    background: var(--zn-member-bg-pane);
    color: var(--zn-member-text-primary);
    box-shadow: 0 22px 64px color-mix(in srgb, var(--zn-member-bg-app) 58%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(calc(100% + 36px), 0, 0);
    transition:
        transform var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing),
        opacity 240ms ease,
        visibility 0s linear var(--workspace-properties-drawer-duration);
    contain: layout paint style;
    will-change: transform;
}

.workspace-file-properties-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.workspace-file-properties-drawer[hidden] {
    display: none;
}

.workspace-file-properties-drawer-close {
    position: sticky;
    top: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: 10px 10px -44px auto;
    padding: 0;
    border: 1px solid var(--zn-member-border);
    border-radius: 9px;
    background: var(--zn-member-bg-surface);
    color: var(--zn-member-text-secondary);
    cursor: pointer;
}

.workspace-file-properties-drawer-close:hover,
.workspace-file-properties-drawer-close:focus-visible {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-primary);
    outline: none;
}

.workspace-file-properties-drawer-close-icon {
    width: 16px;
    height: 16px;
}

.workspace-file-properties-drawer-content {
    min-width: 0;
}

.workspace-file-properties-drawer .workspace-file-inspector-content {
    padding-top: 14px;
}

.workspace-file-properties-drawer .workspace-file-inspector-section:first-child h4 {
    padding-right: 52px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--zn-member-accent-surface) 72%, transparent),
        transparent 72%
    );
    box-shadow:
        inset 3px 0 0 var(--zn-member-accent-border-strong),
        inset 0 1px 0 color-mix(in srgb, white 10%, transparent);
}

@container (max-width: 250px) {
    .workspace-file-inspector-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        align-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-file-properties-drawer {
        transition: none;
    }
}

.workspace-folder-card-sections {
    display: grid;
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid var(--zn-workspace-panel-border);
    background: color-mix(in srgb, var(--zn-member-bg-surface) 28%, transparent);
}

.workspace-sidebar-folder-explorer {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.workspace-sidebar-folder-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.workspace-sidebar-folder-explorer .workspace-folder-card-sections {
    gap: 12px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.workspace-sidebar-selection-controls {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.workspace-sidebar-select-mode-button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--zn-member-border);
    border-radius: 999px;
    background: var(--zn-member-bg-card);
    color: var(--zn-member-text-secondary);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.workspace-sidebar-select-mode-button:hover,
.workspace-sidebar-select-mode-button:focus-visible,
.workspace-sidebar-select-mode-button.is-active {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-member-accent-surface);
    color: var(--zn-member-text-primary);
    outline: none;
}

.workspace-sidebar-selection-icon {
    width: 14px;
    height: 14px;
}

.workspace-sidebar-selection-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.workspace-sidebar-selection-actions .workspace-selection-icon-button {
    width: 28px;
    height: 28px;
}

.workspace-sidebar-folder-explorer .workspace-folder-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.workspace-sidebar-folder-explorer .workspace-folder-group-heading {
    min-height: 24px;
}

.workspace-sidebar-folder-explorer .workspace-folder-group-heading h2 {
    font-size: 0.76rem;
}

.workspace-sidebar-folder-explorer .workspace-folder-group-heading span {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 1px solid var(--zn-member-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-bg-surface) 68%, transparent);
}

.workspace-folder-group {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.workspace-folder-group-heading {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.workspace-folder-group-heading h2 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.2;
}

.workspace-folder-group-heading span {
    flex: 0 0 auto;
    color: var(--zn-member-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.workspace-folder-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

body.user-body-workspace .workspace-folder-card {
    position: relative;
    min-height: 118px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--zn-workspace-panel-border);
    border-radius: 12px;
    background: var(--zn-workspace-item-background);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--zn-member-text-primary) 7%, transparent);
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

body.user-body-workspace .workspace-folder-card:hover,
body.user-body-workspace .workspace-folder-card:focus-within {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-workspace-item-hover-background);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--zn-member-text-primary) 9%, transparent),
        0 14px 28px color-mix(in srgb, var(--zn-member-bg-app) 30%, transparent);
    transform: translateY(-1px);
}

body.user-body-workspace [data-workspace-app].is-workspace-sidebar-selecting
    .workspace-sidebar-folder-explorer .workspace-folder-card:has([data-workspace-select-item]:checked) {
    border-color: var(--zn-member-accent-border);
    background: var(--zn-workspace-item-selected-background);
}

body.user-body-workspace .workspace-folder-card .workspace-explorer-name {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    padding-right: 72px;
}

body.user-body-workspace .workspace-folder-card .workspace-row-icon-folder {
    width: 62px;
    height: 48px;
}

body.user-body-workspace .workspace-folder-card .workspace-row-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

body.user-body-workspace .workspace-folder-card .workspace-row-copy strong,
body.user-body-workspace .workspace-folder-card .workspace-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.user-body-workspace .workspace-folder-card .workspace-shared-badge {
    justify-self: start;
}

body.user-body-workspace .workspace-folder-card .workspace-explorer-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 1;
    pointer-events: auto;
}

body.user-body-workspace .workspace-folder-card .workspace-select-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 12;
    display: none;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card {
    min-height: 46px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.user-body-workspace [data-workspace-app].is-workspace-sidebar-selecting .workspace-sidebar-folder-explorer .workspace-folder-card {
    grid-template-columns: 22px minmax(0, 1fr) auto;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card:hover,
body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card:focus-within {
    border-color: var(--zn-member-border);
    background: color-mix(in srgb, var(--zn-member-bg-surface) 66%, transparent);
    box-shadow: none;
    transform: none;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card.is-current {
    border-color: var(--zn-member-accent-border-muted);
    background: var(--zn-workspace-item-selected-background);
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card.is-current .workspace-row-copy strong {
    color: var(--zn-member-text-link);
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-explorer-name {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-right: 0;
}

body.user-body-workspace [data-workspace-app].is-workspace-sidebar-selecting .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-explorer-name {
    grid-column: 2;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-icon-folder {
    width: 38px;
    height: 30px;
    border-radius: 8px;
    filter: none;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-icon-folder::before {
    display: block;
    top: 5px;
    left: 7px;
    width: 14px;
    height: 6px;
    border-radius: 4px 4px 0 0;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-icon-folder::after {
    display: block;
    top: 10px;
    left: 5px;
    width: 28px;
    height: 17px;
    border-radius: 5px;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-copy {
    gap: 1px;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-copy strong {
    font-size: 0.78rem;
    line-height: 1.15;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-copy small {
    color: var(--zn-member-text-muted);
    font-size: 0.66rem;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-row-more-trigger {
    min-width: 42px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 9px;
    background: transparent;
    color: var(--zn-member-text-muted);
    font-size: 0.66rem;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-explorer-actions {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

body.user-body-workspace [data-workspace-app].is-workspace-sidebar-selecting .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-explorer-actions {
    grid-column: 3;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-select-checkbox {
    position: static;
    grid-column: 1;
    grid-row: 1;
    place-self: center;
    display: none;
    width: 22px;
    height: 22px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

body.user-body-workspace [data-workspace-app].is-workspace-sidebar-selecting
    .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-select-checkbox {
    display: grid;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-select-checkbox span {
    width: 16px;
    height: 16px;
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card:has(.workspace-shared-badge) {
    border-color: color-mix(in srgb, var(--zn-workspace-shared-border) 62%, transparent);
    background: color-mix(in srgb, var(--zn-workspace-shared-background) 34%, transparent);
}

body.user-body-workspace .workspace-sidebar-folder-explorer .workspace-folder-card .workspace-shared-badge {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.58rem;
}

body.user-body-workspace .workspace-file-list-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}



.workspace-sidebar-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--zn-member-border);
    background: var(--zn-member-bg-surface-hover);
    color: var(--zn-member-text-primary);
    font-weight: 800;
    text-transform: uppercase;
}











.workspace-stat-strip {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: var(--user-radius-md);
    background: var(--zn-member-bg-surface);
}





.workspace-stat-icon {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    color: var(--zn-member-text-link);
}





.workspace-breadcrumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--zn-member-text-secondary);
}

.workspace-breadcrumb-icon {
    width: 18px;
    height: 18px;
}

body.user-body-workspace .workspace-action-bar {
    display: block;
}

body.user-body-workspace .workspace-action-bar[hidden] {
    display: none;
}

.workspace-action-panel {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--zn-member-border);
    border-radius: var(--user-radius-md);
    background: var(--zn-member-bg-card);
}

.workspace-action-panel[hidden] {
    display: none;
}

.workspace-action-panel-copy {
    min-width: 0;
}

.workspace-action-panel-copy strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--zn-member-text-primary);
    font-size: 0.98rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.user-body-workspace .workspace-create-folder-form,
body.user-body-workspace .workspace-upload-form {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.user-body-workspace .workspace-create-folder-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

body.user-body-workspace .workspace-create-folder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
    .workspace-browser .workspace-file-row[data-workspace-properties-active="true"] {
    border-color: var(--zn-member-accent-border-strong);
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--zn-member-accent-surface) 72%, transparent),
            transparent 72%
        ),
        var(--zn-workspace-item-hover-background);
    box-shadow:
        inset 3px 0 0 var(--zn-member-accent-border-strong),
        inset 0 1px 0 color-mix(in srgb, white 10%, transparent);
}

body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
    .workspace-browser[data-workspace-view="grid"] .workspace-file-row[data-workspace-properties-active="true"] {
    transform: translateY(-1px);
    box-shadow:
        inset 3px 0 0 var(--zn-member-accent-border-strong),
        inset 0 1px 0 color-mix(in srgb, white 10%, transparent),
        0 16px 30px color-mix(in srgb, var(--zn-member-bg-app) 34%, transparent);
}

@media (min-width: 901px) {
    body.user-body-workspace .workspace-browser {
        --workspace-list-columns: minmax(0, 1fr) 74px 132px 74px 122px 64px;
        overflow: hidden;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser {
        --workspace-list-columns: 36px minmax(0, 1fr) 74px 132px 74px 122px 64px;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] {
        --workspace-list-columns: minmax(0, 1fr) 0px 0px 0px 0px 64px;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] {
        --workspace-list-columns: 36px minmax(0, 1fr) 0px 0px 0px 0px 64px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-list-table {
        box-sizing: border-box;
        padding-right: 0;
        transition: padding-right var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing);
    }

    body.user-body-workspace .workspace-finder-toolbar,
    body.user-body-workspace .workspace-location-row {
        box-sizing: border-box;
        transition: padding-right var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing);
    }

    body.user-body-workspace .workspace-finder-toolbar {
        container: workspace-properties-toolbar / inline-size;
    }

    body.user-body-workspace .workspace-location-row {
        container: workspace-properties-location / inline-size;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-finder-toolbar {
        padding-right: calc(var(--workspace-properties-drawer-width) - 14px);
        grid-template-columns: auto auto minmax(0, 1fr);
        column-gap: 10px;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-location-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding-right: calc(var(--workspace-properties-drawer-width) - 14px);
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-finder-toolbar-center {
        justify-content: flex-start;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-finder-search {
        width: 100%;
        min-width: 0;
        grid-column: auto;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-file-list-table {
        padding-right: calc(var(--workspace-properties-drawer-width) - 14px);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row {
        transition:
            grid-template-columns var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing),
            column-gap var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing);
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-header,
    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-row {
        column-gap: 0;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(n + 2):nth-of-type(-n + 5),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition:
            opacity var(--workspace-properties-drawer-duration) ease,
            transform var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing),
            visibility 0s linear 0s;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(n + 2):nth-of-type(-n + 5),
    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(12px);
        transition:
            opacity var(--workspace-properties-drawer-duration) ease,
            transform var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing),
            visibility 0s linear var(--workspace-properties-drawer-duration);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox {
        position: static;
        grid-column: 1;
        display: none;
        width: 28px;
        height: 28px;
        place-self: center start;
        border-radius: 999px;
        box-shadow: none;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox {
        display: grid;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox span {
        width: 16px;
        height: 16px;
        border-radius: 999px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(1),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 1;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(2),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(1) {
        grid-column: 2;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(3),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-column: 3;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(4),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-column: 4;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(5),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(4) {
        grid-column: 5;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 6;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(1),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 2;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(2),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(1) {
        grid-column: 3;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(3),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-column: 4;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(4),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-column: 5;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(5),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(4) {
        grid-column: 6;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 7;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-actions {
        width: max-content;
        max-width: 100%;
        min-width: 0;
        justify-self: end;
        gap: 6px;
        flex-wrap: nowrap;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] .workspace-explorer-actions {
        margin-left: 12px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-actions > * {
        flex: 0 0 auto;
    }

    body.user-body-workspace .workspace-finder-window {
        flex: 1 1 auto;
        min-height: 0;
    }

    body.user-body-workspace .workspace-finder-window .workspace-explorer {
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace .workspace-finder-window .workspace-explorer-table {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    body.user-body-workspace .workspace-finder-window > .workspace-explorer-table {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header {
        position: sticky;
        top: 0;
        z-index: 20;
        background: var(--zn-member-bg-card);
    }

    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.38fr);
        min-height: 58px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--zn-workspace-panel-border);
        background: var(--zn-workspace-toolbar-background);
    }

    body.user-body-workspace .workspace-finder-toolbar-center {
        justify-content: flex-end;
        gap: 12px;
    }

    body.user-body-workspace .workspace-finder-legacy-actions {
        order: 2;
        justify-content: flex-end;
        opacity: 0.58;
    }

    body.user-body-workspace .workspace-finder-legacy-actions:hover,
    body.user-body-workspace .workspace-finder-legacy-actions:focus-within {
        opacity: 1;
    }

    body.user-body-workspace .workspace-finder-secondary-action {
        font-size: 0.78rem;
        min-height: 30px;
        padding-inline: 8px;
    }

    body.user-body-workspace .workspace-view-switch {
        order: 1;
        min-height: 36px;
        border-radius: 11px;
        background: color-mix(in srgb, var(--zn-member-bg-card) 86%, transparent);
    }

    body.user-body-workspace .workspace-view-toggle {
        width: 36px;
        height: 32px;
        border-radius: 9px;
    }

    body.user-body-workspace .workspace-finder-search {
        min-height: 38px;
        border-radius: 11px;
        background: color-mix(in srgb, var(--zn-member-bg-card) 90%, transparent);
    }

    body.user-body-workspace .workspace-finder-window .workspace-explorer-heading {
        min-height: 70px;
        display: flex;
        background: var(--zn-workspace-section-background);
    }

    body.user-body-workspace .workspace-explorer-heading strong {
        max-width: min(62vw, 720px);
        overflow: hidden;
        font-size: 1.1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-body-workspace .workspace-explorer-heading > span {
        padding: 6px 9px;
        border: 1px solid var(--zn-member-border);
        border-radius: 999px;
        background: color-mix(in srgb, var(--zn-member-bg-surface) 72%, transparent);
        color: var(--zn-member-text-secondary);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-table {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 14px;
        padding: 16px;
        box-sizing: border-box;
        transition: padding-right var(--workspace-properties-drawer-duration) var(--workspace-properties-drawer-easing);
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="grid"] .workspace-explorer-table {
        grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr));
        padding-right: calc(var(--workspace-properties-drawer-width) - 14px);
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-open-button {
        gap: 12px;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="grid"] .workspace-file-visual,
    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="grid"] .workspace-row-icon-folder {
        transform: translateY(-7px) scale(0.5625);
        transform-origin: center;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="grid"] .workspace-select-checkbox {
        top: 16px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row {
        min-height: 206px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 28px minmax(82px, 1fr) auto auto;
        align-content: stretch;
        justify-items: stretch;
        gap: 9px;
        padding: 14px;
        border: 1px solid color-mix(in srgb, var(--zn-member-border) 86%, transparent);
        border-radius: 12px;
        background: var(--zn-workspace-item-background);
        box-shadow: inset 0 1px 0 color-mix(in srgb, white 7%, transparent);
        transition:
            background 0.16s ease,
            border-color 0.16s ease,
            box-shadow 0.16s ease,
            transform 0.16s ease;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row:hover,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row:focus-within {
        border-color: var(--zn-member-accent-border-muted);
        background: var(--zn-workspace-item-hover-background);
        box-shadow:
            inset 0 1px 0 color-mix(in srgb, white 10%, transparent),
            0 18px 34px color-mix(in srgb, var(--zn-member-bg-app) 42%, transparent);
        transform: translateY(-1px);
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row:has([data-workspace-select-item]:checked) {
        border-color: var(--zn-member-accent-border);
        background: var(--zn-workspace-item-selected-background);
        box-shadow:
            inset 0 0 0 1px var(--zn-member-accent-border-muted),
            0 18px 34px color-mix(in srgb, var(--zn-member-bg-app) 38%, transparent);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-select-checkbox {
        top: 14px;
        left: 14px;
        z-index: 12;
        display: none;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="grid"] .workspace-select-checkbox {
        display: grid;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-select-checkbox span {
        width: 16px;
        height: 16px;
        border-radius: 999px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-actions {
        top: 14px;
        right: 14px;
        z-index: 12;
        opacity: 1;
        pointer-events: auto;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-name,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-open-button {
        grid-row: 2 / 4;
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(94px, 1fr) auto;
        align-content: stretch;
        justify-items: stretch;
        gap: 12px;
        text-align: left;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-visual,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-name > .workspace-row-icon {
        align-self: center;
        justify-self: center;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-name .workspace-row-copy,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-open-button .workspace-row-copy {
        align-self: end;
        justify-items: start;
        gap: 5px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-name .workspace-row-copy strong,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-open-button .workspace-row-copy strong {
        color: var(--zn-member-text-primary);
        font-size: 0.98rem;
        line-height: 1.16;
        font-weight: 820;
        text-align: left;
        -webkit-line-clamp: 2;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-name .workspace-row-copy small,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-open-button .workspace-row-copy small {
        display: block;
        color: var(--zn-member-text-muted);
        font-size: 0.78rem;
        line-height: 1.25;
        text-align: left;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row > .workspace-explorer-cell {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: hidden;
        color: var(--zn-member-text-muted);
        font-size: 0.78rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(1),
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(4) {
        display: none;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-row: 4;
        justify-self: start;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-row: 4;
        justify-self: end;
        max-width: 44%;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer .workspace-row-icon-folder {
        width: 96px;
        height: 76px;
        filter: drop-shadow(0 12px 20px color-mix(in srgb, var(--zn-member-bg-app) 34%, transparent));
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-thumbnail {
        width: 102px;
        height: 68px;
        border-radius: 10px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row {
        grid-template-rows: 28px minmax(68px, 1fr) minmax(42px, max-content) max-content;
        gap: 8px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-open-button {
        grid-template-rows: minmax(68px, 1fr) minmax(42px, max-content);
        gap: 8px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-copy {
        min-height: 42px;
        align-content: start;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-folder-card,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-folder-card {
        min-height: 118px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;
        padding: 14px 12px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-folder-card > .workspace-explorer-name,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-folder-card > .workspace-explorer-name {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: end;
        gap: 12px;
        padding-right: 72px;
        text-align: left;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-folder-card .workspace-row-icon-folder,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-folder-card .workspace-row-icon-folder {
        width: 62px;
        height: 48px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-folder-card .workspace-explorer-actions,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-folder-card .workspace-explorer-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        grid-column: auto;
        grid-row: auto;
    }
}

@media (min-width: 901px) and (max-width: 1399px) {
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row {
        grid-template-rows: 28px minmax(68px, 1fr) minmax(38px, max-content) max-content;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-open-button {
        grid-template-rows: minmax(68px, 1fr) minmax(38px, max-content);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-copy {
        min-height: 38px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-copy small {
        display: none;
    }
}

[data-workspace-filter-row][hidden] {
    display: none !important;
}

.workspace-filter-empty-state {
    margin: 18px;
}

.workspace-filter-empty-state[hidden] {
    display: none !important;
}

@media (min-width: 901px) and (max-width: 1200px) {
    body.user-body-workspace .workspace-browser {
        --workspace-list-columns: minmax(0, 1fr) 112px 70px 64px;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser {
        --workspace-list-columns: 36px minmax(0, 1fr) 112px 70px 64px;
    }

    body.user-body-workspace [data-workspace-app]:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] {
        --workspace-list-columns: minmax(0, 1fr) 0px 0px 64px;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting:has(.workspace-file-properties-drawer.is-open)
        .workspace-browser[data-workspace-view="list"] {
        --workspace-list-columns: 36px minmax(0, 1fr) 0px 0px 64px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(1),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 1;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(2),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(5),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(1),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(4) {
        display: none;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(3),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-column: 2;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(4),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-column: 3;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 4;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(1),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 2;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(3),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-column: 3;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(4),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-column: 4;
    }

    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 5;
    }
}

@container workspace-properties-toolbar (max-width: 600px) {
    body.user-body-workspace .workspace-finder-header-actions-menu {
        position: relative;
        display: block;
        flex: 0 0 auto;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-finder-compact-menu-trigger {
        width: 36px;
        min-width: 36px;
        display: inline-grid;
        padding: 0;
        border: 1px solid var(--zn-member-border);
        border-radius: 9px;
        background: var(--zn-member-bg-card);
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-finder-compact-menu-panel {
        display: none;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel {
        position: absolute;
        z-index: 110;
        top: calc(100% + 8px);
        right: 0;
        width: max-content;
        max-width: min(280px, calc(100vw - 48px));
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--zn-member-border-strong);
        border-radius: 12px;
        background: var(--zn-member-bg-card);
        box-shadow: var(--zn-member-shadow-card);
    }

    body.user-body-workspace .workspace-finder-header-actions-menu .workspace-finder-normal-actions {
        flex-wrap: nowrap;
    }
}

@container workspace-properties-location (max-width: 600px) {
    body.user-body-workspace .workspace-location-count {
        display: none;
    }

    body.user-body-workspace .workspace-location-selection-controls {
        flex: 0 0 auto;
        gap: 6px;
    }

    body.user-body-workspace .workspace-location-selection-controls .workspace-select-mode-button {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    body.user-body-workspace .workspace-location-selection-controls .workspace-select-mode-button span:not(.visually-hidden) {
        display: none;
    }

    body.user-body-workspace .workspace-selection-actions-menu {
        position: relative;
        display: block;
        flex: 0 0 auto;
    }

    body.user-body-workspace .workspace-selection-actions-menu > .workspace-finder-compact-menu-trigger {
        width: 36px;
        min-width: 36px;
        display: inline-grid;
        padding: 0;
        border: 1px solid var(--zn-member-border);
        border-radius: 9px;
        background: var(--zn-member-bg-card);
    }

    body.user-body-workspace .workspace-selection-actions-menu > .workspace-toolbar-selection-actions {
        display: none;
    }

    body.user-body-workspace .workspace-selection-actions-menu.is-open > .workspace-toolbar-selection-actions {
        position: absolute;
        z-index: 110;
        top: calc(100% + 8px);
        right: 0;
        width: max-content;
        display: inline-flex;
        padding: 8px;
        border: 1px solid var(--zn-member-border-strong);
        border-radius: 12px;
        background: var(--zn-member-bg-card);
        box-shadow: var(--zn-member-shadow-card);
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
    body.user-body-workspace .workspace-finder-toolbar,
    body.user-body-workspace .workspace-location-row,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-table,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-list-table,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell {
        transition: none;
    }
}

@media (max-width: 1024px) {
    body.user-body-workspace .workspace-file-properties-chevron,
    body.user-body-workspace .workspace-file-properties-options,
    body.user-body-workspace .workspace-file-properties-panel {
        display: none !important;
    }

    body.user-body-workspace .workspace-file-properties-modal {
        z-index: var(--z-layer-modal, 1400);
        place-items: center;
        box-sizing: border-box;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    body.user-body-workspace .workspace-file-properties-modal-panel {
        width: min(
            450px,
            calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))
        );
        min-width: 0;
        max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-height: 100%;
        box-sizing: border-box;
        gap: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        container-type: inline-size;
        border-color: var(--zn-member-accent-border-strong);
        border-radius: 16px;
        background: var(--zn-member-bg-pane);
    }

    body.user-body-workspace .workspace-file-properties-modal-close {
        font-size: 1.35rem;
        line-height: 1;
    }

    body.user-body-workspace .workspace-file-properties-modal-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.user-body-workspace .workspace-file-properties-modal-content .workspace-file-inspector-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-top: 14px;
    }

    body.user-body-workspace .workspace-file-properties-modal-content .workspace-file-inspector-section:first-child h4 {
        padding-right: 52px;
        background: linear-gradient(
            90deg,
            color-mix(in srgb, var(--zn-member-accent-surface) 72%, transparent),
            transparent 72%
        );
        box-shadow:
            inset 3px 0 0 var(--zn-member-accent-border-strong),
            inset 0 1px 0 color-mix(in srgb, white 10%, transparent);
    }

    body.user-body-workspace .workspace-file-properties-modal-content .workspace-file-inspector-row {
        grid-template-columns: minmax(82px, 110px) minmax(0, 1fr);
    }

}

@media (max-width: 900px) {

    body.user-body-workspace {
        overflow: auto;
    }

    body.user-body-workspace .workspace-finder-action-popover {
        position: fixed;
        top: 88px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100dvh - 116px);
        border-radius: 14px;
        transform: none;
    }

    body.user-body-workspace .user-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding: 0;
        gap: 0;
    }

    body.user-body-workspace .workspace-layout,
    body.user-body-workspace:has(.workspace-calendar-shell) .workspace-layout {
        --znode-mobile-surface-header-height: calc(122px + env(safe-area-inset-top));
        width: 100%;
        max-width: none;
        margin: 0;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 6px;
        padding: var(--znode-mobile-surface-header-height) 0 calc(18px + env(safe-area-inset-bottom));
    }

    body.user-body-workspace .workspace-left-panel,
    body.user-body-workspace .workspace-browser {
        width: 100%;
        min-width: 0;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-actions {
        z-index: 12;
        opacity: 1;
        pointer-events: auto;
    }

    body.user-body-workspace .workspace-hub {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.user-body-workspace .workspace-home-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: var(--z-layer-sticky, 20);
        gap: 10px;
        padding:
            calc(12px + env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            10px
            max(16px, env(safe-area-inset-left));
        border-bottom: 0;
        background: var(--zn-member-bg-app);
    }

    body.user-body-workspace .workspace-brand-row {
        grid-template-columns: 44px minmax(0, 1fr) auto 42px;
        gap: 10px;
        height: 44px;
    }

    body.user-body-workspace .workspace-brand-row .topbar-title-mark,
    body.user-body-workspace .workspace-brand-row .topbar-title-mark-image {
        width: 44px;
        height: 44px;
    }

    body.user-body-workspace .workspace-brand-row .topbar-title-mark {
        align-self: center;
        flex-basis: 44px;
        margin-top: 0;
        border-radius: 9px;
    }

    body.user-body-workspace .workspace-brand-row h1 {
        font-size: 1.14rem;
        line-height: 1.12;
    }

    body.user-body-workspace .workspace-hub .surface-switcher-user {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    body.user-body-workspace .workspace-hub .surface-switcher-user::-webkit-scrollbar {
        display: none;
    }

    body.user-body-workspace .workspace-hub .workspace-subtabs,
    body.user-body-workspace .workspace-sidebar-tools,
    body.user-body-workspace .workspace-sidebar-search {
        width: auto;
        margin-right: max(16px, env(safe-area-inset-right));
        margin-left: max(16px, env(safe-area-inset-left));
    }

    body.user-body-workspace .workspace-sidebar-tools {
        display: none;
    }

    body.user-body-workspace .workspace-sidebar-search {
        display: none;
    }

    body.user-body-workspace .workspace-finder-breadcrumbs {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        margin: 0;
        padding: 32px 14px 14px;
        border: 0;
        border-bottom: 1px solid var(--zn-member-border);
        border-radius: 0;
        background: transparent;
        color: var(--zn-member-text-link);
        font-size: 0.82rem;
        line-height: 1.35;
    }

    body.user-body-workspace .workspace-finder-breadcrumbs::before {
        content: "Current Location";
        position: absolute;
        top: 10px;
        left: 14px;
        color: var(--zn-member-text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    body.user-body-workspace .workspace-finder-breadcrumbs .workspace-breadcrumb-home {
        flex: 0 0 18px;
        align-items: flex-start;
        color: var(--zn-member-text-secondary);
    }

    body.user-body-workspace .workspace-finder-breadcrumbs .workspace-breadcrumb-link,
    body.user-body-workspace .workspace-finder-breadcrumbs .workspace-breadcrumb-current {
        min-height: 0;
        padding: 0;
        background: transparent;
        color: var(--zn-member-text-link);
        font-size: inherit;
        line-height: inherit;
    }

    body.user-body-workspace .workspace-finder-breadcrumbs .workspace-breadcrumb-link::after {
        margin-left: 8px;
        color: var(--zn-member-text-muted);
    }

    body.user-body-workspace .workspace-browser {
        overflow: visible;
        padding:
            7px
            max(16px, env(safe-area-inset-right))
            14px
            max(16px, env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }

    

    .workspace-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    

    

    .workspace-action-panel {
        grid-template-columns: 1fr;
    }

    body.user-body-workspace .workspace-share-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.user-body-workspace .workspace-share-form,
    body.user-body-workspace .workspace-acl-form {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    body.user-body-workspace .workspace-permission-toggle,
    body.user-body-workspace .workspace-share-button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    body.user-body-workspace .workspace-action-input,
    body.user-body-workspace .workspace-action-select,
    body.user-body-workspace .workspace-compact-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }}

@media (max-width: 560px) {
    body.user-body-workspace .workspace-brand-row {
        grid-template-columns: 44px minmax(0, 1fr) auto 42px;
        gap: 10px;
    }

    body.user-body-workspace .workspace-brand-row h1 {
        font-size: 1.14rem;
    }

    .workspace-tool-grid,
    .workspace-stat-strip {
        grid-template-columns: 1fr;
    }

    

    }

@media (max-width: 760px) {
    body.user-body-workspace .workspace-owner-landing {
        min-height: 460px;
        padding: 0;
        border-radius: 0;
    }

    body.user-body-workspace .workspace-owner-landing-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.user-body-workspace .workspace-owner-search {
        width: 100%;
        min-width: 0;
    }

    body.user-body-workspace .workspace-owner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.user-body-workspace .workspace-owner-card {
        min-height: 92px;
        grid-template-columns: 74px minmax(0, 1fr);
        justify-items: start;
        align-content: center;
        text-align: left;
    }

    body.user-body-workspace .workspace-owner-card .workspace-row-icon {
        width: 72px;
        height: 56px;
    }

    body.user-body-workspace .workspace-owner-card .workspace-row-icon-folder::before {
        top: 7px;
        left: 8px;
        width: 29px;
        height: 13px;
    }

    body.user-body-workspace .workspace-owner-card .workspace-row-icon-folder::after {
        top: 15px;
        left: 2px;
        width: 68px;
        height: 40px;
    }

    body.user-body-workspace .workspace-finder-window {
        min-height: 520px;
        border-radius: 14px;
    }

    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    body.user-body-workspace .workspace-finder-nav,
    body.user-body-workspace .workspace-finder-toolbar-center {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.user-body-workspace .workspace-finder-nav::-webkit-scrollbar,
    body.user-body-workspace .workspace-finder-toolbar-center::-webkit-scrollbar {
        display: none;
    }

    body.user-body-workspace .workspace-finder-toolbar-button {
        min-height: 32px;
        padding: 0 9px;
        font-size: 0.82rem;
    }

    body.user-body-workspace .workspace-share-form,
    body.user-body-workspace .workspace-acl-form {
        grid-template-columns: minmax(0, 1fr);
    }

    body.user-body-workspace .workspace-explorer-table {
        padding: 0;
    }

    body.user-body-workspace .workspace-browser.is-selecting .workspace-select-checkbox {
        top: 6px;
        left: 6px;
        width: 44px;
        height: 44px;
        touch-action: manipulation;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header {
        display: none;
    }

    body.user-body-workspace .workspace-explorer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        min-height: 72px;
        padding: 10px 12px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        min-height: 72px;
        padding: 10px 12px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-name .workspace-row-copy,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-open-button .workspace-row-copy {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-name .workspace-row-copy strong,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-open-button .workspace-row-copy strong,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-name .workspace-row-copy small,
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-open-button .workspace-row-copy small {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        visibility: visible;
        opacity: 1;
    }

    body.user-body-workspace .workspace-explorer-cell {
        display: none;
    }

    body.user-body-workspace .workspace-explorer-actions {
        grid-column: 2;
        grid-row: 1;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
        padding: 24px 18px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-explorer-row {
        grid-template-columns: minmax(0, 1fr);
        min-height: 150px;
        padding: 8px 4px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row {
        min-height: 174px;
        grid-template-rows: 44px 120px;
        align-content: start;
        gap: 2px;
        padding: 4px 2px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row > .workspace-file-open-button {
        grid-column: 1;
        grid-row: 2;
        grid-template-rows: 74px 42px;
        align-content: start;
        gap: 4px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-visual {
        position: relative;
        width: 58px;
        height: 74px;
        place-self: start center;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-icon-file {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 72px;
        height: 92px;
        transform: translate(-50%, -50%) scale(0.8);
        transform-origin: center;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-thumbnail,
    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-file-visual[data-workspace-thumbnail-kind="pdf"] .workspace-file-thumbnail {
        width: 58px;
        height: 74px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-copy {
        height: 42px;
        min-height: 42px;
        align-content: start;
        overflow: hidden;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row > .workspace-explorer-actions {
        position: static;
        width: 100%;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        justify-self: stretch;
        display: flex;
        justify-content: flex-end;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-more-trigger {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        touch-action: manipulation;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-more-label {
        display: none;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row .workspace-row-more-compact-label {
        display: inline;
        letter-spacing: 0.08em;
        transform: translateY(-0.08em);
    }

    body.user-body-workspace .workspace-icon-danger-button {
        width: 36px;
        height: 36px;
    }}

@media (max-width: 479px) {
    body.user-body-workspace .workspace-finder-toolbar-center,
    body.user-body-workspace .workspace-finder-normal-actions {
        flex-wrap: nowrap;
        gap: 2px;
    }

    body.user-body-workspace .workspace-finder-toolbar-center {
        overflow-x: visible;
    }

    body.user-body-workspace .workspace-finder-normal-actions {
        flex: 1 1 auto;
    }

    body.user-body-workspace .workspace-finder-toolbar-button {
        padding-inline: 4px;
        font-size: 0.78rem;
    }
}

@media (min-width: 480px) and (max-width: 760px) {
    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    body.user-body-workspace .workspace-finder-toolbar-center,
    body.user-body-workspace .workspace-finder-normal-actions {
        flex-wrap: nowrap;
        gap: 4px;
    }

    body.user-body-workspace .workspace-finder-toolbar-center {
        justify-content: flex-end;
        overflow-x: visible;
    }

    body.user-body-workspace .workspace-finder-toolbar-button {
        padding-inline: 6px;
        font-size: 0.78rem;
    }

    body.user-body-workspace .workspace-finder-search {
        grid-column: 1 / -1;
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: auto minmax(0, 1fr) minmax(160px, 0.36fr);
        gap: 8px;
        padding-inline: 10px;
    }

    body.user-body-workspace .workspace-finder-toolbar-center,
    body.user-body-workspace .workspace-finder-normal-actions {
        flex-wrap: nowrap;
        gap: 4px;
    }

    body.user-body-workspace .workspace-finder-toolbar-button {
        padding-inline: 6px;
        font-size: 0.82rem;
    }
}

@media (min-width: 761px) and (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
    html:has(body.user-body-workspace:not(:has(.workspace-calendar-shell))) {
        height: 100%;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .user-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        gap: 0;
        padding: 8px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-layout {
        height: 100%;
        min-height: 0;
        grid-template-columns: clamp(210px, 29vw, 250px) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-content: stretch;
        gap: 8px;
        padding: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-left-panel,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser {
        width: auto;
        height: 100%;
        min-height: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-hub {
        height: 100%;
        max-height: none;
        overflow: hidden;
        padding: 8px;
        border: 1px solid var(--zn-workspace-panel-border);
        border-radius: var(--user-radius-lg);
        background: var(--zn-workspace-panel-background);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-home-header {
        position: static;
        flex: 0 0 auto;
        padding: 4px 4px 8px;
        background: transparent;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-hub .workspace-subtabs {
        margin-inline: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-sidebar-folder-scroll {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser {
        max-height: 100%;
        overflow: hidden;
        padding: 0;
        border: 1px solid var(--zn-workspace-panel-border);
        border-radius: var(--user-radius-lg);
        background: var(--zn-workspace-panel-background);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-window {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-explorer {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (min-width: 901px) and (max-width: 1279px) {
    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 12px;
        padding: 8px 12px;
    }

    body.user-body-workspace .workspace-finder-toolbar-center,
    body.user-body-workspace .workspace-finder-normal-actions {
        flex-wrap: nowrap;
    }

    body.user-body-workspace .workspace-finder-toolbar-center {
        justify-content: flex-end;
        gap: 4px;
    }

    body.user-body-workspace .workspace-finder-normal-actions {
        gap: 2px;
    }

    body.user-body-workspace .workspace-finder-toolbar-button {
        padding-inline: 4px;
        font-size: 0.78rem;
    }

    body.user-body-workspace .workspace-finder-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    body.user-body-messaging .topbar-title-mark,
    body.user-body-meetings .meeting-brand-row .topbar-title-mark,
    body.user-body-workspace .workspace-brand-row .topbar-title-mark {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin-top: 0;
        border-radius: 9px;
    }

    body.user-body-messaging .topbar-title-mark-image,
    body.user-body-meetings .meeting-brand-row .topbar-title-mark-image,
    body.user-body-workspace .workspace-brand-row .topbar-title-mark-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 46%;
    }

    body.user-body-messaging .topbar-profile-image,
    body.user-body-meetings .meeting-brand-row .topbar-profile-image,
    body.user-body-workspace .workspace-brand-row .topbar-profile-image {
        transform: scale(1.08);
    }

}

body.user-body-messaging .messages-brand-row .znode-user-version,
body.user-body-meetings .meeting-brand-row .znode-user-version,
body.user-body-workspace .workspace-brand-row .znode-user-version {
    justify-self: end;
}

@media (max-width: 760px) {
    body.user-body-messaging .messages-brand-row,
    body.user-body-meetings .meeting-brand-row,
    body.user-body-workspace .workspace-brand-row {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
    }}

@media (max-width: 900px) {
    html[data-device-platform="ios"][data-display-mode="standalone"] body.user-body-workspace .attachment-viewer:not([data-viewer-kind="image"]) {
        padding:
            max(74px, calc(var(--znode-ios-pwa-safe-top) + 38px))
            max(14px, env(safe-area-inset-right))
            max(18px, calc(var(--znode-ios-pwa-safe-bottom) + 12px))
            max(14px, env(safe-area-inset-left));
    }

    html[data-device-platform="ios"][data-display-mode="standalone"] body.user-body-workspace .attachment-viewer:not([data-viewer-kind="image"]) .attachment-viewer-panel {
        max-height: calc(100dvh - max(74px, calc(var(--znode-ios-pwa-safe-top) + 38px)) - max(18px, calc(var(--znode-ios-pwa-safe-bottom) + 12px)));
    }

    html[data-device-platform="ios"][data-display-mode="standalone"] .user-body-pdf-reader .workspace-pdf-reader-header {
        top: 0;
        margin-top: 0;
        min-height: calc(68px + var(--znode-ios-pwa-safe-top));
        padding-top: calc(var(--znode-ios-pwa-safe-top) + 14px);
    }

    html[data-device-platform="ios"][data-display-mode="standalone"] .user-body-pdf-reader .workspace-pdf-reader-mobile {
        scroll-padding-top: calc(96px + var(--znode-ios-pwa-safe-top));
    }
}

body.user-body-workspace .workspace-finder-window,
body.user-body-workspace .workspace-explorer {
    min-height: 0;
}

/* Keep mobile Workspace controls still while only folders and files scroll. */
@media (max-width: 760px) {
    html:has(body.user-body-workspace) {
        height: 100%;
        min-height: 100%;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .user-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-layout {
        height: 100dvh;
        min-height: 0;
        grid-template-rows: 0 minmax(0, 1fr);
        align-content: stretch;
        gap: 0;
        overflow: hidden;
        padding: var(--znode-mobile-surface-header-height) 0 env(safe-area-inset-bottom);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-left-panel {
        height: 0;
        min-height: 0;
        overflow: visible;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-window {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-toolbar,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-breadcrumbs,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-action-bar {
        flex: 0 0 auto;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-explorer,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-owner-landing {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.user-body-workspace .workspace-sidebar-folder-scroll {
        flex: initial;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-layout {
        --znode-mobile-surface-header-height: calc(136px + env(safe-area-inset-top));
        height: 100dvh;
        grid-template-rows: var(--znode-mobile-surface-header-height) minmax(0, 1fr);
        padding: 0 0 env(safe-area-inset-bottom);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-left-panel {
        height: var(--znode-mobile-surface-header-height);
        overflow: hidden;
        pointer-events: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-home-header {
        pointer-events: auto;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-sidebar-nav-actions,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-sidebar-folder-scroll {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser {
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-window {
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-toolbar {
        position: sticky;
        top: 0;
        z-index: 12;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 8px;
        padding: 10px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
        background: var(--zn-member-bg-card);
        border-bottom: 1px solid var(--zn-workspace-panel-border);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-nav,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-toolbar-center,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-normal-actions {
        flex-wrap: nowrap;
        overflow: visible;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-toolbar-center {
        justify-content: flex-end;
        gap: 5px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-normal-actions {
        flex: 0 0 auto;
        gap: 3px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-toolbar-button {
        width: 32px;
        min-height: 32px;
        padding: 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-view-switch {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 2px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-view-toggle {
        width: 31px;
        height: 30px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-search {
        grid-column: 1 / -1;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-breadcrumbs,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-action-bar {
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-row {
        min-height: 56px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-row::before {
        content: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-count {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-trigger {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        min-height: 38px;
        justify-content: center;
        gap: 4px;
        padding: 0;
        border-color: transparent;
        border-radius: 0;
        background: transparent;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-current {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-breadcrumb-icon {
        width: 18px;
        height: 18px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-chevron {
        width: 13px;
        height: 13px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-selection-controls {
        width: 100%;
        justify-content: flex-end;
        gap: 6px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-location-selection-controls .workspace-select-mode-button {
        width: auto;
        min-width: 96px;
        padding: 0 12px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-toolbar-selection-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-selection-icon-button {
        width: 34px;
        height: 34px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser[data-workspace-view="list"] .workspace-explorer-name .workspace-row-copy small,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser[data-workspace-view="list"] .workspace-file-open-button .workspace-row-copy small {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-explorer-row {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 74px;
        padding-left: 54px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox {
        top: 50%;
        left: 14px;
        width: 28px;
        height: 28px;
        transform: translateY(-50%);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) [data-workspace-app].is-workspace-selecting .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox span {
        width: 18px;
        height: 18px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser[data-workspace-view="list"] .workspace-file-open-button,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser[data-workspace-view="list"] .workspace-explorer-name {
        align-items: center;
        gap: 10px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-browser[data-workspace-view="list"] .workspace-file-visual {
        flex: 0 0 auto;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-row-more[open] {
        position: static;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-row-more[open] > .workspace-row-more-trigger {
        position: relative;
        z-index: 121;
        visibility: hidden;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-row-more-menu {
        position: fixed;
        z-index: 120;
        top: auto;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        left: max(14px, env(safe-area-inset-left));
        width: auto;
        max-height: min(440px, calc(100dvh - 96px));
        gap: 6px;
        padding: 12px;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 18px 48px color-mix(in srgb, var(--zn-member-bg-app) 40%, transparent);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-explorer-row:nth-last-child(-n + 2) .workspace-row-more-menu,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-sidebar-folder-explorer .workspace-explorer-row:nth-last-child(-n + 2) .workspace-row-more-menu {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-row-menu-item {
        min-height: 44px;
        padding: 0 12px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-row-menu-note {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-share[open] .workspace-share-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        z-index: 1998;
        background: color-mix(in srgb, var(--zn-member-bg-page) 58%, rgba(0, 0, 0, 0.38));
        backdrop-filter: blur(6px);
        cursor: default;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) [data-workspace-app]:has(.workspace-finder-share[open]) .workspace-row-more,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) [data-workspace-app]:has(.workspace-tool-share[open]) .workspace-row-more {
        visibility: hidden;
        pointer-events: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-popover {
        position: fixed;
        z-index: 2000;
        top: max(132px, calc(env(safe-area-inset-top) + 96px));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        width: auto;
        max-height: none;
        transform: none;
        padding: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        background: var(--zn-workspace-share-access-background);
        box-shadow: var(--zn-member-shadow-card);
        isolation: isolate;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-header {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-scope {
        align-items: center;
        margin: 10px 0;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-form,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-share:not(.workspace-tool-share) .workspace-share-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-form .form-input,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-actions {
        grid-column: 1 / -1;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-form .form-input {
        min-height: 58px;
        margin-bottom: 4px;
        font-size: 1.02rem;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-permission-toggle {
        min-height: 52px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-permission-toggle > span {
        min-height: 52px;
        padding: 10px;
        font-size: 0.92rem;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 10px;
        margin-top: 2px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-actions .workspace-share-cancel,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-share-actions .workspace-share-button {
        grid-column: auto;
        min-height: 52px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-finder-window [data-workspace-tooltip]::after {
        display: none;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-upload-choice-panel {
        position: fixed;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        left: max(14px, env(safe-area-inset-left));
        width: auto;
        max-height: min(360px, calc(100dvh - 88px));
        gap: 14px;
        overflow-y: auto;
        padding: 16px;
        border-radius: 16px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-upload-choice-panel .attachment-action-modal-header {
        align-items: center;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-upload-choice-panel .attachment-action-modal-header button {
        width: 40px;
        height: 40px;
        color: var(--zn-member-text-primary);
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-upload-choice-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-upload-choice {
        min-height: 68px;
        padding: 12px 14px;
    }

    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-explorer,
    body.user-body-workspace:not(:has(.workspace-calendar-shell)) .workspace-owner-landing {
        min-height: 0;
        padding-right: max(14px, env(safe-area-inset-right));
        padding-left: max(14px, env(safe-area-inset-left));
        overflow-y: auto;
    }
}

@media (max-width: 1024px) {
    body.user-body-workspace:has(.workspace-finder-header-actions-menu.is-open) {
        perspective: none;
    }

    body.user-body-workspace:has(.workspace-finder-header-actions-menu.is-open) .user-shell {
        transform: none;
        transform-style: flat;
        will-change: auto;
    }

    body.user-body-workspace:has(.workspace-finder-header-actions-menu.is-open) .workspace-browser {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.user-body-workspace .workspace-finder-toolbar:has(.workspace-finder-header-actions-menu.is-open),
    body.user-body-workspace .workspace-finder-toolbar:has(.workspace-location-drawer-toolbar[open]) {
        z-index: 2201;
    }

    body.user-body-workspace .workspace-finder-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    body.user-body-workspace .workspace-finder-toolbar > .workspace-finder-nav {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        overflow: visible;
    }

    body.user-body-workspace .workspace-finder-toolbar-center {
        width: auto;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        overflow: visible;
    }

    body.user-body-workspace .workspace-finder-search-row {
        min-width: 0;
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    body.user-body-workspace .workspace-location-drawer-toolbar {
        display: block;
    }

    body.user-body-workspace .workspace-finder-search-row > .workspace-finder-search {
        min-width: 0;
        grid-column: 2;
        grid-row: 1;
    }

    body.user-body-workspace .workspace-location-row {
        display: none !important;
    }

    body.user-body-workspace [data-workspace-app].has-workspace-selection .workspace-location-row {
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    body.user-body-workspace .workspace-location-row > .workspace-location-drawer,
    body.user-body-workspace .workspace-location-row > .workspace-location-count,
    body.user-body-workspace .workspace-location-selection-controls > .workspace-select-mode-button,
    body.user-body-workspace .workspace-selection-actions-menu > .workspace-finder-compact-menu-trigger {
        display: none !important;
    }

    body.user-body-workspace .workspace-location-selection-controls {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    body.user-body-workspace .workspace-selection-actions-menu {
        display: contents;
    }

    body.user-body-workspace [data-workspace-app].has-workspace-selection .workspace-toolbar-selection-actions {
        display: inline-flex !important;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="grid"] .workspace-file-row > .workspace-select-checkbox {
        display: grid;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-row-more-label {
        display: none;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-row-more-compact-label {
        display: inline;
        letter-spacing: 0.08em;
        transform: translateY(-0.08em);
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-open-button .workspace-row-copy strong {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        text-overflow: clip;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-finder-compact-menu-trigger {
        order: 2;
        width: 38px;
        min-width: 38px;
        min-height: 36px;
        display: inline-grid;
        padding: 0;
        border: 1px solid var(--zn-member-border);
        border-radius: 9px;
        background: var(--zn-member-bg-card);
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-view-switch {
        order: 1;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-finder-compact-menu-trigger .workspace-finder-toolbar-icon,
    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-view-switch .workspace-view-toggle-icon {
        width: 21px;
        height: 21px;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu > .workspace-finder-compact-menu-panel {
        display: none !important;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel {
        position: fixed;
        z-index: 2200;
        top: var(--workspace-folder-tools-top, 0);
        right: 0;
        left: 0;
        width: auto;
        max-width: none;
        max-height: min(
            420px,
            calc(100dvh - var(--workspace-folder-tools-top, 0px) - max(12px, env(safe-area-inset-bottom)))
        );
        display: grid !important;
        align-items: stretch;
        gap: 4px;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding:
            12px
            max(12px, env(safe-area-inset-right))
            12px
            max(12px, env(safe-area-inset-left));
        border: 1px solid var(--zn-member-border);
        border-radius: 16px;
        background: var(--zn-member-bg-card);
        box-shadow: var(--zn-member-shadow);
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-normal-actions {
        display: contents;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-toolbar-menu-header {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 4px 4px 12px;
        border-bottom: 1px solid var(--zn-member-border);
        color: var(--zn-member-text-primary);
        font-size: 0.86rem;
    }

    body.user-body-workspace .workspace-finder-toolbar-menu-close {
        width: 36px;
        height: 36px;
        display: inline-grid;
        flex: 0 0 auto;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--zn-member-text-secondary);
        cursor: pointer;
    }

    body.user-body-workspace .workspace-finder-toolbar-menu-close:hover,
    body.user-body-workspace .workspace-finder-toolbar-menu-close:focus-visible {
        background: var(--zn-member-bg-surface-hover);
        color: var(--zn-member-text-primary);
        outline: none;
    }

    body.user-body-workspace .workspace-finder-toolbar-menu-close-icon {
        width: 18px;
        height: 18px;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-share {
        width: 100%;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-toolbar-button,
    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-share > summary {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        box-sizing: border-box;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--zn-member-text-primary);
        font-size: 0.82rem;
        font-weight: 700;
        text-align: left;
        text-decoration: none;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-toolbar-button:hover,
    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-toolbar-button:focus-visible,
    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-share > summary:hover,
    body.user-body-workspace .workspace-finder-header-actions-menu.is-open > .workspace-finder-compact-menu-panel .workspace-finder-share > summary:focus-visible {
        background: var(--zn-member-bg-surface-hover);
        outline: none;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-toolbar-menu-label {
        display: inline;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-nav-icon,
    body.user-body-workspace .workspace-finder-header-actions-menu.is-open .workspace-finder-compact-menu-panel .workspace-finder-toolbar-icon {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
    }

    body.user-body-workspace .workspace-finder-header-actions-menu.is-open [data-workspace-tooltip]::after {
        display: none;
    }
}

@media (max-width: 900px) {
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-row {
        position: relative;
        min-height: 74px;
        padding-left: 54px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-file-row > .workspace-select-checkbox {
        position: absolute;
        top: 50%;
        left: 14px;
        display: grid;
        transform: translateY(-50%);
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] {
        --workspace-list-columns: 36px minmax(0, 1fr) 112px 70px 64px;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-select-checkbox {
        position: static;
        grid-column: 1;
        display: grid;
        place-self: center start;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(1),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-name {
        grid-column: 2;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(3),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(2) {
        grid-column: 3;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(4),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-cell:nth-of-type(3) {
        grid-column: 4;
    }

    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-header > span:nth-of-type(6),
    body.user-body-workspace .workspace-browser[data-workspace-view="list"] .workspace-explorer-row > .workspace-explorer-actions {
        grid-column: 5;
    }
}
