.app-sidebar { background: linear-gradient(180deg, #113355 0%, #173f67 100%); color: #fff; padding: 24px 18px; position: sticky; top: 0; align-self: start; min-height: 100vh; }
.app-brand { border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 20px; padding-bottom: 18px; }
.app-nav { display: grid; gap: 8px; }
.app-nav__group { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.04); overflow: hidden; }
.app-nav__group[open] { background: rgba(255,255,255,0.08); }
.app-nav__group-toggle { list-style: none; padding: 13px 14px; color: #fff; font-weight: 700; cursor: pointer; }
.app-nav__group-toggle::-webkit-details-marker { display: none; }
.app-nav__group-toggle::after { content: "+"; float: right; color: rgba(255,255,255,0.72); }
.app-nav__group[open] .app-nav__group-toggle::after { content: "-"; }
.app-nav__children { display: grid; gap: 6px; padding: 0 10px 10px; }
.app-nav__link { text-decoration: none; padding: 12px 14px; border-radius: 12px; color: rgba(255,255,255,0.86); transition: background 0.2s ease, color 0.2s ease; }
.app-nav__link--child { padding: 10px 12px 10px 18px; font-size: 14px; color: rgba(255,255,255,0.8); }
.app-nav__link:hover, .app-nav__link.is-active { background: rgba(255,255,255,0.14); color: #fff; }
.app-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-around; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 37, 64, 0.96); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.08); }
.app-bottom-nav__link { flex: 1 1 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,0.82); text-decoration: none; border-radius: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.app-bottom-nav__link.is-active, .app-bottom-nav__link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.app-bottom-nav__icon { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); font-size: 12px; font-weight: 800; }
.app-bottom-nav__menu { position: relative; flex: 1 1 0; }
.app-bottom-nav__menu summary { list-style: none; cursor: pointer; }
.app-bottom-nav__menu summary::-webkit-details-marker { display: none; }
.app-bottom-nav__dropup { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 24px)); padding: 12px; border-radius: 18px; background: #ffffff; box-shadow: 0 18px 50px rgba(9, 26, 43, 0.22); }
.app-bottom-nav__scroll { max-height: min(65vh, 420px); overflow-y: auto; display: grid; gap: 8px; }
.app-bottom-nav__group { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #e5edf5; }
.app-bottom-nav__group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.app-bottom-nav__group-title { color: #5b7187; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 12px 0; }
.app-bottom-nav__dropup a { text-decoration: none; color: #0d3558; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.app-bottom-nav__dropup a:hover { background: #eef5fb; }

@media (max-width: 900px) {
  .app-sidebar { position: static; min-height: auto; display: none; }
  .app-bottom-nav { display: flex; }
}
