* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  background: linear-gradient(140deg, #f6f9fc, #eef3fb);
}

.container {
  max-width: 980px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 0.5rem;
}

.lead {
  margin-top: 0;
  color: #4b5563;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

textarea,
input[type="password"],
input[type="number"],
input[type="file"] {
  width: 100%;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.95rem;
  background: #fff;
}

textarea {
  resize: vertical;
}

.row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0.8rem;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  margin-top: 0.85rem;
  background: #0369a1;
  color: #fff;
  font-weight: 600;
}

button:hover {
  background: #075985;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.actions button {
  margin-top: 0;
  background: #0f766e;
}

.actions button:hover {
  background: #115e59;
}

.status {
  min-height: 1.2rem;
  margin: 0.7rem 0 0;
  color: #334155;
}

.status.error {
  color: #b91c1c;
}

.status.success {
  color: #166534;
}

.result {
  margin-top: 0.9rem;
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.9rem;
}

.summary {
  margin: 0.7rem 0 0;
  color: #374151;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
  }
}
