/* Application navigation, kept separate from the page styles. */
.app-topbar { position:relative; z-index:30; margin-bottom:26px; border:1px solid #193d5a; border-radius:18px; background:#09273f; color:#fff; box-shadow:0 8px 24px rgba(3,27,47,.12); }
.app-brand-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 24px; }
.app-brand { display:flex; align-items:center; gap:14px; min-width:0; color:#fff; }
.app-brand:hover { color:#fff; text-decoration:none; }
.app-brand-logo { display:block; width:116px; height:40px; object-fit:contain; padding:6px 10px; background:#030b12; border:1px solid #547184; border-radius:8px; }
.app-brand-title { display:block; margin:0; color:#fff; font:700 19px/1.2 Arial,Helvetica,sans-serif; letter-spacing:-.02em; }
.app-brand-caption { display:block; margin-top:3px; color:#a9c3d5; font-size:12px; line-height:1.3; }
.app-topbar-actions { display:flex; align-items:center; gap:20px; flex-shrink:0; }
.app-session { display:flex; align-items:center; gap:7px; color:#c1d5e2; font-size:12px; }
.app-session > span { width:6px; height:6px; border-radius:50%; background:#63d7ac; }
.app-signout { color:#d4e5ef; font-size:13px; padding:8px 0; white-space:nowrap; }
.app-signout:hover { color:#fff; }
.app-primary-nav { display:flex; align-items:stretch; gap:6px; padding:8px 16px; border-top:1px solid #29465c; border-radius:0 0 17px 17px; background:#0c2d47; }
.app-topbar .app-nav-link,.app-nav-menu > summary { display:flex; align-items:center; justify-content:flex-start; gap:9px; min-height:42px; padding:11px 14px; border:1px solid transparent; border-radius:8px; color:#c3d6e3; background:transparent; font:600 14px/1.25 Arial,Helvetica,sans-serif; text-decoration:none; white-space:nowrap; cursor:pointer; list-style:none; }
.app-nav-menu > summary::-webkit-details-marker { display:none; }
.app-topbar .app-nav-link:hover,.app-nav-menu > summary:hover,.app-nav-menu[open] > summary { color:#fff; background:#1a405b; text-decoration:none; }
.app-topbar .app-nav-link.is-active,.app-nav-menu.is-active > summary { color:#fff; background:#195073; border-color:#3d7da2; box-shadow:inset 0 -2px 0 #78d6eb; }
.app-nav-icon { width:18px; height:18px; flex-shrink:0; opacity:.9; }
.app-nav-chevron { width:6px; height:6px; margin:0 2px 3px 5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform .15s; }
.app-nav-menu[open] > summary .app-nav-chevron { margin-top:4px; transform:rotate(225deg); }
.app-nav-menu { position:relative; }
.app-nav-dropdown { position:absolute; top:calc(100% + 10px); left:0; z-index:35; width:264px; padding:9px; border:1px solid #c7d8e4; border-radius:12px; background:#fff; color:#193a52; box-shadow:0 14px 34px rgba(3,27,47,.2); }
.app-nav-group-label { display:block; padding:7px 10px 9px; color:#657f92; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.app-nav-dropdown a { display:block; padding:11px 10px; border-radius:7px; color:#17374f; font-size:14px; font-weight:650; text-decoration:none; }
.app-nav-dropdown a small { display:block; margin-top:4px; color:#657a8a; font-size:12px; font-weight:400; line-height:1.4; }
.app-nav-dropdown a:hover,.app-nav-dropdown a[aria-current="page"] { background:#edf6fb; color:#00588b; text-decoration:none; }
.app-topbar :is(a,button,summary):focus-visible { outline:3px solid #7ed9ef; outline-offset:3px; }
.app-nav-dropdown a:focus-visible { outline-color:#007ba8; outline-offset:0; }
.app-menu-toggle { display:none; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 11px; border:1px solid #52768e; border-radius:8px; background:#143c57; color:#fff; font:600 13px/1 Arial,Helvetica,sans-serif; cursor:pointer; }
.app-menu-toggle[hidden] { display:none !important; }
.app-topbar [hidden] { display:none !important; }
@media (max-width:1000px) {
    .app-brand-row { padding:14px 18px; }
    .app-menu-toggle:not([hidden]) { display:inline-flex; }
    .app-topbar[data-nav-enhanced="true"] .app-primary-nav:not(.is-expanded) { display:none; }
    .app-primary-nav { flex-direction:column; align-items:stretch; gap:4px; padding:10px 12px 12px; }
    .app-nav-menu > summary,.app-topbar .app-nav-link { min-height:44px; }
    .app-nav-dropdown { position:static; width:auto; margin:4px 4px 8px 36px; box-shadow:none; }
    .app-nav-group-label { display:none; }
    .app-nav-chevron { margin-left:auto; }
    .app-nav-menu[open] > summary .app-nav-chevron { margin-top:3px; }
}
@media (max-width:520px) {
    .app-topbar { border-radius:14px; margin-bottom:20px; }
    .app-brand-row { gap:10px; padding:12px; }
    .app-brand { gap:10px; }
    .app-brand-logo { width:104px; height:34px; padding:5px 7px; }
    .app-brand-title { font-size:16px; }
    .app-brand-caption { font-size:10px; }
    .app-topbar-actions { gap:12px; }
    .app-session { display:none; }
    .app-signout { font-size:12px; }
    .app-menu-toggle { gap:5px; padding:8px; }
    .app-menu-toggle svg { width:16px; }
}
@media (max-width:460px) {
    .app-brand > div { display:none; }
    .app-brand { gap:0; }
}
@media (max-width:380px) {
    .app-brand-caption { display:none; }
    .app-brand { gap:0; }
    .app-brand-title { display:none; }
    .app-topbar-actions { gap:9px; }
    .app-menu-toggle { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { .app-nav-chevron { transition:none; } }
@media print { .app-topbar { display:none !important; } }
