.blob-export-trigger {
  position: fixed;
  z-index: 1000;
  margin: 0 !important;
  opacity: 0;
  pointer-events: auto;
}

.loaded .blob-export-trigger {
  opacity: 1;
  transition: opacity 0.3s ease-out, color 0.2s ease-out, background 0.2s ease-out;
}

.blob-export-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  overflow: auto;
  color: #fff;
  background: rgba(10, 10, 12, 0.84);
  pointer-events: auto;
}

.blob-export-modal {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Aften Screen", sans-serif;
}

.blob-export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.blob-export-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 400;
}

.blob-export-header p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.blob-export-code {
  width: 100%;
  min-height: 320px;
  flex: 1 1 auto;
  box-sizing: border-box;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  outline: none;
  color: #f7f7f7;
  background: #050505;
  font: 12px/1.55 Consolas, "Courier New", monospace;
  white-space: pre;
  overflow: auto;
}

.blob-export-code:focus {
  border-color: #fff;
}

.blob-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.blob-export-copy,
.blob-export-cancel,
.blob-export-close {
  appearance: none;
  padding: 8px 18px;
  border: 1px solid #fff;
  border-radius: 50px;
  color: #fff;
  background: transparent;
  font: 400 14px/1.5 "Aften Screen", sans-serif;
  cursor: pointer;
}

.blob-export-copy:hover,
.blob-export-copy:focus,
.blob-export-cancel:hover,
.blob-export-cancel:focus,
.blob-export-close:hover,
.blob-export-close:focus {
  color: #000;
  background: #fff;
  outline: none;
}

.blob-export-close {
  flex: 0 0 auto;
  padding: 4px 12px;
}

@media (max-width: 600px) {
  .blob-export-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .blob-export-modal {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .blob-export-header {
    gap: 12px;
  }

  .blob-export-header h2 {
    font-size: 23px;
  }

  .blob-export-code {
    min-height: 220px;
  }

  .blob-export-actions {
    justify-content: stretch;
  }

  .blob-export-actions button {
    flex: 1;
  }
}
