/* Keep navigation scrollable while support stays within the viewport. */
.app > .topbar { position: sticky; top: 0; z-index: 20; background: #fff; }
.app > .sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 76px);
  height: calc(100dvh - 76px);
  min-height: 0;
}
.sidebar > .sidebar-head { flex: none; }
.sidebar > .nav { min-height: 0; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; flex: 0 1 auto; overscroll-behavior: contain; }
.sidebar > .nav a { min-width: 0; }
.sidebar > .nav .nav-text { min-width: 0; text-overflow: ellipsis; }
.sidebar > .support {
  flex: none;
  margin-top: auto;
  padding: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}
.sidebar > .nav::after { content: ''; height: 14px; }
.support .support-links { display: grid; gap: 2px; }
.support .support-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 4px 0;
  color: #18221d;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
}
.support .support-link:hover { color: #16883e; text-decoration: underline; }
.support .support-link:focus-visible { outline: 2px solid #16883e; outline-offset: 2px; border-radius: 4px; }
.support-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.support-short { display: none; }
.sidebar-collapsed .sidebar > .support { display: block; border: 0; padding: 0; }
.sidebar-collapsed .support > strong,
.sidebar-collapsed .support > p,
.sidebar-collapsed .support-label { display: none; }
.sidebar-collapsed .support-link { justify-content: center; min-height: 44px; }
@media (min-width: 721px) and (max-height: 560px) {
  .sidebar > .support { padding: 8px; }
  .support > p { display: none; }
  .support .support-link { min-height: 32px; }
}
@media (max-width: 720px) {
  .app > .topbar { height: 68px; }
  body.sidebar-collapsed .app > .topbar { grid-template-columns: 1fr auto !important; }
  .app > .sidebar,
  .sidebar-collapsed .app > .sidebar {
    position: fixed;
    inset: auto 12px calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 9;
    height: auto;
    padding: 0;
    border: 0;
  }
  .app > .sidebar > .sidebar-head,
  .app > .sidebar > .nav,
  .support > strong,
  .support > p,
  .support-address { display: none; }
  .sidebar > .support,
  .sidebar-collapsed .sidebar > .support {
    display: block;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid var(--line, #dedfdc);
    border-radius: 13px;
    box-shadow: 0 4px 16px #00000008;
  }
  .support .support-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .support .support-link { justify-content: center; min-height: 44px; font-size: 12px; }
  .support .support-label,
  .sidebar-collapsed .support .support-label,
  .support .support-short { display: inline; }
  .app > main { padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
  .app > .mobile-nav { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media print {
  .app > .sidebar,
  .app > .mobile-nav { display: none; }
  .app > .topbar { position: static; }
}
