* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6f8;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}

h1 {
  margin-bottom: 24px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

form,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.grow {
  flex: 1;
}

input[type="file"],
input[type="date"],
button {
  font: inherit;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #1f6feb;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1558c0;
}

.result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f0f4f8;
  min-height: 48px;
  white-space: pre-wrap;
}

.result.error {
  background: #fdecec;
  color: #8a1f1f;
}

.result.success {
  background: #edf8ee;
  color: #1f5e2a;
}

.plan-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
}

.plan-label {
  font-weight: 700;
}


canvas {
  display: block;
  width: 100%;
  height: 420px !important;
  margin-top: 16px;
  border-radius: 10px;
}