/* The Export window (export.js): render to WAV, or download the project. */

.ex-overlay {
  z-index: 72;
  animation: pm-fade 0.16s ease-out;
}
.ex-scrim {
  position: absolute;
  inset: 0;
}
.ex {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border-radius: 18px;
  background: radial-gradient(600px 200px at 15% -10%, rgba(212, 175, 55, 0.1), transparent 70%), linear-gradient(180deg, #1c1821, #0f0d12);
  border: 1px solid var(--line-3);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.7),
    var(--glow),
    inset 0 1px 0 rgba(255, 240, 200, 0.07);
  overflow: hidden;
  animation: pm-rise 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ex-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.ex-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ex-title h2 {
  margin: 0;
  font: italic 600 26px/1.1 var(--serif);
  color: var(--gold-hi);
}
.ex-song {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-body {
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------------------------------------------------------- sections */

.ex-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(6, 5, 8, 0.45);
  border: 1px solid var(--line);
}
.ex-sec-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ex-sec-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--metal-soft);
  color: #231804;
}
.ex-sec-mark .glyph {
  width: 17px;
  height: 17px;
}
.ex-sec-text {
  min-width: 0;
}
.ex-sec-text h3 {
  margin: 0 0 2px;
  font: 600 19px/1.15 var(--serif);
  color: var(--champagne);
}
.ex-sec-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------------- render */

.ex-opts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
}
.ex-opt {
  display: contents;
}
.ex-opt-label {
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.ex-opt .seg {
  justify-self: start;
}
.ex-format {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.ex-chip {
  padding: 5px 11px;
  border-radius: 8px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.08em;
  background: var(--metal);
  color: #231804;
}
.ex-note {
  font-size: 11.5px;
  color: var(--muted);
}
.ex-go {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ex-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ex-summary-format {
  font: 600 13px/1.2 var(--mono);
  color: var(--gold-hi);
}
.ex-summary-where {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.btn.ex-run {
  flex: none;
  height: 34px;
  padding: 0 18px;
  font-weight: 700;
}
.btn.ex-run.busy {
  background: linear-gradient(90deg, var(--gold-hi) var(--done, 0%), rgba(212, 175, 55, 0.35) var(--done, 0%));
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- project */

.ex-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ob-2);
  border: 1px solid var(--line);
}
.ex-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ex-file {
  font: 600 12.5px/1.2 var(--mono);
  color: var(--champagne);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-row-about {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.ex-row .btn {
  flex: none;
}

@media (max-width: 520px) {
  .ex-go,
  .ex-row {
    flex-wrap: wrap;
  }
  .btn.ex-run,
  .ex-row .btn {
    width: 100%;
    justify-content: center;
  }
}
