/* Sidebar — mobile: hidden, desktop: left column */
.sidebar { display: none; }
.main-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }

@media (min-width: 1024px) {
  .app {
    flex-direction: row !important;
    max-width: 1100px !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: .5px solid #E0DAFD;
    overflow-y: auto;
  }

  .sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 16px;
    border-bottom: .5px solid #F0EFFE;
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  .sb-name {
    font-family: 'Georgia', serif;
    font-size: 18px;
    color: #1A1829;
  }

  .sb-nav { display: flex; flex-direction: column; }

  .si {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #8888A8;
    width: 100%;
    text-align: left;
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
  }

  .si:hover { background: #F8F7FF; }
  .si.active { background: #F0EFFE; color: #4A3DB8; }

  /* main-wrap: flex:1 in a row container, scrollable on pages with long content */
  .main-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
}
