:root {
  --bg: #f5f1ea;
  --panel: #ffffff;
  --accent: #2c5d63;
  --accent-soft: #e6f0ef;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --danger: #b00020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdfbf8 0%, var(--bg) 55%);
  color: var(--text);
}

main {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 24px 40px;
}

header {
  margin-bottom: 28px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

p.lead {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="file"],
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
}

input[type="text"] {
  margin-bottom: 16px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
}

details {
  margin: 14px 0 18px;
  padding: 8px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 12px;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1f4a50;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}

.result {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.result.error {
  border-left-color: var(--danger);
}

.result strong {
  display: inline-block;
  min-width: 140px;
}

.progress {
  background: #e9e2d8;
  border-radius: 999px;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.downloads {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.downloads a {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.footer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  main {
    margin: 24px auto;
  }
  h1 {
    font-size: 1.6rem;
  }
}
