:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #ededed;
  background: #111111;
  color-scheme: dark;
  font-synthesis: none;
  --accent: #ededed;
  --muted: #a4a4a4;
  --line: #333333;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ededed;
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  max-width: 1080px;
  padding: 0 40px 70px;
  margin: auto;
}
main {
  max-width: 700px;
  margin: auto;
}
.intro {
  padding: 80px 0 32px;
  text-align: center;
}
h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 0;
}
.intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
}
.upload-card {
  border: 1px solid #333333;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 6px 26px #00000018;
}
.dropzone {
  margin: 14px;
  padding: 36px 20px 31px;
  min-height: 330px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1.5px dashed #414141;
  border-radius: 10px;
  background: #191919;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.dropzone.dragging {
  background: #292929;
  border-color: #aaaaaa;
}
.file-art {
  position: relative;
  width: 110px;
  height: 92px;
  margin-bottom: 23px;
}
.paper {
  position: absolute;
  width: 54px;
  height: 70px;
  border: 1px solid;
  border-radius: 7px;
}
.paper-back {
  left: 17px;
  top: 5px;
  background: #282828;
  border-color: #454545;
  transform: rotate(-13deg);
  padding: 20px 11px;
}
.paper-back span {
  display: block;
  height: 3px;
  background: #777777;
  margin: 6px 0;
  border-radius: 2px;
}
.paper-front {
  background: #383838;
  border-color: #666666;
  left: 43px;
  top: 15px;
  transform: rotate(10deg);
  display: grid;
  place-items: center;
  color: #dddddd;
}
.paper-front svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.4;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 0 0 10px;
}
.dropzone > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 23px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.button-primary {
  background: var(--accent);
  color: #181818;
}
.button-primary:hover {
  background: #ffffff;
}
.button-secondary {
  background: #292929;
  color: var(--accent);
  border-color: #404040;
}
.button span {
  font-size: 20px;
  line-height: 16px;
}
.button svg {
  width: 17px;
  height: 17px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  background: #232323;
  border-top: 1px solid #333333;
  font-size: 12px;
  color: #aaaaaa;
}
.card-foot svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.dropzone.compact {
  min-height: initial;
  padding: 20px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}
.compact .file-art,
.compact > p {
  display: none;
}
.compact h2 {
  font-size: 14px;
  margin: 0;
}
.compact .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
.queue {
  padding: 10px 26px 24px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 10px;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: #c7c7c7;
  font-size: 12px;
}
.text-button:hover,
.text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #333333;
  text-align: left;
}
.file-badge {
  height: 38px;
  width: 36px;
  border: 1px solid #404040;
  border-radius: 6px;
  background: #292929;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 8px;
  letter-spacing: 0.4px;
  color: #c7c7c7;
}
.file-info {
  min-width: 0;
  flex: 1;
}
.file-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #e3e3e3;
}
.file-size {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.remove-file,
.file-download {
  border: 0;
  text-decoration: none;
  border-radius: 6px;
  background: transparent;
  color: #c7c7c7;
  padding: 8px;
  display: grid;
  place-items: center;
  min-height: 40px;
  min-width: 40px;
}
.remove-file:hover,
.file-download:hover {
  background: #303030;
  color: #ededed;
}
.remove-file {
  font-size: 22px;
  font-weight: 300;
}
.queue-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.queue-bottom p {
  font-size: 12px;
  color: var(--muted);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #c7c7c7;
  margin: 23px 0 8px;
}
progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #383838;
}
progress::-webkit-progress-bar {
  background: #383838;
}
progress::-webkit-progress-value {
  background: #ededed;
  transition: width 0.2s;
}
progress::-moz-progress-bar {
  background: #ededed;
}
.result-card {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 18px;
  padding: 40px;
  margin-top: 64px;
  text-align: center;
}
.result-icon {
  display: grid;
  place-items: center;
  background: #333333;
  color: #ededed;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 28px;
  margin: 0 auto 24px;
}
.result-card h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.result-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 13px 0 25px;
}
.share-box {
  display: flex;
  background: #161616;
  border: 1px solid #404040;
  border-radius: 10px;
  padding: 6px;
  gap: 10px;
}
.share-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
  color: #dddddd;
  outline-offset: 0;
}
.share-box button {
  flex-shrink: 0;
}
.share-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  gap: 15px;
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.text-link {
  font-size: 12px;
  text-decoration: none;
  color: #ededed;
}
.privacy-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 25px 0 0;
}
.download-list {
  margin-bottom: 25px;
}
.download-all {
  min-width: 210px;
}
.transfer-speed {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  margin: 16px 0 0;
}
.upload-card > .transfer-speed {
  margin: 0 26px 18px;
}
.receive-card > .text-link {
  display: inline-block;
  margin-top: 22px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #4d4d4d;
  background: #292929;
  color: #d4d4d4;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .shell {
    padding: 0 20px 40px;
  }
  .intro {
    padding: 42px 0 27px;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
  }
  .intro p {
    font-size: 13px;
    margin-top: 12px;
  }
  .dropzone {
    margin: 10px;
    padding: 30px 12px;
    min-height: 320px;
  }
  .dropzone h2 {
    font-size: 20px;
  }
  .compact h2 {
    font-size: 14px;
  }
  .card-foot {
    font-size: 10px;
    gap: 7px;
    line-height: 1.6;
    text-align: center;
    padding: 12px 10px;
  }
  .queue {
    padding: 10px 18px 20px;
  }
  .queue-bottom {
    gap: 10px;
  }
  .queue-bottom p {
    font-size: 11px;
  }
  .queue-bottom .button {
    padding: 12px 14px;
  }
  .result-card {
    padding: 30px 20px;
    margin-top: 35px;
  }
  .result-card h2 {
    font-size: 25px;
  }
  .share-box {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }
  .share-box input {
    width: 100%;
    flex-basis: 100%;
    padding: 12px 6px;
  }
  .share-box .button {
    width: 100%;
  }
  .share-details {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }
  .result-actions {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.login-card {
  max-width: 420px;
  margin: 100px auto 0;
  text-align: left;
}
.login-card h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.login-card .result-description {
  margin-bottom: 28px;
}
#login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#login-form label {
  font-size: 13px;
  color: #c7c7c7;
}
#upload-password {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #151515;
  color: #ededed;
}
#login-button {
  margin-top: 6px;
}
.login-error {
  font-size: 13px;
  line-height: 1.5;
  color: #ddd;
  margin: 0;
}
.logout-button {
  display: block;
  margin: 18px auto 0;
}
@media (max-width: 600px) {
  .login-card {
    margin-top: 55px;
  }
}
