* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #1a202c;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

h1 { font-size: 1.5rem; margin-bottom: 4px; }
.sub { color: #718096; font-size: 0.9rem; margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 14px;
}

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #f7fafc;
}

input:focus, select:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #667eea;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: #5a67d8; }

.result {
  margin-top: 24px;
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}

.result div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.result span { color: #718096; }
.result strong { color: #1a202c; }

.result .total {
  border-top: 1px dashed #cbd5e0;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
}

.result .total strong { color: #667eea; }

.card.wide { max-width: 640px; }
.card.center { text-align: center; }
.row { display: flex; gap: 8px; margin-bottom: 8px; }
.row input { margin-top: 0; }
.center-row { justify-content: center; }
button.inline { width: auto; margin-top: 0; padding: 10px 16px; white-space: nowrap; }
button.ghost { background: #edf2f7; color: #4a5568; }
button.ghost:hover { background: #e2e8f0; }
.empty { color: #a0aec0; font-size: 0.9rem; text-align: center; margin-top: 16px; }
.list { list-style: none; margin-top: 16px; }
.list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
.del { background: none; border: none; color: #e53e3e; font-size: 1.2rem; cursor: pointer; width: auto; margin: 0; padding: 0 6px; }

textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; resize: vertical; background: #f7fafc; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.stats div { background: #f7fafc; border-radius: 10px; padding: 14px; text-align: center; }
.stats strong { display: block; font-size: 1.5rem; color: #667eea; }
.stats span { font-size: 0.75rem; color: #718096; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2,1fr); } }
