.brassup-file-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--brassup-accent, #d4af37);
  border-radius: 22px;
  background: #11141c;
  color: #fff;
  box-shadow: 0 24px 80px #000a;
  font: 16px/1.5 system-ui, sans-serif;
  color-scheme: dark;
}
.brassup-file-dialog::backdrop { background: #000b; }
.brassup-file-dialog [hidden] { display: none !important; }
.brassup-file-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brassup-file-dialog h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.brassup-file-dialog p { color: #dbe0ea; min-height: 72px; margin: 20px 0; }
.brassup-file-dialog button, .brassup-file-dialog a {
  box-sizing: border-box;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.brassup-file-dialog button:focus-visible, .brassup-file-dialog a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.brassup-file-dialog .brassup-file-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #697180;
  border-radius: 12px;
  color: #fff;
  background: #242936;
  padding: 10px;
}
.brassup-file-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.brassup-file-actions { display: grid; gap: 12px; }
.brassup-file-actions button, .brassup-file-actions a {
  display: block;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #697180;
  border-radius: 12px;
  background: #242936;
  color: #fff;
}
.brassup-file-actions .brassup-file-save {
  background: var(--brassup-accent, #d4af37);
  border-color: transparent;
  color: #080808;
  font-weight: 700;
}
.brassup-file-actions button:disabled { opacity: .55; cursor: wait; }

/* Songzeit bleibt im lokalen Wave-Stapel unter Menüs. */
.brassup-waveform-canvas > .brassup-wave-current-time { top: 8px !important; right: 8px !important; bottom: auto !important; pointer-events: none; }
