/* App shell and the sidebar.
   Files in css/ load in name order (index.html); later files win on equal selectors. */
/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.main { padding: 28px 36px 80px; max-width: 1480px; width: 100%; }
.topbar { display: none; }

/* ---------- Sidebar ---------- */
/* Only the nav scrolls; the logo stays on top and the foot (Install app and below) at the bottom. */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px; padding: 26px 18px 20px;
  background: var(--bg-2); border-right: 1px solid var(--border);
  scrollbar-width: none;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 0 8px; }
.logo-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(255, 122, 217, .45)); animation: twinkle 4s ease-in-out infinite; }
.logo span { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.logo b { font-weight: 800; background: var(--holo-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3 {
  margin-left: auto; font: 700 10px/1 var(--mono); font-style: normal; padding: 5px 7px; border-radius: 7px;
  color: var(--text); border: 1px solid var(--border-2); background: var(--surface);
}
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.86); } }

.side-nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 4px; margin: 0 -6px; padding: 0 6px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.side-nav::-webkit-scrollbar { display: none; }
.side-label { margin: 14px 10px 6px; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.side-item {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 10px; row-gap: 7px;
  padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--muted);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.side-item:hover { background: var(--surface); color: var(--text); }
.side-item.active { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--card-shadow); }
.side-icon { width: 12px; height: 12px; border-radius: 50%; justify-self: center; background: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 20%, transparent); }
.holo-dot { background: var(--holo); box-shadow: 0 0 12px rgba(255, 122, 217, .5); }
.side-name { font-weight: 650; font-size: 14px; line-height: 1.25; }
.side-pct { font: 700 11px/1 var(--mono); color: var(--faint); }
.side-item.active .side-pct { color: var(--text); }
.side-bar { grid-column: 2 / 4; height: 3px; border-radius: 9px; background: var(--border); overflow: hidden; }
.side-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--g, var(--holo)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

