body.study-page {
  overflow: auto;
  height: auto;
  min-height: 100vh;
}

.study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.study-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.study-header-actions a,
.study-header-actions button {
  font-size: 12px;
}

.study-main {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.study-hero {
  margin-bottom: 28px;
}

.study-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.study-hero p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 720px;
}

.verdict-card {
  background: linear-gradient(135deg, rgba(61, 142, 240, 0.12), rgba(155, 106, 240, 0.08));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.summary-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.summary-tile .val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.summary-tile .lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.study-section {
  margin-bottom: 32px;
}

.study-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.insight-card.martin {
  border-top: 3px solid var(--martin-color);
}

.insight-card.titiler {
  border-top: 3px solid var(--titiler-color);
}

.insight-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.insight-card ul {
  list-style: none;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.insight-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.insight-card li:last-child {
  border-bottom: none;
}

.insight-card li::before {
  content: "• ";
  color: var(--text);
}

.insight-card.pros li::before {
  content: "+ ";
  color: var(--ok);
}

.insight-card.cons li::before {
  content: "− ";
  color: var(--warn);
}

.study-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.study-table th,
.study-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.study-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.study-table tr:last-child td {
  border-bottom: none;
}

.study-table .tag-ok {
  color: var(--ok);
}

.study-table .tag-err {
  color: var(--err);
}

.study-table .col-martin {
  color: var(--martin-color);
}

.study-table .col-titiler {
  color: var(--titiler-color);
}

.bar-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 56px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.bar-track {
  height: 8px;
  background: var(--bg-panel);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bar-fill.martin {
  background: var(--martin-color);
}

.bar-fill.titiler {
  background: var(--titiler-color);
}

.empty-study {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-study a {
  color: var(--accent);
}

/* ── Summary tile accents ────────────────────────────────── */
.summary-tile.martin-tile  { border-left: 3px solid var(--martin-color); }
.summary-tile.titiler-tile { border-left: 3px solid var(--titiler-color); }

/* ── Resource usage bars ─────────────────────────────────── */
.resource-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .resource-bars { grid-template-columns: 1fr; }
}

.resource-bar-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.resource-bar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ── Load test detail table ──────────────────────────────── */
.lt-detail-table .lt-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.lt-detail-table .lt-wall {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lt-detail-table .server-cell {
  font-weight: 700;
  white-space: nowrap;
}

.lt-detail-table tr.lt-group-martin td {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.lt-detail-table tr.lt-group-titiler td {
  border-bottom: none;
  padding-bottom: 10px;
}

.lt-detail-table tbody tr:first-child td {
  border-top: none;
}
