:root {
  color-scheme: light;
  --paper: #f4f6f1;
  --ink: #17211d;
  --muted: #76817b;
  --line: #d9dfd9;
  --green: #215d49;
  --green-dark: #174535;
  --mint: #dcebe0;
  --white: #ffffff;
  --red: #a85345;
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 15%, rgba(194, 218, 201, 0.42), transparent 28rem),
    radial-gradient(circle at 94% 30%, rgba(231, 220, 193, 0.24), transparent 24rem),
    var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(100% - 48px, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 25px;
  height: 25px;
  padding: 5px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--mint);
}

.brand-mark span {
  width: 3px;
  border-radius: 2px;
  background: var(--green);
}

.brand-mark span:nth-child(1) {
  height: 7px;
}

.brand-mark span:nth-child(2) {
  height: 12px;
}

.brand-mark span:nth-child(3) {
  height: 16px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d9b6d;
  box-shadow: 0 0 0 3px rgba(77, 155, 109, 0.14);
}

.hero {
  max-width: 675px;
  padding: 84px 0 48px;
}

.eyebrow {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin: 15px 0 18px;
  font-size: clamp(50px, 8vw, 84px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.93;
}

.hero h1 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.hero-copy {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.workspace {
  width: 100%;
}

.drop-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 21px;
  min-height: 158px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1.5px dashed #aebeb1;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.56);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone::after {
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(33, 93, 73, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--green);
  background: rgba(220, 235, 224, 0.72);
}

.drop-zone.is-dragging {
  transform: translateY(-2px);
}

.upload-icon {
  display: grid;
  flex: 0 0 59px;
  place-items: center;
  width: 59px;
  height: 59px;
  border-radius: 13px;
  color: var(--green);
  background: var(--mint);
}

.upload-icon svg {
  width: 32px;
  height: 32px;
}

.upload-icon path,
.download-all path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.drop-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drop-content strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.drop-content span {
  color: var(--muted);
  font-size: 13px;
}

.drop-content u {
  color: var(--green);
  text-underline-offset: 3px;
}

.file-limit {
  position: absolute;
  right: 29px;
  top: 24px;
  color: #96a199;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.status-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
}

.status-icon svg {
  width: 19px;
  height: 19px;
}

.status-icon path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.status-panel.is-error .status-icon {
  color: var(--red);
  background: #f4dfdb;
}

.status-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.status-label {
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-error .status-label {
  color: var(--red);
}

.status-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.text-button:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.progress-wrap {
  padding: 19px 2px 1px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce2dc;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.results {
  padding: 82px 0 0;
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.results h2 {
  margin: 9px 0 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.065em;
}

.download-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px 0 17px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.download-all svg {
  width: 17px;
  height: 17px;
}

.download-all:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.download-all:disabled {
  cursor: wait;
  opacity: 0.65;
}

.result-summary {
  margin: 10px 0 18px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px 13px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.62);
}

.file-badge {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 40px;
  border: 1px solid #c5d6c9;
  border-radius: 6px;
  color: var(--green);
  background: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.file-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.file-card-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-copy span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.file-download {
  display: grid;
  flex: 0 0 29px;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green);
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease;
}

.file-download:hover {
  border-color: #a4baa8;
  background: var(--mint);
}

.file-download svg {
  width: 15px;
  height: 15px;
}

.file-download path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 80px 0 0;
  color: #a1aaa3;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.empty-line {
  width: 26px;
  height: 1px;
  background: #cbd3cc;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 32px, 1080px);
  }

  .topbar {
    min-height: 70px;
  }

  .privacy-note {
    font-size: 9px;
  }

  .hero {
    padding: 58px 0 36px;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 70px);
  }

  .drop-zone {
    align-items: flex-start;
    min-height: 170px;
    padding: 26px 20px;
  }

  .upload-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .upload-icon svg {
    width: 27px;
    height: 27px;
  }

  .file-limit {
    right: 20px;
    bottom: 19px;
    top: auto;
  }

  .results {
    padding-top: 60px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-all {
    width: 100%;
    justify-content: center;
  }

  .file-list {
    grid-template-columns: 1fr;
  }

  .empty-note {
    margin-top: 60px;
  }
}

@media (max-width: 390px) {
  .privacy-note {
    max-width: 100px;
    line-height: 1.2;
    text-align: right;
  }

  .drop-zone {
    gap: 13px;
  }

  .drop-content strong {
    font-size: 16px;
  }
}
