/* TecSkill top navigation: quiet actions, clear module selection and floating chrome. */
.ts-header.container-header { z-index: 1001 !important; isolation: isolate; }
.ts-header .header-track { align-items: center; gap: 4px; }
.ts-header .header-action { border: 0 !important; padding-inline: 6px; }
.ts-header .navbar-custom-menu:empty, .ts-header .button-circle:empty { display: none !important; }
.ts-header .builder-dropdown-menu { gap: 4px; flex-shrink: 0; }
.ts-header .builder-profile-menu { width: auto; min-width: 112px; max-width: 168px; }
.ts-header .header-profile-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-header .button-circle, .ts-header a.button-circle, .ts-header #chat-start-icon.button-circle {
    width: 36px; height: 36px; min-width: 36px; margin: 0; border-radius: 10px !important; border: 0 !important;
    color: var(--ink-muted) !important; background: transparent !important; box-shadow: none !important;
}
.ts-header .button-circle i, .ts-header a.button-circle i { color: inherit !important; font-size: 15px; }
.ts-header .button-circle:hover, .ts-header a.button-circle:hover, .ts-header #chat-start-icon.button-circle:hover { color: var(--accent) !important; background: var(--accent-tint) !important; }
.ts-header .button-circle[aria-expanded="true"] { color: var(--accent) !important; background: var(--accent-tint) !important; }
.ts-header #envelope_messages:has(> a), .ts-header #envelope_notifications:has(> a) { width: auto; height: auto; }
.ts-header #navbar-builder-top-menu-collapse { align-self: stretch; min-width: 0; border: 0 !important; background: transparent !important; }
.ts-header #navbar-builder-top-menu-collapse #top-menu { height: 100%; min-width: 0; gap: 3px; padding: 6px 2px; align-items: center; background: transparent !important; border: 0 !important; }
.ts-header #top-menu .button-circle-label {
    display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 34px; height: auto; padding: 8px 10px;
    border: 0 !important; border-radius: 10px; background: transparent !important; color: var(--ink-muted) !important; box-shadow: none;
    font: 500 12px/18px var(--font-sans); white-space: nowrap;
}
.ts-header #top-menu .button-circle-label i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 18px; margin: 0; padding: 0; font-size: 13px; border: 0 !important; border-radius: 0; background: transparent !important; color: inherit !important; }
.ts-header #top-menu .button-circle-label:hover { color: var(--ink-title) !important; background: var(--accent-tint) !important; }
.ts-header #top-menu .button-circle-label.checked { background: var(--accent) !important; color: var(--on-primary) !important; font-weight: 600; }
.ts-header .arrow-menus-scroll, #navbar-builder-top-submenu-collapse .arrow-menus-scroll { border: 0 !important; background: transparent !important; flex-shrink: 0; }
.ts-header .arrow-menus-scroll a, #navbar-builder-top-submenu-collapse .arrow-menus-scroll a { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 34px; border-radius: 8px; color: var(--ink-muted) !important; }
.ts-header .arrow-menus-scroll a:hover, #navbar-builder-top-submenu-collapse .arrow-menus-scroll a:hover { background: var(--accent-tint); color: var(--accent) !important; }
/* This bar remains outside the header stacking context so header menus pass above it. */
#navbar-builder-top-submenu-collapse[hidden] { display: none !important; }
.master-container > #navbar-builder-top-submenu-collapse {
    position: relative; z-index: 10; box-sizing: border-box; width: calc(100% - 24px); margin: 0 12px 12px; min-height: 48px; padding: 6px;
    border: 1px solid var(--glass-line); border-radius: 18px; background: var(--glass-chrome) !important; box-shadow: var(--shadow-shell);
    backdrop-filter: blur(var(--glass-blur,20px)); -webkit-backdrop-filter: blur(var(--glass-blur,20px));
}
#navbar-builder-top-submenu-collapse #top-submenu { background: transparent !important; border: 0 !important; }
#navbar-builder-top-submenu-collapse #top-submenu > ul { height: auto !important; min-height: 34px; padding: 0 2px; gap: 4px; }
#navbar-builder-top-submenu-collapse #top-submenu li { height: auto; flex-shrink: 0; }
#navbar-builder-top-submenu-collapse #top-submenu li > a {
    display: flex; align-items: center; gap: 8px; min-height: 34px; height: auto; padding: 8px 10px; border: 0; border-radius: 10px;
    background: transparent; color: var(--ink-muted) !important; font: 500 12px/18px var(--font-sans); text-decoration: none;
}
#navbar-builder-top-submenu-collapse #top-submenu li > a i { color: inherit !important; font-size: 13px; margin: 0; width: 16px; text-align: center; }
#navbar-builder-top-submenu-collapse #top-submenu li > a:hover { color: var(--ink-title) !important; background: var(--accent-tint); }
#navbar-builder-top-submenu-collapse #top-submenu li.checked > a { background: var(--accent-tint) !important; color: var(--accent) !important; font-weight: 600; }
#navbar-builder-top-submenu-collapse #top-submenu .sub::after { margin: 0 0 0 2px; }
.ts-header .fast-drop { position: relative; }
.ts-header .fast-drop-open { z-index: 1060 !important; border-radius: 14px; background: var(--surface); color: var(--ink); }
.ts-header .fast-drop-open a { color: var(--ink) !important; min-height: 36px; }
.ts-header .fast-drop-open a:hover { color: var(--accent) !important; background: var(--accent-tint); }
.ts-header .fast-drop-open a i { color: inherit !important; }
.ts-header a:focus-visible, .ts-header button:focus-visible, #navbar-builder-top-submenu-collapse a:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: -2px; }
/* Shared style for the positioned submenu surface managed by the topbar adapter. */
.tecskill-topbar-popover { z-index: 1065; box-sizing: border-box; list-style: none; margin: 0; padding: 6px; max-width: calc(100vw - 24px); min-width: 208px; max-height: min(420px,70dvh); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: 0 16px 36px -14px rgba(15,23,42,.32); }
.tecskill-topbar-popover li { list-style: none; }
.tecskill-topbar-popover a { display: flex; align-items: center; gap: 8px; padding: 10px; min-height: 36px; border-radius: 8px; color: var(--ink); font: 500 12px/18px var(--font-sans); text-decoration: none; }
.tecskill-topbar-popover a:hover, .tecskill-topbar-popover a:focus-visible { background: var(--accent-tint); color: var(--accent); }
@media (min-width: 992px) {
    .ts-header .company-logo { padding-inline: 10px; }
    .ts-header .header-profile-photo { width: 32px; height: 32px; }
    .ts-header .header-logo { overflow: visible; }
}
@media (max-width: 991px) {
    .ts-header .builder-profile-menu { display: flex !important; width: 100%; max-width: none; min-height: 56px; padding: 8px 12px; }
    .ts-header .builder-profile-menu > .fast-drop { width: 100%; }
    .ts-header .builder-profile-menu .fast-drop-label { min-height: 44px; }
    .ts-header .header-profile-name { max-width: calc(100vw - 140px); }
    .ts-header .header-action.builder-menu { min-height: 44px; }
    .ts-header .header-action.builder-dropdown-menu { padding: 6px; }
    .ts-header .button-circle, .ts-header a.button-circle, .ts-header #chat-start-icon.button-circle { min-width: 44px; width: 44px; height: 44px; }
    .ts-header #navbar-builder-top-menu-collapse #top-menu { gap: 2px; }
    .ts-header #top-menu .button-circle-label { min-height: 44px; }
    .ts-header #navbar-builder-top-submenu-collapse.builder-top-module-menu-mobile { border: 1px solid var(--glass-line); border-radius: 14px; padding: 4px; background: var(--surface) !important; }
    #navbar-builder-top-submenu-collapse #top-submenu li > a { min-height: 44px; }
    .ts-header .fast-drop-open a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ts-header #top-menu .button-circle-label { transition: none; } }
/* The adapter moves an opened menu to body, escaping the two scroll containers. */
.ts-header .fast-drop > .fast-drop-open, #top-submenu li > ul { display: none !important; }
.tecskill-topbar-popover.is-open { display: block !important; }
.tecskill-topbar-popover::after { display: none !important; }
.tecskill-topbar-popover li > ul { display: none !important; }
.tecskill-topbar-popover a { min-height: 44px; box-sizing: border-box; color: var(--ink) !important; }
.tecskill-topbar-popover a i { width: 16px; flex: 0 0 16px; color: currentColor !important; font-size: 14px; }
.tecskill-topbar-popover a.sub::after { content: '\f105'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: auto; color: currentColor; }
.tecskill-topbar-popover a:hover, .tecskill-topbar-popover a:focus-visible { color: var(--accent) !important; }
.tecskill-topbar-popover a:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: -2px; }
