/* TecSkill shell: navigation and identity, shared with the token-mobile theme4 shell. */
.tecskill-symbol { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.simulate-logo { display: flex; align-items: center; gap: 10px; background-image: none !important; padding-left: 12px; }
.container-login .panel-login .info-login .login-subtitle { background-image: none; color: var(--sidebar-ink-active); font-size: 18px; line-height: 1.4; }
.simulate-logo .logo-name { min-width: 0; }
button.toggle-menu, button.toggle-top-menu { background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; }
.toggle-menu:focus-visible, .toggle-top-menu:focus-visible, .master-menu-content a:focus-visible, .tecskill-native-drawer a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.tecskill-login-badge { display: block; object-fit: contain; margin: 20px auto; }
.tecskill-login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px; color: var(--ink-title); font-weight: 600; font-size: 18px; }
.tecskill-login-brand small { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.tecskill-menu-backdrop[hidden] { display: none !important; }
.tecskill-menu-backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(8,11,20,.56); border: 0; padding: 0; cursor: pointer; }
.tecskill-native-drawer { display: none; }
@media (max-width: 991px) {
    .master-menu-content .container-submenu a, .master-menu-content .container-menu a { min-height: 44px; }
    .container-header .button-circle { min-width: 44px; min-height: 44px; }
    .tecskill-drawer-open { overflow: hidden !important; }
    .container-header { z-index: 1001 !important; }
    .layout-mobile .toggle-menu { display: inline-flex !important; }
    .layout-mobile .header-logo { display: flex; align-items: center; flex: 1; min-width: 0; }
    .layout-mobile .simulate-logo { margin-left: 0 !important; gap: 8px; }
    .layout-mobile .logo-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .layout-mobile .company-logo { min-width: 0; }
    .master-menu-content, .tecskill-native-drawer { position: fixed !important; inset: var(--header-height, 56px) auto 0 0 !important; width: min(320px, calc(100vw - 48px)) !important; max-width: calc(100vw - 48px); height: auto !important; z-index: 1000 !important; background: var(--sidebar-bottom); color: var(--sidebar-ink); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(-100%); }
    .master-menu-content.open, .tecskill-native-drawer.open { visibility: visible; transform: translateX(0); display: flex !important; }
    .tecskill-native-drawer.open { display: block !important; padding: 16px 8px; }
    .tecskill-native-drawer a { color: var(--sidebar-ink); min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
    .tecskill-native-drawer ul { list-style: none; padding-left: 12px; }
    .tecskill-native-drawer > ul { padding-left: 0; }
    .tecskill-native-drawer li.active > a, .tecskill-native-drawer a:hover { background: var(--sidebar-indicator); color: var(--sidebar-ink-active); }
    .layout-mobile .nav.navbar { display: flex; align-items: center; flex-wrap: nowrap; min-height: 56px !important; height: 56px !important; background: var(--surface) !important; color: var(--ink-title); }
    .layout-mobile .nav.navbar .navbar-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px !important; font-size: 16px; min-width: 0; color: var(--ink-title) !important; line-height: 1.2; }
    .layout-mobile .nav.navbar .toggle-menu { color: var(--ink-title); }
    .layout-mobile .nav.navbar .notifications { margin-left: auto; }
    .builder-template-login.layout-mobile #wrapper { width: min(100% - 24px, 440px) !important; margin: 24px auto !important; }
}
@media (max-width: 991px) {
    /* Menu factory emits a fixed inline height intended for the desktop sidebar. */
    .tecskill-native-drawer > .list { height: auto !important; overflow: visible !important; }
    .tecskill-native-drawer .ml-menu { display: none; }
    .tecskill-native-drawer .header { padding: 10px 14px; color: var(--sidebar-ink); font-size: 12px; }
}
/* The controller logo remains visible when the desktop welcome panel is collapsed. */
#login-wrapper .login-medium-logo { background: url('../../../images/tecskill/tecskill-horizontal-transparent.png') center / contain no-repeat; height: 96px; max-width: 260px; margin: 0 auto; }
.builder-template-login #login-wrapper { margin-top: 20px !important; }
/* A token-mobile session keeps its drawer at tablet/landscape widths too. */
@media (min-width: 992px) {
    .layout-mobile .tecskill-native-drawer { position: fixed; inset: 56px auto 0 0; width: 320px; max-width: calc(100vw - 48px); z-index: 1000; background: var(--sidebar-bottom); color: var(--sidebar-ink); overflow-y: auto; padding: 16px 8px; }
    .layout-mobile .tecskill-native-drawer.open { display: block; }
    .layout-mobile .tecskill-native-drawer > .list { height: auto !important; overflow: visible !important; }
    .layout-mobile .tecskill-native-drawer .ml-menu { display: none; }
    .layout-mobile .tecskill-native-drawer ul { list-style: none; padding-left: 12px; }
    .layout-mobile .tecskill-native-drawer a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 44px; color: var(--sidebar-ink); }
    .layout-mobile .nav.navbar { display: flex; align-items: center; min-height: 56px; background: var(--surface); color: var(--ink-title); }
    .layout-mobile .nav.navbar .toggle-menu { display: inline-flex; }
    .layout-mobile .nav.navbar .navbar-brand { display: flex; align-items: center; gap: 8px; color: var(--ink-title); padding: 0 8px !important; font-size: 18px; }
    .layout-mobile .nav.navbar .notifications { margin-left: auto; }
    .layout-mobile.tecskill-drawer-open { overflow: hidden !important; }
}
