.analysis-report-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--momo-space-2, 8px);
  margin: 0 0 var(--momo-space-4, 16px);
  padding: var(--momo-space-2, 8px);
  border: 1px solid var(--momo-border-light, rgba(42, 37, 32, 0.16));
  border-radius: var(--momo-radius-lg, 8px);
  background: var(--momo-bg-elevated, #fdfaf2);
  box-shadow: var(--momo-shadow-md, 0 0 0 1px rgba(42, 37, 32, 0.10));
}

.analysis-report-tabs-spacer {
  flex: 1 1 auto;
  min-width: var(--momo-space-2, 8px);
}

.analysis-report-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--momo-space-2, 8px);
  min-height: 34px;
  padding: 0 var(--momo-space-3, 12px);
  border: 1px solid transparent;
  border-radius: var(--momo-radius-md, 7px);
  color: var(--momo-text-secondary, #645c52);
  text-decoration: none;
  font-family: var(--momo-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--momo-text-body-sm, 13px);
  font-weight: var(--momo-font-weight-bold, 700);
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.analysis-report-tab:hover {
  border-color: var(--momo-border-light, rgba(42, 37, 32, 0.16));
  background: var(--momo-bg-surface, #faf7f0);
  color: var(--momo-text-primary, #2a2520);
}

.analysis-report-tab.is-active {
  border-color: var(--momo-page-accent-dark, #a95846);
  background: var(--momo-page-accent, #c89043);
  color: var(--momo-page-inverse, #fff8ef);
}

.analysis-report-tab.is-external {
  border-color: var(--momo-border-light, rgba(42, 37, 32, 0.16));
  background: var(--momo-bg-surface, #faf6ec);
  font-family: var(--momo-font-family-mono, "SF Mono", Menlo, Consolas, monospace);
  font-size: var(--momo-text-caption, 12px);
}

.analysis-report-tab i {
  color: currentColor !important;
}

@media (max-width: 720px) {
  .analysis-report-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    align-items: stretch;
  }

  .analysis-report-tabs-spacer {
    display: none;
  }

  .analysis-report-tab {
    justify-content: center;
    min-width: 0;
    padding: 0 var(--momo-space-2, 8px);
  }
}
