:root {
  --bg: #f7efe5;
  --card: rgba(255,255,255,.82);
  --ink: #1e1b18;
  --muted: #776f67;
  --accent: #b8895a;
  --accent-dark: #7f5732;
  --line: rgba(30,27,24,.14);
  --shadow: 0 24px 80px rgba(57, 42, 28, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184,137,90,.32), transparent 38%),
    linear-gradient(135deg, #fff7ec 0%, var(--bg) 42%, #e7d2bd 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.hero-card {
  width: min(720px, 100%);
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 6vw, 56px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

h1 {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(48px, 13vw, 94px);
  line-height: .88;
  margin: 0 0 18px;
  letter-spacing: -.055em;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 3.7vw, 21px);
  line-height: 1.55;
}

.upload-card { display: grid; gap: 14px; }
.field-label {
  font-size: 14px;
  font-weight: 800;
}
.field-label span { color: var(--muted); font-weight: 600; }
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 17px;
  font: inherit;
  background: rgba(255,255,255,.72);
  outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }

.dropzone {
  border: 1.5px dashed rgba(126,87,50,.45);
  border-radius: 26px;
  min-height: 188px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  background: rgba(255,255,255,.52);
}
.dropzone input { display: none; }
.drop-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
}
.dropzone strong { font-size: 18px; }
.dropzone small { color: var(--muted); margin-top: 7px; }

.file-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.48);
}
.file-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-warning { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.file-info { font-size: 13px; font-weight: 700; color: var(--muted); }
.file-summary { font-size: 13px; font-weight: 800; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--line); }

button {
  border: 0;
  border-radius: 20px;
  padding: 17px 22px;
  font: inherit;
  font-weight: 900;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(30,27,24,.18);
}
button:disabled { opacity: .55; cursor: not-allowed; }

.progress-wrap { display: grid; gap: 8px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.progress-bar {
  height: 12px;
  background: rgba(30,27,24,.12);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar div {
  width: 0%;
  height: 100%;
  background: var(--accent-dark);
  transition: width .18s ease;
}
.progress-wrap.is-processing .progress-bar div {
  background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent);
  background-size: 22px 22px;
  animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes {
  from { background-position: 0 0; }
  to { background-position: 22px 0; }
}

.message {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 14px;
}
.message.success { background: rgba(28,118,70,.12); color: #1c7646; }
.message.error { background: rgba(178,47,47,.12); color: #9b2828; }
.privacy-note {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  .hero-card { border-radius: 26px; }
  .dropzone { min-height: 174px; }
}


.message.warning {
  background: #fff3d9;
  color: #6d4b00;
}

.result-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.queue-list{margin-top:16px;border:1px solid rgba(30,21,18,.12);border-radius:18px;padding:8px 14px;background:#fff}
.queue-item{padding:10px 0;border-bottom:1px solid rgba(30,21,18,.08)}
.queue-item:last-child{border-bottom:0}
.queue-main{display:flex;justify-content:space-between;gap:12px;align-items:center}
.queue-name{font-size:14px;overflow-wrap:anywhere}
.queue-size{font-size:12px;color:#7a726e;white-space:nowrap}
.queue-status{margin-top:4px;font-size:13px;font-weight:700}
.queue-status.pending{color:#7a726e}
.queue-status.processing,.queue-status.uploading,.queue-status.saving{color:#8a5a2b}
.queue-status.success{color:#2e7d32}
.queue-status.failed{color:#b44336}
.file-warning{margin-top:10px;color:#b44336;font-weight:700}
.result-list{margin-top:10px;display:grid;gap:6px}

.file-info.important{
  font-weight:800;
  color:#1f1a17;
  background:rgba(138,90,43,.08);
  border:1px solid rgba(138,90,43,.18);
  border-radius:12px;
  padding:10px 12px;
}
