:root {
  color-scheme: light;
  --ink: #271f1d;
  --muted: #6d5e58;
  --line: #ddc7b9;
  --paper: #fff9f3;
  --surface: #ffffff;
  --coral: #c9553d;
  --coral-dark: #9e3929;
  --mint: #166b61;
  --gold: #d99b35;
  --shadow: 0 18px 45px rgba(68, 43, 31, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(217, 155, 53, 0.24), transparent 34%),
    linear-gradient(225deg, rgba(22, 107, 97, 0.16), transparent 32%),
    var(--paper);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 18px 26px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.intro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 430px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(221, 199, 185, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 14px;
}

.lang-button {
  width: 44px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.lang-button.is-active {
  border-color: var(--mint);
  color: #ffffff;
  background: var(--mint);
}

.upload-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
}

.drop-zone {
  min-height: 210px;
  border: 2px dashed #cfae9d;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  background: #fffaf6;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.drop-zone.is-dragging {
  border-color: var(--coral);
  background: #fff2e9;
  transform: translateY(-1px);
}

.drop-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--surface);
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

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

.primary-button:not(:disabled):hover {
  background: var(--coral-dark);
}

.status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.status.is-success {
  color: var(--mint);
  font-weight: 800;
}

.status.is-error {
  color: var(--coral-dark);
  font-weight: 800;
}

.footer {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .shell {
    padding: 22px 14px 18px;
  }

  .panel {
    padding: 14px;
  }

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