:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  background: #f6f7fb;
  color: #121826;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.hero {
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 12px;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
}

.subtitle {
  margin: 0;
  color: #4b5563;
  max-width: 640px;
}

.card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 24px;
}

.stack {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: #111827;
}

input[type="file"],
input[type="number"],
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background: #fff;
}

.hint {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.primary {
  background: #2563eb;
  color: white;
}

.secondary {
  background: #e5e7eb;
  color: #4b5563;
}

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

.result {
  padding: 16px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4b5563;
}

.is-hidden {
  display: none;
}

output {
  font-size: 0.9rem;
  color: #374151;
}

.unit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.unit-table th,
.unit-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.unit-table th {
  font-weight: 600;
  color: #111827;
}
