:root {
  background: #f5f7fa;
  color: #17202a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

main {
  min-height: 100vh;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.05;
}

h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.page-header {
  background: #ffffff;
  border-bottom: 1px solid #d9dee7;
  padding: 28px clamp(18px, 4vw, 48px);
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.subtitle,
.muted {
  color: #5b6878;
}

.subtitle {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 760px;
}

.workspace {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  padding: 22px clamp(18px, 4vw, 48px) 42px;
}

.inputs-panel,
.summary-card,
.comparison-card,
.audit-card {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  min-width: 0;
}

.inputs-panel {
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 16px;
}

.panel-heading,
.summary-card,
.audit-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.panel-heading {
  margin-bottom: 12px;
}

#status {
  background: #eef6f3;
  border: 1px solid #c8e3db;
  border-radius: 999px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.input-section {
  border-top: 1px solid #e6eaf0;
  padding: 16px 0;
}

.input-section h3 {
  color: #44515f;
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.input-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 138px;
  margin: 8px 0;
}

.input-row span {
  color: #334155;
  font-size: 13px;
  line-height: 1.25;
}

.input-row input {
  border: 1px solid #cfd6df;
  border-radius: 6px;
  color: #174ea6;
  min-height: 34px;
  padding: 6px 8px;
  text-align: right;
  width: 100%;
}

.input-row input[type="checkbox"] {
  accent-color: #0f766e;
  justify-self: end;
  min-height: 20px;
  width: 20px;
}

.results-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.summary-card,
.comparison-card,
.audit-card {
  padding: 20px;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.audit-card table {
  min-width: 1400px;
  width: max-content;
}

th {
  background: #123b59;
  color: #ffffff;
  font-size: 13px;
  text-align: right;
  text-transform: uppercase;
}

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

td,
th {
  border-bottom: 1px solid #e1e6ee;
  padding: 12px 14px;
  white-space: nowrap;
}

td {
  font-size: 16px;
  text-align: right;
}

.audit-card td {
  font-size: 13px;
}

.positive {
  color: #167c46;
  font-weight: 800;
}

.negative {
  color: #b42318;
  font-weight: 800;
}

select {
  border: 1px solid #cfd6df;
  border-radius: 6px;
  min-height: 38px;
  padding: 6px 8px;
}

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

  .inputs-panel {
    max-height: none;
    position: static;
  }
}
