:root {
  --bg: #ececec;
  --text: #121418;
  --muted: #7a8088;
  --line: #ccd1d7;
  --accent: #ff5000;
  --ok: #5f6772;
  --error: #bf2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 0% 0%, #ffffff 0%, #f0f0f0 46%, #e7e7e7 100%);
}

.layout {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  justify-items: center;
}

.hero {
  display: grid;
  gap: 0;
  width: min(920px, 100%);
  justify-items: center;
}

.logo {
  width: 56px;
  height: auto;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-row h1 {
  margin: 0;
  font-size: clamp(2rem, 6.3vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.workspace {
  display: grid;
  align-content: center;
  gap: 12px;
  width: min(920px, 100%);
}

.drop-zone {
  border: 2px dashed #9ea5ad;
  border-radius: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(255, 245, 238, 0.9);
}

.drop-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
}

.drop-hint,
.drop-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.file-list {
  margin-top: 6px;
  width: min(620px, 100%);
  display: grid;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cfd4da;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 7px 10px;
  font-size: 0.92rem;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1a1d22;
}

.remove-file {
  border: 0;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: #d8dce2;
  color: #29303a;
  cursor: pointer;
}

.remove-file:hover {
  background: #c8ced6;
}

.summary {
  display: inline-block;
  width: fit-content;
  justify-self: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(107, 116, 128, 0.14);
  color: #3f4752;
  text-align: center;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

button,
.download {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  text-decoration: none;
}

button {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  background: #aeb4bc;
  cursor: not-allowed;
}

.download {
  background: #6b7480;
  color: #fff;
  font-weight: 700;
}

.progress-wrap {
  margin-top: 6px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #d7dce2;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff5d00 0%, #ff9659 100%);
  transition: width 0.2s ease;
}

.progress-text {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
}

.logo-bottom-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
}

.logo-bottom {
  width: 104px;
  opacity: 0.95;
}

.hidden {
  display: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.92em;
  background: rgba(18, 20, 24, 0.08);
  color: #121418;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

@media (max-width: 760px) {
  .layout {
    padding: 18px;
  }

  .drop-zone {
    min-height: 190px;
  }

  .file-item {
    font-size: 0.84rem;
  }

  .logo-bottom {
    width: 88px;
  }
}
