:root {
    --hub-header-height: 76px;
    --hub-sidebar-width: 250px;
    --hub-nav-background: #f5f9fa;
    --hub-nav-border: #dce9ed;
    --hub-nav-text: #315565;
    --hub-nav-selected: #dff2f2;
    --hub-nav-accent: #00878d;
}

body.wh-v4 {
    padding-top: var(--hub-header-height);
}

body.wh-v4 .topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    height: var(--hub-header-height) !important;
    min-height: var(--hub-header-height) !important;
    padding: 0 clamp(18px, 3vw, 56px);
    background: #fff;
    border-bottom: 1px solid var(--hub-nav-border);
    box-shadow: 0 2px 14px rgba(15, 47, 61, .035);
}

body.wh-v4 .topbar .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

body.wh-v4 .topbar #hub-primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.7vw, 24px);
    min-width: 0;
}

body.wh-v4 .topbar #hub-primary-nav a,
body.wh-v4 .topbar #hub-primary-nav button {
    white-space: nowrap;
}

body.wh-v4 .app-shell.has-sidebar.hub-workspace-shell {
    display: grid !important;
    grid-template-columns: var(--hub-sidebar-width) minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - var(--hub-header-height));
    background: #f4f7f9;
}

body.wh-v4 .app-shell.hub-workspace-shell > .admin-sidebar {
    position: sticky !important;
    top: var(--hub-header-height) !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    gap: 0 !important;
    width: 100%;
    height: calc(100dvh - var(--hub-header-height)) !important;
    max-height: calc(100dvh - var(--hub-header-height)) !important;
    min-width: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 20px 12px 28px !important;
    background: var(--hub-nav-background) !important;
    border: 0 !important;
    border-right: 1px solid var(--hub-nav-border) !important;
    box-shadow: none !important;
    scrollbar-width: thin;
    scrollbar-color: #c4d6db transparent;
}

body.wh-v4 .hub-sidebar .side-title {
    display: grid !important;
    gap: 5px;
    margin: 0 0 16px;
    padding: 9px 13px 18px;
    border-bottom: 1px solid var(--hub-nav-border);
    color: #6b8590 !important;
}

body.wh-v4 .hub-sidebar .side-title span {
    color: #6b8590 !important;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
}

body.wh-v4 .hub-sidebar .side-title strong {
    color: #17384d !important;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.3;
}

body.wh-v4 .hub-sidebar-links,
body.wh-v4 .hub-sidebar-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.wh-v4 .hub-sidebar-group {
    gap: 3px;
    padding: 0 0 14px;
}

body.wh-v4 .hub-sidebar-group + .hub-sidebar-group {
    padding-top: 13px;
    border-top: 1px solid #e3ecef;
}

body.wh-v4 .hub-sidebar-group-label {
    padding: 0 12px 6px;
    color: #708893;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .10em;
    text-transform: uppercase;
}

body.wh-v4 .app-shell.hub-workspace-shell > .hub-sidebar .hub-sidebar-group a {
    display: flex;
    align-items: center;
    min-height: 43px;
    margin: 0;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--hub-nav-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45;
    text-align: left;
    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: break-word;
}

body.wh-v4 .app-shell.hub-workspace-shell > .hub-sidebar .hub-sidebar-group a:hover {
    background: #e7f4f5 !important;
    color: #006f7a !important;
}

body.wh-v4 .app-shell.hub-workspace-shell > .hub-sidebar .hub-sidebar-group a.active,
body.wh-v4 .app-shell.hub-workspace-shell > .hub-sidebar .hub-sidebar-group a[aria-current="page"] {
    background: var(--hub-nav-selected) !important;
    border-color: #c2e4e6 !important;
    box-shadow: inset 3px 0 0 var(--hub-nav-accent) !important;
    color: #006f7a !important;
    font-weight: 750 !important;
}

body.wh-v4 .hub-sidebar a:focus-visible,
body.wh-v4 .topbar a:focus-visible,
body.wh-v4 .topbar button:focus-visible {
    outline: 3px solid var(--hub-nav-accent);
    outline-offset: 2px;
}

body.wh-v4 .app-shell.hub-workspace-shell > main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

body.wh-v4 .app-shell.hub-workspace-shell > main > .section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px clamp(18px, 3vw, 44px) 44px;
}

body.wh-v4 .hub-workspace-shell .concept-dashboard {
    width: 100%;
    max-width: none;
}

body.wh-v4 .hub-workspace-shell .concept-portal-main {
    min-width: 0;
}

body.wh-v4 .hub-skip-link {
    position: fixed;
    top: -70px;
    left: 16px;
    z-index: 1200;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid var(--hub-nav-accent);
    border-radius: 8px;
    color: #163a4a;
}

body.wh-v4 .hub-skip-link:focus {
    top: 10px;
}
