app-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
app-list > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#sidebar-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
#sidebar-header .title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
#sidebar-header .stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
#sidebar-header .stats span strong {
  font-size: 14px;
}
#sidebar-header .stats span strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
#app-search {
  padding: 10px 12px;
  flex-shrink: 0;
  position: relative;
}
#app-search input {
  width: 100%;
  padding: 9px 30px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}
#app-search input:focus {
  border-color: rgba(141, 208, 208, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#app-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
#app-search .app-search-clear {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 4px;
}
#app-search .app-search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
#app-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 12px;
}
#app-list::-webkit-scrollbar {
  width: 4px;
}
#app-list::-webkit-scrollbar-track {
  background: transparent;
}
#app-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
}
.app-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.app-item.active {
  background: rgba(141, 208, 208, 0.12);
  color: #8dd0d0;
}
.app-item .num {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  min-width: 28px;
  font-size: 13px;
  transition: color 0.2s;
}
.app-item.active .num {
  color: rgba(141, 208, 208, 0.7);
}
.app-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-item .pct {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
  display: inline-block;
}
.progress-dot.done {
  background: var(--success);
}
.progress-dot.partial {
  background: var(--warning);
}
.progress-dot.empty {
  background: rgba(255, 255, 255, 0.12);
}
.app-item.level-1 {
  background: rgba(232, 93, 106, 0.12);
}
.app-item.level-1 .num {
  color: #f59e9e;
}
.app-item.level-2 {
  background: rgba(251, 146, 60, 0.12);
}
.app-item.level-2 .num {
  color: #fbbf6e;
}
.app-item.level-3 {
  background: rgba(251, 191, 36, 0.12);
}
.app-item.level-3 .num {
  color: #fcd34d;
}
.app-item.level-4 {
  background: rgba(132, 204, 22, 0.1);
}
.app-item.level-4 .num {
  color: #a3e635;
}
.app-item.level-5 {
  background: rgba(52, 211, 153, 0.1);
}
.app-item.level-5 .num {
  color: #5eead4;
}
.app-item.completed {
  background: rgba(13, 148, 136, 0.15);
}
.app-item.completed .name {
  color: rgba(141, 208, 208, 0.9);
}
.app-item.completed .num {
  color: #8dd0d0;
}
.app-item.completed .pct {
  color: rgba(141, 208, 208, 0.6);
}
@media (max-width: 768px) {
  #sidebar #app-list {
    max-height: calc(min(70vh, 480px) - 128px);
  }
}
