/* FariDocs 1.22.5 — compact mobile Workspace entry without changing desktop navigation. */
.workspace-nav-button .workspace-nav-icon {
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 6px;
    background: #159b8f;
    color: #fff;
}

.workspace-nav-button .workspace-nav-icon svg {
    width: 18px;
    height: 18px;
}

/*
 * v1.14 styled every direct span as the square icon. The public Workspace
 * button now has a separate label span, so reset that legacy square sizing
 * on desktop to keep the word readable and inside the navigation row.
 */
.workspace-nav-button .workspace-nav-label {
    width: auto !important;
    height: auto !important;
    min-width: max-content;
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 761px) {
    .workspace-nav-button {
        width: auto;
        min-width: max-content;
        flex: 0 0 auto;
        justify-content: center;
        overflow: visible;
    }
}

@media (max-width: 760px) {
    .workspace-nav-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0 !important;
        display: inline-grid !important;
        place-items: center;
        overflow: hidden;
    }

    .workspace-nav-button .workspace-nav-label {
        display: none !important;
    }

    .workspace-nav-button .workspace-nav-icon svg {
        width: 19px;
        height: 19px;
    }
}
