/* Keep shared navigation independent of each page's public or workspace palette. */
#pcHeader {
    --pc-text: #173d2b;
    --pc-text-soft: #506159;
    --pc-text-faint: #59685f;
    --pc-surface: #fff;
    --pc-surface-soft: #f7f8f3;
    --pc-primary-soft: #edf4e8;
    --pc-border: #dfe6dc;
    --pc-shadow-md: 0 14px 40px #0b2f2324;
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(110deg, #123c2b, #06291e 70%, #092f23);
    color: #f7f8f3;
    border-bottom: 2px solid #83c75d;
    box-shadow: 0 3px 14px #0b2f2324;
    backdrop-filter: none;
    font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#pcHeader::before { display: none; }
#pcHeader .pc-header-wrap {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) auto;
    grid-template-areas: "brand navigation actions";
    gap: 24px;
    height: 74px;
    min-height: 74px;
    max-width: 1680px;
    padding: 12px 28px;
    align-items: center;
}
#pcHeader .pc-h-brand { grid-area: brand; width: 100%; min-width: 0; }
#pcHeader .pc-h-brand-link { gap: 10px; align-items: center; }
#pcHeader .pc-h-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; }
#pcHeader .pc-h-logo-img { display: block; width: 46px; height: 46px; object-fit: contain; }
#pcHeader .pc-h-title strong { font-size: 22px; font-weight: 800; letter-spacing: -.04em; color: #fff; overflow: visible; text-overflow: clip; }
#pcHeader .pc-h-tagline { display: none; font-size: 11px; font-weight: 500; color: #d3e2d5; max-width: none; overflow: visible; margin-top: 4px; white-space: nowrap; }
#pcHeader .pc-desktop-nav { grid-area: navigation; display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; min-width: 0; }
#pcHeader .pc-nav-link {
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #edf4e8;
    gap: 6px;
    transform: none;
    transition: color .15s, background .15s;
}
#pcHeader .pc-nav-icon { width: 19px; height: 19px; flex: 0 0 auto; }
#pcHeader .pc-nav-link:hover, #pcHeader .pc-nav-link[aria-expanded=true] { color: #fff; background: #ffffff14; transform: none; }
#pcHeader .pc-nav-link:is([aria-current], .is-active) { color: #efffdc; background: #83c75d24; box-shadow: inset 0 0 0 1px #83c75d, inset 0 -2px #83c75d; }
#pcHeader .pc-nav-overflow, #pcHeader .pc-more-menu { display: contents; }
#pcHeader .pc-more-btn, #pcHeader .pc-more-shortcuts, #pcHeader .pc-more-label { display: none; }
#pcHeader #pcRulesDd { order: 5; }
#pcHeader #pcHelpDd { order: 6; }
#pcHeader .pc-dd-caret, #pcHeader .pc-caret, #pcHeader .pc-more-btn > span { display: inline-block; font-size: 12px; color: #c7d9c9; transition: transform .15s; }
#pcHeader [aria-expanded=true] > :is(.pc-dd-caret, .pc-caret), #pcHeader .pc-more-btn[aria-expanded=true] > span { transform: rotate(180deg); }
#pcHeader .pc-header-actions { grid-area: actions; display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; }
#pcHeader :is(.pc-create-cta, .pc-desktop-login, .pc-mobile-cta) {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #b0f35b;
    border: 1px solid #91d646;
    color: #102a1b;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    box-shadow: none;
    white-space: nowrap;
}
#pcHeader :is(.pc-create-cta, .pc-desktop-login, .pc-mobile-cta):hover { background: #c3ff78; color: #102a1b; filter: none; }
#pcHeader .pc-create-cta { padding: 9px 12px; margin-right: 4px; }
#pcHeader .pc-create-short { display: none; }
#pcHeader :is(.pc-notif-btn, .pc-burger, .pc-profile-btn) {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #f7f8f3;
    box-shadow: none;
    transform: none;
}
#pcHeader :is(.pc-notif-btn, .pc-burger, .pc-profile-btn):hover { background: #ffffff14; border-color: #83c75d; box-shadow: none; transform: none; }
#pcHeader .pc-notif-btn { width: 44px; }
#pcHeader .pc-profile { display: block; min-width: 0; }
#pcHeader .pc-profile-btn { max-width: 208px; padding: 4px 8px; gap: 8px; background: #ffffff08; border-color: #83c75d; }
#pcHeader .pc-profile-avatar { width: 34px; height: 34px; background: #416d30; border: 1px solid #83c75d; color: #fff; font-size: 15px; box-shadow: none; }
#pcHeader .pc-profile-text { min-width: 0; line-height: 1.3; }
#pcHeader .pc-profile-name { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 14px; font-weight: 650; color: #fff; }
#pcHeader .pc-profile-menu { width: 320px; max-width: calc(100vw - 24px); max-height: min(720px, calc(100dvh - 90px)); overflow: auto; overscroll-behavior: contain; border-radius: 12px; }
#pcHeader .pc-profile-display-name { font-size: 15px; font-weight: 750; color: #173d2b; overflow-wrap: anywhere; }
#pcHeader .pc-profile-meta-user { font-size: 12px; font-weight: 500; color: #59685f; overflow-wrap: anywhere; }
#pcHeader .pc-profile-card-avatar { background: #173d2b; }
#pcHeader .pc-profile-organizations { margin: 4px 0; padding: 0; list-style: none; font-size: 12px; color: #506159; overflow-wrap: anywhere; }
#pcHeader .pc-profile-organizations li + li { margin-top: 4px; }
#pcHeader :is(.pc-dd-menu, .pc-notif-panel, .pc-profile-menu) { background: #fff; border-color: #dfe6dc; color: #173d2b; }
#pcHeader :is(.pc-dd-item, .pc-profile-item, .pc-panel-close) { min-height: 44px; font: inherit; font-size: 13px; color: #173d2b; border-radius: 7px; }
#pcHeader :is(.pc-dd-item, .pc-profile-item):hover { background: #edf4e8; }
#pcHeader .pc-dd-menu { border-radius: 12px; max-width: calc(100vw - 24px); padding: 8px; }
#pcHeader :is(#pcHelpMenu, #pcRulesMenu) { left: auto; right: 0; }
#pcHeader .pc-notif-panel { border-radius: 12px; }
#pcHeader .pc-notif-item { text-align: left; width: 100%; cursor: pointer; font: inherit; }
#pcHeader .pc-notif-item > span { display: block; }
#pcHeader .pc-notif-item-msg { font-size: 13px; }
#pcHeader .pc-notif-item-meta { font-size: 11px; }
#pcHeader .pc-notif-dot { background: #c83345; font-size: 10px; top: 2px; right: 1px; }
#pcHeader .pc-header-icon { width: 24px; height: 24px; }
#pcHeader .pc-header-subnav-wrap { max-width: 1680px; padding: 6px 28px; }
#pcHeader .pc-crumbs { padding: 2px 0; font-size: 12px; color: #d3e2d5; background: transparent; border: 0; box-shadow: none; }
#pcHeader .pc-burger { display: none; }
#pcHeader .pc-mobile-menu { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 64px); box-shadow: 0 14px 28px #0b2f231a; background: #fff; }
#pcHeader .pc-mobile-link { font-size: 14px; font-weight: 600; background: transparent; border-radius: 8px; }
#pcHeader .pc-mobile-group { padding: 0; border: 0; border-radius: 8px; }
#pcHeader .pc-mobile-group-title { background: #f7f8f3; font-size: 14px; font-weight: 600; }
#pcHeader .pc-mobile-sub { margin: 5px 0 8px 18px; }
#pcHeader .pc-mobile-user { box-shadow: none; }
#pcHeader :is(a, button, input):focus-visible { outline: 3px solid #3f713b; outline-offset: 3px; }
#pcHeader :is(.pc-nav-link, .pc-profile-btn, .pc-notif-btn, .pc-burger, .pc-h-brand-link, .pc-create-cta, .pc-desktop-login):focus-visible { outline-color: #b0f35b; }
#pcHeader :is(.pc-profile-item, .pc-dd-item):focus-visible { outline-offset: -2px; }
@media (min-width: 1700px) {
    #pcHeader .pc-header-wrap { grid-template-columns: 268px minmax(0, 1fr) auto; }
    #pcHeader .pc-h-tagline { display: block; }
}
@media (max-width: 1439px) {
    #pcHeader .pc-profile-text, #pcHeader .pc-profile-btn > .pc-caret { display: none; }
    #pcHeader .pc-profile-btn { width: 44px; padding: 4px; }
    #pcHeader .pc-header-wrap { gap: 16px; padding-inline: 20px; }
    #pcHeader .pc-nav-link { padding-inline: 7px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
    #pcHeader .pc-nav-learning, #pcHeader .pc-nav-live { display: none; }
    #pcHeader .pc-nav-overflow { display: block; position: relative; }
    #pcHeader .pc-more-btn { display: inline-flex; }
    #pcHeader .pc-more-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 310px; max-height: calc(100dvh - 90px); overflow: auto; padding: 10px; background: #fff; border: 1px solid #dfe6dc; border-radius: 12px; box-shadow: var(--pc-shadow-md); }
    #pcHeader .pc-more-menu.is-open { display: block; }
    #pcHeader .pc-more-shortcuts { display: block; }
    #pcHeader .pc-more-label { display: block; margin: 12px 12px 4px; color: #59685f; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
    #pcHeader .pc-more-menu .pc-dd-btn { display: none; }
    #pcHeader .pc-more-menu .pc-dd-menu { display: block; position: static; width: auto; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; animation: none; }
    #pcHeader .pc-more-menu .pc-dd-sep { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    #pcHeader .pc-header-wrap { grid-template-columns: 184px minmax(0, 1fr) auto; gap: 10px; padding-inline: 16px; }
    #pcHeader .pc-header-actions { gap: 5px; }
    #pcHeader .pc-create-full { display: none; }
    #pcHeader .pc-create-short { display: inline; }
    #pcHeader .pc-nav-link { padding-inline: 7px; }
}
@media (max-width: 767px) {
    #pcHeader .pc-header-wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions"; gap: 8px; height: 64px; min-height: 64px; padding: 10px 12px; }
    #pcHeader .pc-h-logo { width: 32px; height: 32px; }
    #pcHeader .pc-h-logo-img { width: 30px; height: 30px; }
    #pcHeader .pc-burger span { background: #edf4e8; }
    #pcHeader .pc-h-brand-link { gap: 7px; }
    #pcHeader .pc-h-title strong { font-size: 16px; letter-spacing: -.035em; }
    #pcHeader .pc-desktop-nav, #pcHeader .pc-create-cta, #pcHeader .pc-header-subnav { display: none; }
    #pcHeader .pc-desktop-login { display: none; }
    #pcHeader .pc-burger { display: flex; }
    #pcHeader .pc-header-actions { gap: 2px; }
    #pcHeader .pc-notif { display: block; }
    #pcHeader .pc-profile-menu, #pcHeader .pc-notif-panel { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
    #pcHeader *, #pcHeader *::before, #pcHeader *::after { animation: none !important; transition: none !important; }
}
