/* =====================================================================================================================
   V112 WP-A (PB-02 sidebar / drawer, PB-03 workspaces; owner decisions 24, 25, 27). The Studio selector is shared between modes.
   Sidebar, Equipment and Jobs rules remain scoped to Regular.
   - .pb112-sb-divider: the one subtle divider between discovery and "My purchases" (SB-01), also in the collapsed rail.
   - .pb112-gear: the Equipment hub navigation (My printers / My filaments).
   - .pb112-ws: the small workspace switch (printer / creator) for dual-role accounts.
   - .pb112-jobs-actions: the "New job" action of the printer Jobs page.
   Tokens: the site's --pb-* semantic tokens with literal fallbacks (light / dark resolve themselves).
   ===================================================================================================================== */

body[data-pb-choice-mode="regular"] .pb-sb .pb-sb-group.pb112-sb-divider {
    block-size: 1px;
    margin: 12px 8px;
    padding: 0;
    overflow: hidden;
    border-block-start: 1px solid var(--pb-divider, #D9DCE1);
}

/* ---- Equipment hub: My printers | My filaments ---- */
body[data-pb-choice-mode="regular"] .pb112-gear {
    margin: 0 0 1rem;
}
body[data-pb-choice-mode="regular"] .pb112-gear__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
body[data-pb-choice-mode="regular"] .pb112-gear__item {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .25rem 1rem;
    border: 1px solid var(--pb-divider, #D9DCE1);
    border-radius: 999px;
    color: var(--pb-text-primary, #171A1F);
    background: var(--pb-surface, #FFFFFF);
    text-decoration: none;
    font-size: .9375rem;
    line-height: 1.25rem;
}
body[data-pb-choice-mode="regular"] .pb112-gear__item:hover {
    background: var(--pb-surface-selected, #EEF2F7);
}
body[data-pb-choice-mode="regular"] .pb112-gear__item[aria-current="page"] {
    border-color: var(--pb-action-primary, #1F5FD1);
    background: var(--pb-action-soft-bg, #E8EEFB);
    color: var(--pb-action-soft-text, #123E8C);
    font-weight: 700;
}
body[data-pb-choice-mode="regular"] .pb112-gear__item:focus-visible,
.pb112-ws__item:focus-visible {
    outline: 3px solid var(--pb-focus, #1F5FD1);
    outline-offset: 2px;
}

/* ---- workspace switch (dual role only) ---- */
.pb112-ws {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 .75rem;
}
.pb-studio-navigation > .pb112-ws { margin-block-end: 8px; }
.pb-studio-navigation .pb112-ws__list { inline-size: min(100%, 280px); }
.pb112-ws__list {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 2px;
    max-inline-size: 100%;
    box-sizing: border-box;
    border: 1px solid var(--pb-divider, #D9DCE1);
    border-radius: 999px;
    background: var(--pb-surface, #FFFFFF);
}
.pb112-ws__list > li { display: flex; min-inline-size: 0; margin: 0; }
.pb112-ws__item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-inline-size: 0;
    min-block-size: 48px;
    padding: .25rem .875rem;
    text-align: center;
    overflow-wrap: anywhere;
    border-radius: 999px;
    color: var(--pb-text-secondary, #4A5160);
    text-decoration: none;
    font-size: .875rem;
    line-height: 1.25rem;
}
.pb112-ws__item:hover {
    background: var(--pb-surface-selected, #EEF2F7);
}
.pb112-ws__item[aria-current] {
    background: var(--pb-action-soft-bg, #E8EEFB);
    color: var(--pb-action-soft-text, #123E8C);
    font-weight: 700;
}

/* ---- Jobs page: the "New job" action ---- */
body[data-pb-choice-mode="regular"] .pb112-jobs-actions {
    margin: 0 0 .75rem;
}
body[data-pb-choice-mode="regular"] .pb112-jobs-actions .pb-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (forced-colors: active) {
    .pb112-ws__item[aria-current] { border: 1px solid Highlight; }
}

@media print {
    .pb112-ws,
    body[data-pb-choice-mode="regular"] .pb112-gear { display: none; }
}
