:root {
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #30145b;
  background: #f6f3ff;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
.shell {
  max-width: 850px;
  margin: auto;
  padding: 30px 32px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 55px;
}
.wordmark {
  font-size: 64px;
  letter-spacing: -6px;
  line-height: 1;
  font-weight: 950;
  color: #6230b8;
  text-decoration: none;
}
.wordmark span {
  color: #30145b;
}
main {
  max-width: 650px;
  margin: auto;
  min-height: 58vh;
}
h1 {
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.07;
  letter-spacing: -2px;
  font-weight: 850;
  margin: 0 0 18px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.lede {
  font-size: 19px;
  color: #655975;
  margin: 0 0 32px;
}
label {
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
}
input,
select,
button {
  font: inherit;
  border-radius: 10px;
  min-height: 48px;
}
input,
select {
  padding: 11px 13px;
  border: 1px solid #9183a6;
  color: #30145b;
  background: white;
  min-width: 0;
  width: 100%;
}
button {
  border: 0;
  background: #6230b8;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}
button:hover {
  background: #4d2298;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.quiet {
  color: #6230b8;
  background: transparent;
  padding: 8px 12px;
}
.quiet:hover {
  background: #e9dfff;
}
.password-row,
.link-row {
  display: flex;
  gap: 10px;
}
.password-row input,
.link-row input {
  flex: 1;
}
.hint {
  font-size: 14px;
  color: #655975;
  font-weight: 400;
}
.privacy {
  font-size: 14px;
  text-align: center;
  color: #655975;
  margin-top: 16px;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 22px 0;
}
.primary {
  width: 100%;
}
#dropzone {
  position: relative;
  border: 2px dashed #9775c8;
  background: #fff;
  border-radius: 24px 24px 48px 24px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  padding: 26px;
}
#dropzone:hover,
#dropzone.dragging {
  background: #eee5ff;
  border-color: #6230b8;
}
#dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
}
#dropzone strong {
  font-size: 22px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.drop-icon {
  display: block;
  font-size: 40px;
  line-height: 1.2;
  color: #6230b8;
}
#dropzone:focus-within {
  outline: 3px solid #30145b;
  outline-offset: 4px;
}
#result {
  margin-top: 30px;
  background: #e9dfff;
  padding: 24px;
  border-radius: 16px;
}
.transfers {
  margin-top: 45px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading h2 {
  margin: 0;
}
.transfer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #c6bad8;
}
.transfer strong {
  overflow-wrap: anywhere;
}
.transfer .hint {
  margin: 4px 0;
}
.transfer-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.transfer-actions button {
  padding: 8px 10px;
}
.file-panel {
  text-align: center;
  background: #fff;
  padding: 36px 24px;
  border-radius: 24px 24px 48px 24px;
}
.file-panel h2 {
  font-size: 26px;
}
.file-panel button {
  min-width: 200px;
}
#progress-box {
  margin-top: 24px;
}
progress {
  display: block;
  width: 100%;
  height: 14px;
  accent-color: #6230b8;
}
#status {
  min-height: 24px;
  overflow-wrap: anywhere;
}
#status.error {
  color: #9b1940;
  font-weight: 600;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid #c6bad8;
  font-size: 14px;
  color: #655975;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #30145b;
  outline-offset: 4px;
}
@media (max-width: 550px) {
  .shell {
    padding: 24px 20px;
  }
  header {
    margin-bottom: 42px;
  }
  .wordmark {
    font-size: 56px;
  }
  .settings {
    gap: 12px;
  }
  .transfer {
    align-items: flex-start;
    flex-direction: column;
  }
  .transfer-actions {
    align-self: flex-end;
  }
  .link-row {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  .password-row button {
    padding: 12px 16px;
  }
  #result {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  #dropzone {
    transition: background 0.15s;
  }
}
