body { font-family: Arial, sans-serif; padding: 24px; }

/* Keep navigation always visible */
#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 16px;
}

/* Optional: make the links look like tabs */
#nav nav a {
  display: inline-block;
  padding: 8px 10px;
  margin-right: 6px;
  text-decoration: none;
  border-radius: 10px;
}

#nav nav a:hover {
  background: #f3f3f3;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}

.card {
  padding: 14px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
}

.card .label {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.card .hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

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

.card.clickable {
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.card.clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card.selected {
  border-color: #cfcfcf;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.banner {
  padding: 12px 14px;
  border: 1px solid #f2d5a6;
  background: #fff7e6;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 14px;
}

.hidden { display: none; }

.card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Focus donut legend */
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.integration-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover { background: #f6f6f6; }

.btn.primary {
  border-color: #cfcfcf;
  font-weight: 600;
}

.btn.danger {
  border-color: #f2c2c2;
  background: #fff5f5;
}


.site-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #444;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links a {
  margin-right: 12px;
  text-decoration: none;
  color: #111;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
