#dl-panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1e1e2e;
  border-top: 1px solid #313244;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  transition: height 0.2s ease;
  height: 32px; overflow: hidden;
}
#dl-panel.open { height: 300px; }

#dl-bar {
  display: flex; align-items: center; height: 32px;
  padding: 0 4px 0 12px; gap: 8px;
}
#dl-bar .title { font-weight: 600; font-size: 12px; color: #cdd6f4; white-space: nowrap; }
#dl-quick { display: flex; gap: 5px; overflow: hidden; flex: 1; }

#dl-toggle, #dl-refresh {
  height: 32px; padding: 0 10px;
  background: none; border: none; cursor: pointer;
  color: #6c7086; font-size: 11px; white-space: nowrap;
  display: flex; align-items: center;
}
#dl-toggle:hover, #dl-refresh:hover { color: #cdd6f4; }
#dl-refresh { font-size: 15px; padding: 0 8px; }
#dl-refresh.spinning { animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: 999px;
  background: #313244; color: #cdd6f4;
  text-decoration: none; font-size: 11px; white-space: nowrap;
  border: 1px solid transparent;
}
.chip:hover { background: #45475a; border-color: #89b4fa55; }
.chip-fav { border-color: #f9e2af44; color: #f9e2af; }

#dl-body {
  height: calc(300px - 33px); overflow-y: auto;
  padding: 10px 14px;
  display: flex; gap: 16px; flex-wrap: wrap; align-content: flex-start;
  border-top: 1px solid #313244;
}
.dl-col { min-width: 200px; flex: 1; }
.dl-col h4 {
  margin: 0 0 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #6c7086;
  display: flex; align-items: center; gap: 6px;
}
.dl-col h4 a { font-size: 10px; text-transform: none; font-weight: 400; color: #89b4fa; text-decoration: none; }
.dl-col ul { list-style: none; margin: 0; padding: 0; }
.dl-col li { margin-bottom: 4px; }
.dl-col li a {
  color: #89b4fa; text-decoration: none; font-size: 12px;
  display: flex; align-items: baseline; gap: 4px;
}
.dl-col li a:hover { text-decoration: underline; }
.dl-col .meta { font-size: 10px; color: #6c7086; margin-left: auto; white-space: nowrap; }
.dl-msg { color: #6c7086; font-size: 12px; padding: 16px; }
