:root {
  color-scheme: light dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background: #f6f6f9;
  color: #1f2933;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header {
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #334155;
}

.checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

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

input,
select,
button {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #2a9d8f;
  border-color: transparent;
}

button {
  grid-column: 1 / -1;
  background: #2a9d8f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

button:hover,
button:focus-visible {
  background: #23867b;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.summary-grid div {
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
}

.summary-grid .summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 680px) {
  .summary-grid .span-2 {
    grid-column: span 1;
  }
}

.summary-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #475569;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.error {
  color: #b91c1c;
  font-weight: 600;
}
