:root {
    --workspace-tree-min-width: 18rem;
    --workspace-tree-max-width: 22rem;
    --workspace-tree-width: var(--workspace-tree-min-width);
}

.workspace-lookup-picker [data-workspace-lookup-toggle] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-lookup-menu {
    min-width: 100%;
    width: max-content;
    max-width: min(36rem, 90vw);
}

.workspace-lookup-list {
    max-height: 18rem;
    overflow-y: auto;
}

.workspace-lookup-list .list-group-item {
    overflow-wrap: anywhere;
}

.workspace-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(14rem, var(--workspace-tree-width)) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.workspace-sidebar {
    position: sticky;
    top: calc(var(--hph-sticky-stack-height, 0px) + 1rem);
    max-height: calc(100vh - var(--hph-sticky-stack-height, 0px) - 2rem);
    max-height: calc(100dvh - var(--hph-sticky-stack-height, 0px) - 2rem);
    min-height: 0;
}

.workspace-tree-card {
    max-height: inherit;
    overflow: hidden;
}

/*
 * HR: Poruke o zabrani pristupa i prazna javna stanja koriste istu neprozirnu
 *     tematsku karticu kao sadržaj stranice.
 * EN: Access-denied messages and empty public states use the same opaque
 *     themed card as page content.
 */
