:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172034;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f7f9fc;
}

button,
input {
  font: inherit;
}

button,
.dropzone {
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.share-card {
  padding: 24px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(28, 43, 72, 0.08);
}

.dropzone {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #aac6f3;
  border-radius: 12px;
  background: #f5f9ff;
  color: #4d5d74;
  text-align: center;
  transition: 150ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #1768e5;
  background: #edf5ff;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1768e5;
  color: #fff;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone strong {
  color: #1d2940;
  font-size: 15px;
}

.dropzone > span:last-child {
  font-size: 13px;
}

.selected-file {
  min-height: 62px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
}

.file-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eaf2ff;
  color: #1768e5;
}

.file-icon svg {
  width: 21px;
  height: 21px;
}

.file-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-details strong,
.file-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-details strong {
  font-size: 14px;
}

.file-details span {
  color: #68768c;
  font-size: 12px;
}

.share-button {
  min-height: 50px;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: #1768e5;
  color: #fff;
  font-weight: 800;
}

.share-button:hover:not(:disabled) {
  background: #0c51ba;
}

.share-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.status {
  min-height: 19px;
  margin: 10px 0 0;
  color: #68768c;
  font-size: 13px;
  text-align: center;
}

.status.error {
  color: #b42318;
}

.progress {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf5;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #1768e5;
  transition: width 120ms linear;
}

#progressText {
  color: #68768c;
  font-size: 12px;
  text-align: center;
}

.recent {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fff;
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.recent-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fafbfe;
}

.recent-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-meta {
  grid-column: 1;
  color: #8591a6;
  font-size: 12px;
}

.recent-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #1768e5;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.recent-copy:hover {
  background: #0c51ba;
}

.recent-copy.copied {
  background: #138247;
}

.recent-item.recent-new {
  animation: recent-flash 2s ease;
}

@keyframes recent-flash {
  0% {
    background: #e3f0ff;
    border-color: #1768e5;
  }
  100% {
    background: #fafbfe;
    border-color: #e3e9f2;
  }
}

.cancel-button {
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #93a0b4;
}

.cancel-button:hover {
  background: #f1f4f9;
  color: #b42318;
}

.cancel-button svg {
  width: 16px;
  height: 16px;
}

.text-button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: #1768e5;
  font-weight: 750;
}

.corner-links {
  position: fixed;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 14px;
}

.personal-mode-link {
  color: #93a0b4;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.personal-mode-link:hover {
  color: #1768e5;
}

button:focus-visible,
input:focus-visible,
.dropzone:focus-within,
a:focus-visible {
  outline: 3px solid rgba(23, 104, 229, 0.25);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .recent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .recent-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main {
    padding: 24px 0;
  }

  .share-card {
    padding: 16px;
    border-radius: 14px;
  }

  .dropzone {
    min-height: 200px;
  }
}
