#app-navigation { min-height: 64px; }
.app-navigation, .app-navigation * { box-sizing: border-box; min-width: 0; letter-spacing: 0; }
.app-navigation {
    color: #d4d9df;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 20px;
}
.app-navigation a { text-decoration: none; cursor: pointer; }
.app-navigation a[aria-disabled="true"] { color: #8f969e; cursor: default; opacity: .65; }
.app-navigation a:focus-visible, .app-navigation button:focus-visible, .app-navigation summary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -3px;
}
.app-nav-bar { background: #1b1e22; border-bottom: 1px solid #363b42; }
.app-nav-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.app-nav-brand { flex: 0 0 auto; color: #e5eaf0; font-size: 18px; font-weight: 650; white-space: nowrap; }
.app-nav-brand:hover { color: #bfdbfe; }
.app-nav-primary { display: flex; align-items: center; gap: 4px; flex: 1; }
.app-nav-primary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    color: #bfc6d0;
    white-space: nowrap;
}
.app-nav-primary-link:hover:not([aria-disabled]) { background: #292e34; color: #f3f4f6; }
.app-nav-primary-link.is-current { background: #2b3745; color: #dbeafe; }
.app-nav-utilities { margin-left: auto; display: flex; align-items: center; flex: 0 0 auto; }
.app-nav-status { font-size: 12px; color: #a9b2bd; white-space: nowrap; }
.app-nav-status #status-indicator { display: flex; align-items: center; gap: 8px; }
.app-nav-status #status-indicator > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; animation: none; }
.app-nav-status #status-indicator > span:last-child { font-size: 12px; color: #b9c1cb; }
.app-nav-secondary { background: #171a1e; border-bottom: 1px solid #363b42; }
.app-nav-secondary-inner { display: flex; align-items: stretch; gap: 20px; max-width: 1280px; padding: 0 24px; margin: auto; }
.app-nav-secondary-link {
    display: flex;
    align-items: center;
    height: 42px;
    border-bottom: 2px solid transparent;
    padding: 0 4px;
    color: #aeb8c5;
    white-space: nowrap;
}
.app-nav-secondary-link:hover:not([aria-disabled]) { color: #f3f4f6; }
.app-nav-secondary-link.is-current { color: #dbeafe; border-bottom-color: #93c5fd; }
.app-nav-current-title { display: none; color: #c8d1db; }
.app-nav-icon-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
}
.app-nav-icon-button:hover { background: #2c3138; }
.app-nav-icon-button:active { background: #363d47; }
.app-nav-icon-button::after {
    content: attr(aria-label);
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #252a31;
    border: 1px solid #59616d;
    border-radius: 4px;
    padding: 4px 8px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 2;
}
@media (hover: hover) { .app-nav-icon-button:hover::after { display: block; } }
.app-nav-icon { display: block; width: 20px; height: 20px; filter: invert(1); pointer-events: none; flex: 0 0 20px; }
#app-nav-toggle { display: none; }
.app-nav-drawer {
    position: fixed;
    inset: 0;
    width: min(360px, 100%);
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-left: 1px solid #444b55;
    border-radius: 0;
    background: #1b1e22;
    color: #d4d9df;
}
.app-nav-drawer[open] { display: flex; flex-direction: column; }
.app-nav-drawer::backdrop { background: rgb(0 0 0 / 55%); }
.app-nav-drawer-header { flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; border-bottom: 1px solid #363b42; }
.app-nav-drawer-header h2 { font-size: 16px; font-weight: 600; line-height: 24px; margin: 0; }
.app-nav-mobile { padding: 12px 16px 24px; overflow-y: auto; overscroll-behavior: contain; }
.app-nav-mobile-single, .app-nav-mobile-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    color: #c3ccd7;
    border-radius: 4px;
}
.app-nav-mobile-group { border: 0; border-radius: 0; background: transparent; }
.app-nav-mobile-group > summary { cursor: pointer; list-style: none; }
.app-nav-mobile-group > summary::-webkit-details-marker { display: none; }
.app-nav-mobile-group > summary:hover, .app-nav-mobile-single:hover:not([aria-disabled]) { background: #292e34; }
.app-nav-mobile-group > summary.is-current-group { color: #dbeafe; }
.app-nav-mobile-group[open] > summary .app-nav-icon { transform: rotate(180deg); }
.app-nav-mobile-pages { border-left: 1px solid #414a56; margin: 2px 0 8px 16px; padding: 0 0 0 8px; display: grid; gap: 2px; }
.app-nav-mobile-link { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 4px; color: #aeb8c5; }
.app-nav-mobile-link:hover:not([aria-disabled]) { background: #292e34; color: #f3f4f6; }
.app-nav-mobile-single.is-current, .app-nav-mobile-link.is-current { background: #2b3745; color: #dbeafe; }
html.app-nav-open { overflow: hidden; }
@media (max-width: 899px) {
    .app-nav-inner { padding: 0 16px; gap: 16px; }
    .app-nav-primary, .app-nav-secondary, .app-nav-status { display: none; }
    .app-nav-current-title { display: block; flex: 1; text-align: right; white-space: nowrap; }
    #app-nav-toggle { display: inline-flex; }
}
