:root {
  font-family: system-ui, sans-serif;
  color: #f4f5ff;
  background: #101223;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 20% 0%, #292041, transparent 60%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #3e3d59;
  background: #131426;
}

.header-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: .875rem clamp(1rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.brand, .site-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.25rem;
  font-weight: 750;
}

.brand img { display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.site-nav a { display: block; padding: .5rem .125rem; color: #d5d4e8; }
.site-nav a:hover { color: #e7b6fb; }

.download-view {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: clamp(30rem, calc(100svh - 9rem), 48rem);
  padding: 2rem 1rem;
}

.download-panel {
  width: min(100%, 42rem);
  padding: clamp(1.25rem, 5vw, 3rem);
  background: #1b1d32;
  border: 1px solid #3e3d59;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 4rem #0b0b1c80;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.07;
  letter-spacing: -.04em;
}

p { color: #c1c2da; line-height: 1.5; }
form { margin-top: 2rem; }
label { display: block; margin-bottom: .5rem; font-weight: 600; }
.format-label { margin-top: 1rem; }
.controls { display: flex; gap: .625rem; }

input, select, button, .save {
  border-radius: .625rem;
  padding: .8rem .95rem;
  font: inherit;
}

input, select {
  min-width: 0;
  color: inherit;
  background: #121426;
  border: 1px solid #595873;
}

input { width: 100%; }
select { flex: 1; }
button, .save {
  border: 0;
  color: #21152c;
  background: #e7b6fb;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: .65; cursor: wait; }
:is(input, select, textarea, button, a):focus-visible { outline: 2px solid #e7b6fb; outline-offset: 3px; }
.save { display: inline-block; }
#status { overflow-wrap: anywhere; }
#status.error { color: #ffc2cc; }
footer { padding: 1rem; text-align: center; color: #c1c2da; font-size: .875rem; }

.report-trigger, .report-close {
  background: transparent;
  border: 1px solid #786589;
  color: #f4e7ff;
}

.report-trigger { padding: .5rem .75rem; }
.report-trigger:hover, .report-close:hover { background: #302640; }

#report-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.5rem;
  border: 1px solid #595873;
  border-radius: 1rem;
  background: #1b1d32;
  color: inherit;
}

#report-dialog::backdrop { background: #090a16c9; }
#report-heading { margin: 0; font-size: 1.375rem; }
#report-form { margin-top: 1rem; }
#report-form fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
#report-form legend { margin-bottom: .375rem; font-weight: 700; }
.report-reason { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-weight: 400; }
.report-reason input { width: auto; margin: 0; accent-color: #e7b6fb; }
#report-details {
  width: 100%;
  resize: vertical;
  padding: .625rem;
  border: 1px solid #595873;
  border-radius: .625rem;
  background: #121426;
  color: inherit;
  font: inherit;
}
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
#report-status.report-error { color: #ffc2cc; }

@media (max-width: 34rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .375rem; }
  .site-nav { gap: .25rem clamp(.5rem, 3vw, 1rem); }
  .site-nav a { padding-block: .625rem; }
  .download-view { min-height: 0; padding-block: 2rem 3rem; }
  .controls { flex-direction: column; }
}
