:root {
  --border: #d0d7de;
  --bg: #f6f8fa;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0d6efd;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text);
  background: white;
}

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT */
.left {
  padding: 24px clamp(16px, 4vw, 48px);
  background: white;
  border-right: 1px solid var(--border);
}

/* RIGHT */
.right {
  padding: 24px clamp(16px, 4vw, 48px);
  background: var(--bg);
}

.section-title {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
}

.attribute {
  margin-bottom: 16px;
}
.attribute-label {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--muted);
}

/* Switcher */
.option-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.option {
  flex: 1;
  padding: 10px 12px;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.02s;
  font-size: 0.92rem;
}
.option:hover {
  background: #e6e6e6;
}
.option:active {
  transform: translateY(1px);
}
.option.active {
  background: var(--brand);
  color: #fff;
}

/* Tables */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.table th {
  background: #f9fafb;
  font-weight: 600;
}
.table tr:last-child td {
  border-bottom: none;
}

.overall-wrap {
  margin-top: 14px;
}
.overall-title {
  margin: 12px 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.summary-table {
  margin-top: 16px; /* adjust to taste */
}

.table td:not(:first-child),
.table th:not(:first-child) {
  text-align: right;
}

/* Responsive */
@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
  }
  .left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
