/* sidebar.css */
.side { grid-area: side; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-top { background: var(--panel); border-radius: 10px; padding: 8px 6px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 14px; font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.brand { cursor: pointer; }
.brand img { width: 32px; height: 32px; }
.brand .g { color: var(--gold); }

.side-nav { display: flex; flex-direction: column; }
.side-nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px; border-radius: 6px;
  color: var(--muted); font-weight: 700; font-size: 0.96rem; cursor: pointer;
  transition: color .15s;
}
.side-nav a:hover, .side-nav a.is-active { color: var(--text); }
.side-nav a svg { width: 22px; height: 22px; flex: 0 0 auto; }

.side-lib {
  background: var(--panel); border-radius: 10px;
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.lib-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px; color: var(--muted); font-weight: 800; font-size: 0.92rem;
}
.lib-list { list-style: none; margin: 0; padding: 4px 8px 12px; overflow-y: auto; }
.lib-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background .15s;
}
.lib-list li:hover, .lib-list li.is-active { background: var(--card-hover); }
.lib-cover {
  width: 46px; height: 46px; border-radius: 6px; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
}
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-cover svg { width: 24px; height: 24px; }
.lib-meta { min-width: 0; }
.lib-name { font-weight: 600; font-size: 0.92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-sub { font-size: 0.78rem; color: var(--muted); }