.workspace-access-denied,
.workspace-empty-state,
.workspace-special-menu-intro {
    background-color: var(--hph-content-card-bg, var(--bs-body-bg, #fff));
    border-color: var(--hph-content-card-border, var(--bs-border-color, #dee2e6));
    color: var(--hph-content-card-text, var(--bs-body-color, #212529));
}

/*
 * HR: Tuđa osobna područja ostaju u kompaktnom izborniku koji ne može ponovno
 *     rastegnuti cijelu stranicu kada korisnik ima pristup velikom broju njih.
 * EN: Other users' personal Workspaces stay in a compact menu that cannot grow
 *     the complete page again when the actor can access many of them.
 */
.workspace-personal-dropdown {
    max-height: min(28rem, 65vh);
    max-width: min(32rem, calc(100vw - 2rem));
    min-width: min(22rem, calc(100vw - 2rem));
    overflow-y: auto;
}

.workspace-tree-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/*
 * HR: Akcije imaju vlastiti kompaktni red kako nikada ne bi skraćivale naziv područja.
 * EN: Actions use their own compact row so they never truncate the workspace name.
 */
.workspace-tree-heading {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.workspace-tree-title {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.workspace-tree-card-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .25rem;
    justify-content: flex-end;
}

.workspace-tree-card-action,
.workspace-fallback-tree-action {
    align-items: center;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    opacity: .68;
    padding: 0;
    width: 1.75rem;
}

.workspace-tree-card-action-count {
    gap: .15rem;
    min-width: 1.75rem;
    padding: 0 .25rem;
    width: auto;
}

.workspace-tree-card-action:hover,
.workspace-tree-card-action:focus,
.workspace-fallback-tree-action:hover,
.workspace-fallback-tree-action:focus {
    opacity: 1;
}

.workspace-tree-card-action-icon {
    fill: none;
    height: .9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: .9rem;
}

/*
 * HR: Izvoz koristi puni tematski primarni gumb kao akcija izvoza na pregledu dokumenta.
 * EN: Export uses the filled themed primary button used by the document-view export action.
 */
.workspace-export-icon-action {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.workspace-export-icon-action:hover,
.workspace-export-icon-action:focus-visible {
    filter: brightness(.96);
}

.workspace-export-icon-action__icon {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.workspace-tree {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
}

.workspace-tree-link-level-1 {
    font-weight: 700;
}

.workspace-tree-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .2rem;
    color: var(--hph-workspace-tree-text, var(--bs-body-color));
    display: flex;
    gap: .35rem;
    justify-content: space-between;
    line-height: 1.25;
    min-width: 0;
    padding: .32rem .35rem;
}

.workspace-tree-link:hover,
.workspace-tree-link:focus-visible {
    background: color-mix(
        in srgb,
        var(--hph-workspace-tree-accent, var(--bs-primary)) 9%,
        transparent
    );
    color: var(--hph-workspace-tree-text, var(--bs-body-color));
}

.workspace-tree-link.active,
.workspace-tree-link.active:hover,
.workspace-tree-link.active:focus-visible {
    background: var(--hph-workspace-tree-accent, var(--bs-primary));
    color: var(--hph-workspace-tree-active-text, var(--bs-white));
}

.workspace-tree-node--temporarily-visible > .workspace-tree-row {
    opacity: .58;
}

.workspace-tree-node--temporarily-visible > .workspace-tree-row .workspace-tree-link {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 42%, transparent);
}

.workspace-tree-node--temporarily-visible > .workspace-tree-row .workspace-tree-link.active {
    opacity: .88;
}

.workspace-tree-row {
    --workspace-tree-indent: calc((var(--workspace-tree-level, 1) - 1) * .9rem);
    align-items: center;
    display: flex;
    padding-inline-start: var(--workspace-tree-indent);
}

.workspace-tree-branch-toggle,
.workspace-tree-branch-spacer {
    flex: 0 0 1.45rem;
    width: 1.45rem;
}

.workspace-tree-branch-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--hph-workspace-tree-text, var(--bs-body-color));
    display: inline-flex;
    justify-content: center;
    opacity: .62;
    padding: 0;
}

.workspace-tree-branch-toggle:hover,
.workspace-tree-branch-toggle:focus-visible {
    color: var(--hph-workspace-tree-accent, var(--bs-primary));
    opacity: 1;
}

.workspace-tree-branch-toggle svg {
    fill: none;
    height: .9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
    transition: transform .18s ease;
    width: .9rem;
}

.workspace-tree-branch-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

[dir="rtl"] .workspace-tree-branch-toggle[aria-expanded="false"] svg {
    transform: rotate(90deg);
}

.workspace-tree-branch[hidden] {
    display: none !important;
}

.workspace-tree-link-title {
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.workspace-tree-status {
    flex: 0 0 auto;
    font-size: .62rem;
    font-weight: 600;
}

/*
 * HR: Nativni dinamički blokovi koriste površine i obrube aktivne teme, ali
 *     zadržavaju čitljiv fallback kada Theme modul nije instaliran.
 * EN: Native dynamic blocks use active-theme surfaces and borders while
 *     retaining a readable fallback when the Theme module is absent.
 */
.workspace-dynamic-block {
    background: var(--hph-content-surface, var(--bs-body-bg));
    border: 1px solid var(--hph-content-border, var(--bs-border-color));
    border-radius: var(--hph-content-radius, var(--bs-border-radius));
    color: var(--hph-content-text, var(--bs-body-color));
    margin-block: 1rem;
    padding: 1rem;
}

.workspace-dynamic-block > :last-child {
    margin-bottom: 0;
}

.workspace-dynamic-block .list-group-item,
.workspace-dynamic-block .card {
    background-color: transparent;
    color: inherit;
}

.workspace-attachment-gallery .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.workspace-review-queue-count,
.workspace-unpublished-page-count {
    font-size: .56rem;
    min-width: .9rem;
    padding: .15rem .25rem;
}

.workspace-tree-node[data-workspace-tree-level="1"] > .workspace-tree-row { --workspace-tree-level: 1; }
.workspace-tree-node[data-workspace-tree-level="2"] > .workspace-tree-row { --workspace-tree-level: 2; }
.workspace-tree-node[data-workspace-tree-level="3"] > .workspace-tree-row { --workspace-tree-level: 3; }
.workspace-tree-node[data-workspace-tree-level="4"] > .workspace-tree-row { --workspace-tree-level: 4; }
.workspace-tree-node[data-workspace-tree-level="5"] > .workspace-tree-row,
.workspace-tree-node[data-workspace-tree-level="6"] > .workspace-tree-row { --workspace-tree-level: 5; }

.workspace-tree-separator {
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    cursor: default;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-top: .45rem;
    text-transform: uppercase;
}

.workspace-main {
    min-width: 0;
}

.workspace-breadcrumb-nav {
    color: var(
        --hph-workspace-breadcrumb-text,
        var(--hph-hero-subtitle, var(--hph-hero-text, var(--bs-body-color, #212529)))
    );
    font-size: var(
        --hph-workspace-breadcrumb-font-size,
        clamp(.72rem, .45rem + .35vw, .92rem)
    );
    inset-block-start: -3.25rem;
    inset-inline-start: calc(var(--workspace-tree-width) + 1rem);
    inline-size: calc(100% - var(--workspace-tree-width) - 1rem);
    line-height: 1.25;
    margin: 0;
    max-width: calc(100% - var(--workspace-tree-width) - 1rem);
    min-width: 0;
    overflow: hidden;
    position: absolute;
    z-index: 2;
}

.workspace-breadcrumb {
    --bs-breadcrumb-divider-color: var(
        --hph-workspace-breadcrumb-text,
        var(--hph-hero-subtitle, var(--hph-hero-text, var(--bs-body-color, #212529)))
    );
    --bs-breadcrumb-item-active-color: var(
        --hph-workspace-breadcrumb-text,
        var(--hph-hero-subtitle, var(--hph-hero-text, var(--bs-body-color, #212529)))
    );
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: .25rem .125rem;
    text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
    white-space: nowrap;
}

/*
 * HR: Breadcrumbs na desktopu ostaju u jednom retku. Duge stavke skraćuju se
 *     unutar stvarne širine sadržaja umjesto prelamanja preko kartica.
 * EN: Desktop breadcrumbs stay on one line. Long items are truncated within
 *     the actual content width instead of wrapping over the cards.
 */
.workspace-breadcrumb .breadcrumb-item {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
}

.workspace-breadcrumb .breadcrumb-item:not(.active) a:not(.workspace-breadcrumb-home-link) {
    display: inline-block;
    max-width: clamp(6rem, 14vw, 18rem);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.workspace-breadcrumb a {
    color: var(
        --hph-workspace-breadcrumb-link,
        var(--hph-hero-title, var(--hph-hero-text, var(--bs-link-color)))
    );
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

.workspace-breadcrumb-home-link {
    display: inline;
    line-height: inherit;
    text-decoration: none;
}

.workspace-breadcrumb-home-icon {
    display: inline-block;
    fill: none;
    height: 1.05em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    vertical-align: -.125em;
    width: 1.05em;
}

.workspace-breadcrumb .active {
    color: var(
        --hph-workspace-breadcrumb-text,
        var(--hph-hero-subtitle, var(--hph-hero-text, var(--bs-body-color, #212529)))
    );
    flex: 1 1 10rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-backlinks {
    background: var(--hph-card-bg, var(--hph-surface, var(--bs-body-bg)));
    border-color: var(--hph-card-border, var(--hph-border, var(--bs-border-color)));
    color: var(--hph-card-text, var(--hph-surface-text, var(--bs-body-color)));
}

.workspace-backlinks-heading {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.workspace-backlinks-count {
    background: var(--hph-primary, var(--bs-primary));
    color: var(--hph-primary-contrast, #fff);
    font-size: .75rem;
}

.workspace-backlink-list {
    display: grid;
    gap: .65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.workspace-backlink-item {
    background: var(--hph-card-bg, var(--hph-surface, var(--bs-body-bg)));
    background: var(--hph-surface-soft, color-mix(in srgb, var(--hph-card-bg, var(--bs-body-bg)) 94%, var(--hph-primary, var(--bs-primary))));
    border: 1px solid var(--hph-card-border, var(--hph-border, var(--bs-border-color)));
    border-radius: var(--hph-card-radius, .55rem);
    padding: .75rem .9rem;
}

.workspace-backlink-link {
    color: var(--hph-link, var(--bs-link-color));
    font-weight: 650;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

.workspace-backlink-meta {
    color: var(--hph-muted, var(--bs-secondary-color));
    font-size: .875rem;
    margin-top: .2rem;
}

.workspace-mobile-panel-header,
.workspace-mobile-edge-toggle,
.workspace-mobile-panel-backdrop {
    display: none;
}

.workspace-shorts-toolbar {
    align-items: center;
    display: flex;
    gap: .75rem 1rem;
    grid-column: 2;
    grid-row: 1;
    justify-content: space-between;
    min-width: 0;
}

.workspace-shorts-breadcrumb-nav {
    color: var(
        --hph-workspace-breadcrumb-text,
        var(--hph-hero-subtitle, var(--hph-hero-text, var(--bs-body-color, #212529)))
    );
    min-width: 0;
}

.workspace-shorts-toolbar-actions {
    flex: 0 0 auto;
    margin-inline-start: auto;
}

/*
 * HR: Stablo i popis sažetaka dijele isti drugi red grida, ispod zajedničkog
 *     retka breadcrumba i alata, pa njihove kartice uvijek počinju poravnato.
 * EN: The tree and Shorts list share the same second grid row below the common
 *     breadcrumb-and-tools row, so their cards always start aligned.
 */
.workspace-shorts-shell > .workspace-sidebar {
    grid-column: 1;
    grid-row: 2;
}

.workspace-shorts-shell > .workspace-shorts-main {
    grid-column: 2;
    grid-row: 2;
}

/*
 * HR: Ikone koriste površinu, tekst i obrub aktivne teme umjesto fiksne
 *     Bootstrap secondary boje koja može nestati na prilagođenoj pozadini.
 * EN: Icons use the active theme's surface, text, and border instead of a fixed
 *     Bootstrap secondary color that can disappear on a custom background.
 */
.workspace-shorts-toggle {
    align-items: center;
    background: var(--hph-card-bg, var(--bs-body-bg));
    border-color: var(--hph-card-border, var(--bs-border-color));
    box-shadow: none;
    color: var(--hph-link, var(--hph-primary, var(--bs-primary)));
    display: inline-flex;
    height: 2.125rem;
    justify-content: center;
    opacity: .78;
    padding: 0;
    width: 2.125rem;
}

.workspace-shorts-toggle:hover,
.workspace-shorts-toggle[aria-expanded="true"] {
    background: var(--hph-card-bg, var(--bs-body-bg));
    border-color: currentColor;
    box-shadow: none;
    color: var(--hph-link, var(--hph-primary, var(--bs-primary)));
    opacity: .92;
}

.workspace-shorts-toggle:hover {
    opacity: 1;
}

.workspace-shorts-toggle:focus-visible {
    background: var(--hph-card-bg, var(--bs-body-bg));
    border-color: currentColor;
    box-shadow: 0 0 0 .1rem rgba(var(--hph-focus-ring-rgb, var(--bs-primary-rgb)), .22);
    color: var(--hph-link, var(--hph-primary, var(--bs-primary)));
    opacity: 1;
}

.workspace-shorts-toggle-icon {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.workspace-shorts-list {
    display: grid;
    gap: 1rem;
}

.workspace-short-card {
    overflow: hidden;
}

.workspace-short-excerpt {
    --workspace-short-line-height: 1.55rem;
    line-height: var(--workspace-short-line-height);
    max-height: calc(var(--workspace-short-line-height) * 12);
    overflow: hidden;
    position: relative;
}

.workspace-short-excerpt::after {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--hph-card-bg, var(--bs-body-bg))
    );
    bottom: 0;
    content: '';
    height: calc(var(--workspace-short-line-height) * 2.5);
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.workspace-short-excerpt :is(img, video, iframe, figure) {
    max-height: calc(var(--workspace-short-line-height) * 7);
    max-width: 100%;
    object-fit: cover;
}

.workspace-short-excerpt > :last-child {
    margin-bottom: 0;
}

.workspace-workflow-toolbar {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding: .6rem .75rem;
}

.workspace-workflow-summary,
.workspace-workflow-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.workspace-workflow-actions form {
    margin: 0;
}

.workspace-workflow-action {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.workspace-workflow-action-icon {
    fill: none;
    height: .9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: .9rem;
}

.workspace-unpublished-actions {
    display: flex;
    gap: .35rem;
    justify-content: flex-end;
    margin-bottom: .75rem;
}

.workspace-unpublished-actions form {
    margin: 0;
}

.workspace-acl-table th:first-child {
    min-width: 12rem;
}

.workspace-acl-table th:not(:first-child),
.workspace-acl-table td:not(:first-child) {
    width: 6.5rem;
}

.workspace-acl-table {
    min-width: 48rem;
}

.workspace-acl-table .workspace-acl-action-column,
.workspace-acl-table tr:not(.workspace-acl-empty) td:last-child {
    width: 2.75rem;
}

.workspace-node-acl-cell {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    justify-content: center;
    min-width: 2.9rem;
}

.workspace-node-acl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.workspace-node-acl-legend > span {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.workspace-acl-legend-swatch {
    border: var(--bs-border-width) solid currentColor;
    border-radius: .2rem;
    display: inline-block;
    height: .85rem;
    width: .85rem;
}

.workspace-acl-legend-inherited {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.workspace-acl-legend-denied {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    color: var(--bs-danger);
}

.workspace-acl-legend-unavailable {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-border-color);
}

.workspace-node-restriction-toggle,
.workspace-node-restriction-unavailable {
    align-items: center;
    display: inline-flex;
    height: 1.15rem;
    justify-content: center;
    margin: 0;
    vertical-align: middle;
    width: 1.15rem;
}

.workspace-node-restriction-toggle {
    cursor: pointer;
}

.workspace-node-restriction-toggle > span,
.workspace-node-restriction-unavailable {
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: .2rem;
    height: 100%;
    position: relative;
    transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
    width: 100%;
}

.workspace-node-restriction-toggle > input:checked + span {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.workspace-node-restriction-toggle > input:checked + span::after {
    color: var(--bs-white);
    content: '✓';
    font-size: .8rem;
    font-weight: 700;
    left: 50%;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -52%);
}

.workspace-node-restriction-toggle > input:not(:checked) + span {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.workspace-node-restriction-toggle > input:focus-visible + span {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.workspace-acl-remove {
    align-items: center;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 1.75rem;
}

.workspace-acl-remove svg {
    fill: none;
    height: .9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: .9rem;
}

.workspace-subject-picker {
    position: relative;
}

.workspace-subject-results {
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: var(--bs-box-shadow);
    left: 0;
    max-height: min(18rem, 45vh);
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 1080;
}

.workspace-subject-results[hidden] {
    display: none;
}

.workspace-subject-results .list-group-item {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-align: left;
}

.workspace-subject-results .list-group-item-action:hover,
.workspace-subject-results .list-group-item-action:focus {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.workspace-homepage-selector {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.workspace-homepage-picker {
    position: relative;
}

.workspace-homepage-picker-toggle {
    overflow: hidden;
    padding-right: 2.25rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-homepage-picker-toggle > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-homepage-picker-menu {
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
    left: 0;
    min-width: 100%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 1080;
}

.workspace-homepage-picker-menu[hidden] {
    display: none;
}

.workspace-homepage-picker-search {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    border-top: 0;
}

.workspace-homepage-picker-options {
    max-height: min(20rem, 50vh);
    overflow-y: auto;
}

.workspace-homepage-picker-options .list-group-item {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-align: left;
}

.workspace-homepage-picker-options .list-group-item-action:hover,
.workspace-homepage-picker-options .list-group-item-action:focus {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.workspace-homepage-picker-options [aria-selected="true"] {
    background: rgba(var(--bs-primary-rgb), .14);
    color: var(--bs-body-color);
    font-weight: 600;
}

.workspace-node-editor > summary {
    cursor: pointer;
}

.workspace-tree-order-row {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: .75rem;
    min-height: 3.25rem;
}

.workspace-tree-order-controls {
    flex: 0 0 auto;
}

.workspace-tree-order-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding-left: calc(var(--workspace-tree-level, 0) * 1.25rem);
}

.workspace-tree-order-label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-workspace-tree-editor],
[data-workspace-tree-editor] form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.workspace-tree-editor-row {
    display: grid;
    align-items: start;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .35rem;
    row-gap: .05rem;
    min-height: 2.6rem;
    padding: .3rem .5rem;
}

.workspace-tree-hidden-toggle {
    align-self: center;
    cursor: pointer;
    grid-column: 1;
    grid-row: 2;
    height: .9rem;
    justify-self: center;
    margin: 0;
    width: .9rem;
}

.workspace-tree-editor-row--hidden .workspace-tree-order-label {
    color: var(--bs-secondary-color);
    opacity: .6;
}

.workspace-tree-editor-row--hidden-direct {
    background: color-mix(in srgb, var(--bs-secondary-color) 8%, transparent);
}

.workspace-tree-editor-row .workspace-tree-order-label {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    padding-left: calc(var(--workspace-tree-level, 0) * .65rem);
}

.workspace-tree-editor-row .workspace-tree-order-label span {
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.workspace-tree-node-edit,
.workspace-tree-order-action {
    align-items: center;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    padding: 0;
    width: 1.75rem;
}

.workspace-tree-node-edit,
.workspace-tree-order-action {
    background: transparent;
    border: 0;
    box-shadow: none;
    height: 1.35rem;
    width: 1.35rem;
}

.workspace-tree-editor-row .workspace-tree-node-edit {
    grid-column: 1;
    grid-row: 1;
}

.workspace-tree-node-edit:hover,
.workspace-tree-node-edit:focus-visible,
.workspace-tree-order-action:hover,
.workspace-tree-order-action:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--bs-primary);
}

.workspace-tree-node-edit svg,
.workspace-tree-order-action svg,
.workspace-tree-editor-footer svg {
    fill: none;
    height: .9rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: .9rem;
}

.workspace-tree-order-action svg {
    height: .78rem;
    width: .78rem;
}

.workspace-tree-order-controls {
    align-self: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .05rem;
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    justify-self: end;
}

.workspace-tree-order-action:disabled {
    opacity: .25;
}

.workspace-tree-editor-footer {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: .5rem;
    justify-content: space-between;
    padding-top: .75rem;
}

.workspace-tree-editor-footer .btn {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

@media (max-width: 991.98px) {
    .workspace-shell {
        display: block;
    }

    .workspace-breadcrumb-nav {
        inline-size: auto;
        inset: auto;
        margin-bottom: .75rem;
        max-width: 100%;
        overflow: visible;
        position: static;
    }

    .workspace-breadcrumb {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: .2rem;
        white-space: normal;
    }

    .workspace-breadcrumb .active {
        white-space: normal;
    }

    .workspace-shorts-toolbar {
        margin-bottom: .75rem;
    }

    .workspace-sidebar {
        bottom: 0;
        display: block !important;
        left: 0;
        margin: 0;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: visible;
        padding: .75rem;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .2s ease, visibility .2s step-end;
        visibility: hidden;
        width: min(22rem, calc(100vw - 3rem));
        z-index: 1080;
    }

    .workspace-sidebar.workspace-mobile-panel-open {
        transform: translateX(0);
        transition: transform .2s ease, visibility 0s;
        visibility: visible;
    }

    .workspace-mobile-panel-header {
        align-items: center;
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        margin-bottom: 1rem;
        min-height: 2.5rem;
    }

    .workspace-mobile-panel-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: inherit;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 1.75rem;
        height: 2.5rem;
        justify-content: center;
        line-height: 1;
        padding: 0;
        width: 2.5rem;
    }

    .workspace-sidebar .workspace-tree-card {
        box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .28) !important;
        height: calc(100vh - 1.5rem);
        height: calc(100dvh - 1.5rem);
        max-height: none;
    }

    .workspace-sidebar .workspace-tree-card > .card-body {
        overflow: hidden;
    }

    .workspace-mobile-edge-toggle {
        align-items: center;
        background: var(--hph-card-bg, var(--bs-body-bg));
        border: 1px solid var(--hph-card-border, var(--bs-border-color));
        box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .14);
        color: var(--hph-link, var(--hph-primary, var(--bs-primary)));
        display: inline-flex;
        height: 3rem;
        justify-content: center;
        opacity: .82;
        padding: 0;
        position: fixed;
        top: 52%;
        width: 2rem;
        z-index: 1040;
    }

    .workspace-mobile-edge-toggle--start {
        border-left: 0;
        border-radius: 0 .5rem .5rem 0;
        left: 0;
    }

    .workspace-mobile-edge-toggle:hover,
    .workspace-mobile-edge-toggle:focus-visible {
        opacity: 1;
    }

    .workspace-mobile-edge-toggle .workspace-workflow-action-icon,
    .workspace-mobile-edge-toggle .workspace-tree-card-action-icon {
        fill: none;
        height: 1rem;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
        width: 1rem;
    }

    .workspace-mobile-panel-backdrop {
        background: rgba(15, 23, 42, .45);
        inset: 0;
        position: fixed;
        z-index: 1075;
    }

    .workspace-mobile-panel-backdrop:not([hidden]) {
        display: block;
    }

    body.workspace-mobile-panel-active {
        overflow: hidden;
    }

    .workspace-tree-order-row:not(.workspace-tree-editor-row) {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-tree-order-row:not(.workspace-tree-editor-row) .workspace-tree-order-label {
        order: -1;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .workspace-workflow-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-workflow-actions,
    .workspace-workflow-actions form,
    .workspace-workflow-action {
        width: 100%;
    }

    .workspace-workflow-action {
        justify-content: center;
    }
}

.workspace-deleted-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    justify-content: flex-end;
}

.workspace-deleted-actions__form {
    margin: 0;
}

.workspace-deleted-actions__group {
    flex-wrap: nowrap;
    width: 13rem;
}

.workspace-deleted-actions__group--purge {
    width: 18rem;
}

.workspace-deleted-actions__group .btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .workspace-deleted-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-deleted-actions__group,
    .workspace-deleted-actions__group--purge {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .workspace-sidebar.collapse:not(.show) {
        display: none;
    }

    .workspace-shell:has(.workspace-sidebar.collapse:not(.show)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .workspace-shell:has(.workspace-sidebar.collapse:not(.show)) .workspace-breadcrumb-nav {
        inline-size: 100%;
        inset-inline-start: 0;
        max-width: 100%;
    }

    .workspace-shorts-shell:has(.workspace-sidebar.collapse:not(.show))
        > .workspace-shorts-toolbar,
    .workspace-shorts-shell:has(.workspace-sidebar.collapse:not(.show))
        > .workspace-shorts-main {
        grid-column: 1;
    }
}
.workspace-locale-button {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    min-width: 5.25rem;
}

.workspace-locale-flag {
    display: inline-block;
    height: .9rem;
    object-fit: cover;
    vertical-align: -.125em;
    width: 1.2rem;
}
