:root {
  --bg: #f2f4f3;
  --panel: #ffffff;
  --ink: #18211f;
  --soft: #59706a;
  --line: #c3d3cd;
  --brand: #0f8a6c;
  --brand-2: #0c6a53;
  --warn: #9f3a1d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #d6efe6 0%, transparent 45%),
    radial-gradient(circle at 85% 5%, #f0ead7 0%, transparent 40%),
    var(--bg);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 38px;
}

.hero h1 {
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.hero p {
  margin: 0;
  color: var(--soft);
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(30, 60, 52, 0.08);
}

.panel input,
.panel select {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.dropzone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 12px;
  min-height: 132px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--soft);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.dropzone.drag {
  border-color: var(--brand);
  background: #e8f5f1;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.files {
  color: var(--soft);
  min-height: 24px;
}

button {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

progress {
  width: 100%;
  margin-top: 10px;
  height: 9px;
}

.operation-status {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--soft);
}

.operation-status.error {
  color: var(--warn);
}

.operation-status.success {
  color: var(--brand-2);
}

.site-footer {
  margin-top: 20px;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(140deg, #153d34 0%, #1a4f43 60%, #235d4f 100%);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(8, 42, 34, 0.25);
  color: #e8f7f1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 52%;
}

.footer-brand strong {
  font-size: 1.02rem;
  letter-spacing: 0.2px;
}

.footer-brand span {
  font-size: 0.86rem;
  color: #b7d9cf;
}

.footer-meta {
  display: grid;
  gap: 3px;
  text-align: right;
}

.footer-meta p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta .label {
  color: #9bc8bc;
  margin-right: 6px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #d4ffef;
}

@media (max-width: 640px) {
  .container {
    padding: 16px 12px 24px;
  }

  .footer-card {
    flex-direction: column;
    text-align: left;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-meta {
    text-align: left;
  }
}
