/* SMSAPP HC-863 — only the shared authenticated sidebar, screen media. */
@media screen {
  body.app-view > .app-shell > #sidebar.sidebar {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #647b91 transparent;
  }
  body.app-view > .app-shell > #sidebar.sidebar > .side-brand {
    flex: 0 0 auto;
    min-width: 0;
  }
  body.app-view > .app-shell > #sidebar.sidebar > nav {
    flex: 0 0 auto;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    padding-bottom: 12px;
  }
  body.app-view > .app-shell > #sidebar.sidebar > .sidebar-bottom {
    position: static;
    flex: 0 0 auto;
    min-width: 0;
    margin-top: auto;
    padding: 11px 12px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #ffffff24;
    background: #ffffff06;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  body.app-view > .app-shell > #sidebar.sidebar > .sidebar-bottom > small {
    display: block;
    margin: 0;
    padding: 0 3px;
    color: #a9bfd1;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
    overflow-wrap: anywhere;
  }
  body.app-view > .app-shell > #sidebar.sidebar > .sidebar-bottom > a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #ffffff24;
    border-radius: 9px;
    background: #ffffff0a;
    color: #e0edf7;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
  }
  body.app-view > .app-shell > #sidebar.sidebar > .sidebar-bottom > a::before {
    content: '';
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9d3e6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5M15 12H3M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3C/svg%3E");
  }
  body.app-view > .app-shell > #sidebar.sidebar > .sidebar-bottom > a:hover {
    background: #ffffff16;
    border-color: #ffffff48;
    color: #fff;
  }
  body.app-view > .app-shell > #sidebar.sidebar a:focus-visible,
  body.app-view > .app-shell > #sidebar.sidebar summary:focus-visible {
    outline: 2px solid #9cddf4;
    outline-offset: -2px;
  }
  body.app-view > .app-shell > #sidebar.sidebar::-webkit-scrollbar { width: 6px; }
  body.app-view > .app-shell > #sidebar.sidebar::-webkit-scrollbar-thumb { background: #647b91; border-radius: 8px; }
  body.app-view > .app-shell > #sidebar.sidebar::-webkit-scrollbar-track { background: transparent; }
}
