.attend-file-download {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--bs-border-color, #ddd);
  border-radius: 16px;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  box-shadow: 0 16px 60px #0003;
  z-index: 1100;
}
.attend-file-download::backdrop { background: #0007; }
.attend-file-download-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.attend-file-download h2 { margin: 0; font-size: 1.2rem; }
.attend-file-download-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.attend-file-download-close:hover { background: #8882; }
.attend-file-download-close:disabled { opacity: .5; cursor: default; }
.attend-file-download-name { overflow-wrap: anywhere; font-weight: 600; }
.attend-file-download-status { margin: 12px 0 20px; }
.attend-file-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.attend-file-download [hidden] { display: none !important; }
.attend-file-download .btn { white-space: normal; }
body.dark-mode .attend-file-download,
[data-theme="dark"] .attend-file-download {
  background: var(--dark-bg-secondary, #2c2c2e);
  color: var(--dark-text-primary, #f5f5f7);
  border-color: #555;
}
