.loading-overlay { padding: 24px; overflow-y: auto; }
.loading-overlay .loader-symbol { font-size: 66px; line-height: 1; margin-bottom: 18px; }
.loading-overlay h2 { margin: 0 0 8px; font-size: 21px; }
.loading-overlay #loading-detail { margin: 0 0 22px; font-size: 12px; color: #82928e; }
.download-panel { width: min(440px, 100%); text-align: left; font-variant-numeric: tabular-nums; }
.download-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.download-number { color: #e5ff82; line-height: 1; font-size: 45px; font-weight: 500; letter-spacing: -2px; }
.download-number small { font-size: 18px; margin-left: 5px; letter-spacing: 0; }
.download-volume { color: #c5cfcc; font-size: 13px; padding-bottom: 5px; white-space: nowrap; }
.download-panel .progress-line { width: 100%; height: 5px; margin: 14px 0 13px; background: #3c4a46; overflow: hidden; }
.download-panel .progress-line i { display: block; width: 0; height: 100%; background: #e5ff82; animation: none; transform: none; transition: width 100ms linear; }
.download-counts { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #81928d; }
.download-counts b { color: #d6e0dc; font-weight: 500; margin-left: 6px; }
.download-current { margin-top: 23px; padding: 13px 15px; background: #172124; border: 1px solid #35443f; border-radius: 3px; }
.download-phase { color: #d8f78a; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.download-phase::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex: none; }
.download-current-name { color: #dce4e0; margin-top: 9px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-current-path { color: #738781; font-size: 10px; font-family: monospace; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-details { border-top: 1px solid #35423e; margin-top: 16px; }
.download-details summary { cursor: pointer; padding: 12px 0; color: #a7b8b0; font-size: 11px; }
.download-details summary span { float: right; color: #71847a; }
.download-rows { max-height: 170px; overflow-y: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: thin; scrollbar-color: #53634c #182225; }
.download-resource { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #2d3b36; font-size: 10px; }
.download-resource-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #acbcb4; }
.download-resource-bytes { color: #7e9387; white-space: nowrap; }
.download-resource-state { color: #718477; text-align: right; }
.download-resource[data-state='downloading'] .download-resource-state { color: #e5ff82; }
.download-resource[data-state='complete'] .download-resource-state { color: #9ec8a4; }
.download-resource[data-state='error'] .download-resource-state, .download-error { color: #f3b596; }
.download-error { font-size: 11px; overflow-wrap: anywhere; line-height: 1.5; margin: 8px 0; }
.download-error:empty { display: none; }
.has-error .download-phase { color: #f3b596; }
.download-retry { padding: 8px 14px; color: #172124; background: #e5ff82; border: 0; border-radius: 3px; cursor: pointer; font-size: 12px; }
.download-retry[hidden] { display: none; }
@media (max-width: 600px), (max-height: 640px) {
  .loading-overlay { justify-content: flex-start; padding-top: 24px; }
  .loading-overlay .loader-symbol { font-size: 42px; margin-bottom: 12px; }
  .loading-overlay h2 { font-size: 18px; }
  .loading-overlay #loading-detail { margin-bottom: 14px; }
  .download-number { font-size: 35px; }
  .download-current { margin-top: 16px; }
}
